Skip to content

Commit 13b9cee

Browse files
committed
always check consistency even on Release
1 parent cab14ac commit 13b9cee

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/map/World.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,9 +1213,10 @@ World World::init(ProgressCounter &counter, const std::vector<ExternalRawRoom> &
12131213
counter.step();
12141214
}
12151215

1216-
if constexpr ((IS_DEBUG_BUILD)) {
1216+
// if constexpr ((IS_DEBUG_BUILD))
1217+
{
12171218
DECL_TIMER(t5, "check-consistency");
1218-
counter.setNewTask(ProgressMsg{"checking map consistency [debug]"}, 1);
1219+
counter.setNewTask(ProgressMsg{"checking map consistency" /*" [debug]"*/}, 1);
12191220
w.checkConsistency(counter);
12201221
counter.step();
12211222
}
@@ -1917,9 +1918,7 @@ void World::post_change_updates(ProgressCounter &pc)
19171918
if (needsBoundsUpdate()) {
19181919
updateBounds(pc);
19191920
}
1920-
if constexpr (IS_DEBUG_BUILD) {
1921-
checkConsistency(pc);
1922-
}
1921+
checkConsistency(pc);
19231922
}
19241923

19251924
void World::applyOne(ProgressCounter &pc, const Change &change)

0 commit comments

Comments
 (0)