v0.9.1: fixed vertigoed large chars ignoring open space rules

This commit is contained in:
Evan Debenham 2020-10-31 15:08:06 -04:00
parent 28bea55368
commit a44f84c271

View File

@ -684,7 +684,7 @@ public abstract class Char extends Actor {
sprite.interruptMotion(); sprite.interruptMotion();
int newPos = pos + PathFinder.NEIGHBOURS8[Random.Int( 8 )]; int newPos = pos + PathFinder.NEIGHBOURS8[Random.Int( 8 )];
if (!(Dungeon.level.passable[newPos] || Dungeon.level.avoid[newPos]) if (!(Dungeon.level.passable[newPos] || Dungeon.level.avoid[newPos])
|| (properties().contains(Property.LARGE) && !Dungeon.level.openSpace[pos]) || (properties().contains(Property.LARGE) && !Dungeon.level.openSpace[newPos])
|| Actor.findChar( newPos ) != null) || Actor.findChar( newPos ) != null)
return; return;
else { else {