v0.2.4a: corrected errors with floors 26 and 27+

This commit is contained in:
Evan Debenham
2015-02-25 08:07:12 -05:00
parent 6c127894df
commit 4ec2e9deb7
2 changed files with 16 additions and 3 deletions
@@ -63,9 +63,9 @@ public class DeadEndLevel extends Level {
entrance = SIZE * WIDTH + SIZE / 2 + 1;
map[entrance] = Terrain.ENTRANCE;
exit = (SIZE / 2 + 1) * (WIDTH + 1);
map[(SIZE / 2 + 1) * (WIDTH + 1)] = Terrain.SIGN;
map[exit] = Terrain.SIGN;
exit = 0;
return true;
}
@@ -91,7 +91,7 @@ public class DeadEndLevel extends Level {
@Override
public int randomRespawnCell() {
return -1;
return entrance-WIDTH;
}
}