summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-25 15:15:18 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-25 15:15:18 +0100
commit31ff16b5d8d0e7368b8d805990d3a08d81716a6e (patch)
tree3d0f88a327f1b7b729a2394024a97009d17928e8 /crawl-ref/source
parentec4cba57dd8fd579f854b2f23b77eb5ce1057bd9 (diff)
downloadcrawl-ref-31ff16b5d8d0e7368b8d805990d3a08d81716a6e.tar.gz
crawl-ref-31ff16b5d8d0e7368b8d805990d3a08d81716a6e.zip
Properly #ifdef diagnostic statement.
Fixes the "add stair at pos" message appearing in normal builds (BR 2901951).
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/dungeon.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index bc1972db56..2ae80fe55f 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -1406,8 +1406,9 @@ static bool _fixup_stone_stairs(bool preserve_vault_stairs)
gc.y = random2(GYM);
}
while (grd(gc) != DNGN_FLOOR);
- mprf("add stair %d at pos(%d, %d)", s, gc.x, gc.y);
-
+#ifdef DEBUG_DIAGNOSTICS
+ mprf(MSGCH_DIAGNOSTICS, "add stair %d at pos(%d, %d)", s, gc.x, gc.y);
+#endif
// base gets fixed up to be the right stone stair below...
grd(gc) = base;
stair_list[num_stairs++] = gc;