v0.3.1d: fixed a bug with teleportation in the halls boss level

This commit is contained in:
Evan Debenham 2015-09-10 04:13:44 -04:00
parent a9fa47b942
commit 52e1566e2a

View File

@ -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)];