From 52e1566e2a9413b9fca6f1e3d6fc47faa7371bf8 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 10 Sep 2015 04:13:44 -0400 Subject: [PATCH] v0.3.1d: fixed a bug with teleportation in the halls boss level --- .../shatteredpixeldungeon/levels/HallsBossLevel.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/HallsBossLevel.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/HallsBossLevel.java index e9847e937..091bf2321 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/HallsBossLevel.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/HallsBossLevel.java @@ -159,6 +159,7 @@ public class HallsBossLevel extends Level { @Override public int randomRespawnCell() { + if (entrance == -1) return entrance; int cell = entrance + NEIGHBOURS8[Random.Int(8)]; while (!passable[cell]){ cell = entrance + NEIGHBOURS8[Random.Int(8)];