v0.3.0c: refactored finding a character, no longer need to maintain chars[] array
This commit is contained in:
@@ -77,7 +77,6 @@ public class PoolPainter extends Painter {
|
||||
piranha.pos = room.random();
|
||||
} while (level.map[piranha.pos] != Terrain.WATER|| Actor.findChar( piranha.pos ) != null);
|
||||
level.mobs.add( piranha );
|
||||
Actor.occupyCell( piranha );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user