v0.3.1d: fixed a bug with teleportation in the halls boss level
This commit is contained in:
parent
a9fa47b942
commit
52e1566e2a
|
@ -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)];
|
||||
|
|
Loading…
Reference in New Issue
Block a user