v0.3.2c: fixed a crash in levelgen

This commit is contained in:
Evan Debenham 2015-11-18 22:40:57 -05:00 committed by Evan Debenham
parent 8bf7794bb6
commit ef44eaad08
3 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ public class CavesLevel extends RegularLevel {
@Override @Override
protected boolean assignRoomType() { protected boolean assignRoomType() {
super.assignRoomType(); if (!super.assignRoomType()) return false;
if (!Blacksmith.Quest.spawn( rooms ) && Dungeon.depth == 14) if (!Blacksmith.Quest.spawn( rooms ) && Dungeon.depth == 14)
return false; return false;

View File

@ -75,7 +75,7 @@ public class CityLevel extends RegularLevel {
@Override @Override
protected boolean assignRoomType() { protected boolean assignRoomType() {
super.assignRoomType(); if (!super.assignRoomType()) return false;
for (Room r : rooms) { for (Room r : rooms) {
if (r.type == Type.TUNNEL) { if (r.type == Type.TUNNEL) {

View File

@ -74,7 +74,7 @@ public class PrisonLevel extends RegularLevel {
@Override @Override
protected boolean assignRoomType() { protected boolean assignRoomType() {
super.assignRoomType(); if (!super.assignRoomType()) return false;
for (Room r : rooms) { for (Room r : rooms) {
if (r.type == Type.TUNNEL) { if (r.type == Type.TUNNEL) {