summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/dungeon.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index abdee2f3b3..89f4ca2773 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -1599,7 +1599,16 @@ static void _dgn_verify_connectivity(unsigned nvaults)
#ifdef DEBUG_DIAGNOSTICS
mprf(MSGCH_DIAGNOSTICS, "Warning: failed to preserve vault stairs.");
#endif
- _fixup_stone_stairs(false);
+ if (!_fixup_stone_stairs(false))
+ {
+ dgn_level_vetoed = true;
+#ifdef DEBUG_DIAGNOSTICS
+ mprf(MSGCH_DIAGNOSTICS,
+ "VETO: Failed to fix stone stairs: %s.",
+ level_id::current().describe().c_str());
+#endif
+ return;
+ }
}
if (!_branch_entrances_are_connected())