summaryrefslogtreecommitdiff
path: root/plugins/burrows.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-06-16 14:42:56 +0400
committerAlexander Gavrilov2012-06-16 14:42:56 +0400
commitdb91850464a98e785ff53cfdc5df46b10229cfdb (patch)
tree4fb35eee9d316bc0dea2bcd305925539734add5a /plugins/burrows.cpp
parentdc5bef2cb84cceb30179df750d986eecdef8b474 (diff)
downloaddfhack-db91850464a98e785ff53cfdc5df46b10229cfdb.tar.gz
dfhack-db91850464a98e785ff53cfdc5df46b10229cfdb.tar.bz2
dfhack-db91850464a98e785ff53cfdc5df46b10229cfdb.tar.xz
Sync to the change in gamemode/gametype globals.
Diffstat (limited to 'plugins/burrows.cpp')
-rw-r--r--plugins/burrows.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/burrows.cpp b/plugins/burrows.cpp
index 9ff902c3..0b66a7b9 100644
--- a/plugins/burrows.cpp
+++ b/plugins/burrows.cpp
@@ -101,8 +101,8 @@ DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_chan
switch (event) {
case SC_MAP_LOADED:
deinit_map(out);
- if (df::global::game_mode &&
- *df::global::game_mode == GAMEMODE_DWARF)
+ if (df::global::gamemode &&
+ *df::global::gamemode == game_mode::DWARF)
init_map(out);
break;
case SC_MAP_UNLOADED: