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