v0.3.0c: fixed some bugs relating to removing Actor.chars[], can now find mobs within a level by position too.
This commit is contained in:
@@ -75,7 +75,7 @@ public class PoolPainter extends Painter {
|
||||
Piranha piranha = new Piranha();
|
||||
do {
|
||||
piranha.pos = room.random();
|
||||
} while (level.map[piranha.pos] != Terrain.WATER|| Actor.findChar( piranha.pos ) != null);
|
||||
} while (level.map[piranha.pos] != Terrain.WATER|| level.findMob( piranha.pos ) != null);
|
||||
level.mobs.add( piranha );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user