Fix: EnemyProjectile wird auch am rechten bildschirmrand gelöscht
This commit is contained in:
@@ -26,7 +26,7 @@ public class EnemyProjectile extends Projectile
|
||||
return false;
|
||||
}
|
||||
//Check X-Value
|
||||
if (getX() <= 0 || getX() >= getWorld().getHeight()-1){
|
||||
if (getX() <= 0 || getX() >= getWorld().getWidth()-1){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user