v0.6.1: fixed a freeze bug caused by the sad ghost

This commit is contained in:
Evan Debenham 2017-07-19 13:34:00 -04:00 committed by Evan Debenham
parent 9924f5d28d
commit ce47af7d8f

View File

@ -260,7 +260,7 @@ public class DriedRose extends Artifact {
int ghostPos;
do {
ghostPos = pos + PathFinder.NEIGHBOURS8[Random.Int(8)];
} while (!Level.solid[ghostPos] || level.findMob(ghostPos) != null);
} while (Level.solid[ghostPos] || level.findMob(ghostPos) != null);
heldGhost.pos = pos;
heldGhost = null;