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
|
@Override
|
||||||
public int randomRespawnCell() {
|
public int randomRespawnCell() {
|
||||||
|
if (entrance == -1) return entrance;
|
||||||
int cell = entrance + NEIGHBOURS8[Random.Int(8)];
|
int cell = entrance + NEIGHBOURS8[Random.Int(8)];
|
||||||
while (!passable[cell]){
|
while (!passable[cell]){
|
||||||
cell = entrance + NEIGHBOURS8[Random.Int(8)];
|
cell = entrance + NEIGHBOURS8[Random.Int(8)];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user