summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-shoals.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-03 16:52:30 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-10-03 16:53:28 +0200
commitc27e88cd9deff03c5f6c9c4c10026c0501f3356d (patch)
treebf096be9ca594b6928bd80cea83ad39baaa77473 /crawl-ref/source/dgn-shoals.cc
parent4eb1f020972155a08c030a519b22d84673de375e (diff)
downloadcrawl-ref-c27e88cd9deff03c5f6c9c4c10026c0501f3356d.tar.gz
crawl-ref-c27e88cd9deff03c5f6c9c4c10026c0501f3356d.zip
Put the Generating_Level global into crawl_state.
Also, drop the caps.
Diffstat (limited to 'crawl-ref/source/dgn-shoals.cc')
-rw-r--r--crawl-ref/source/dgn-shoals.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/dgn-shoals.cc b/crawl-ref/source/dgn-shoals.cc
index 869f6a10e0..0ec352e2dd 100644
--- a/crawl-ref/source/dgn-shoals.cc
+++ b/crawl-ref/source/dgn-shoals.cc
@@ -21,6 +21,7 @@
#include "mon-place.h"
#include "mon-util.h"
#include "random.h"
+#include "state.h"
#include "terrain.h"
#include "traps.h"
#include "view.h"
@@ -990,7 +991,7 @@ static dungeon_feature_type _shoals_apply_tide_feature_at(
if (feat == current_feat)
return DNGN_UNSEEN;
- if (Generating_Level)
+ if (crawl_state.generating_level)
grd(c) = feat;
else
dungeon_terrain_changed(c, feat, true, false, true);