summaryrefslogtreecommitdiff
path: root/plugins/seedwatch.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/seedwatch.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/seedwatch.cpp')
-rwxr-xr-xplugins/seedwatch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/seedwatch.cpp b/plugins/seedwatch.cpp
index b6097f62..ae9ff0e1 100755
--- a/plugins/seedwatch.cpp
+++ b/plugins/seedwatch.cpp
@@ -111,7 +111,7 @@ command_result df_seedwatch(color_ostream &out, vector<string>& parameters)
w->ReadGameMode(gm);// FIXME: check return value
// if game mode isn't fortress mode
- if(gm.g_mode != GAMEMODE_DWARF || gm.g_type != GAMETYPE_DWARF_MAIN)
+ if(gm.g_mode != game_mode::DWARF || gm.g_type != game_type::DWARF_MAIN)
{
// just print the help
printHelp(out);
@@ -299,7 +299,7 @@ DFhackCExport command_result plugin_onupdate(color_ostream &out)
t_gamemodes gm;
w->ReadGameMode(gm);// FIXME: check return value
// if game mode isn't fortress mode
- if(gm.g_mode != GAMEMODE_DWARF || gm.g_type != GAMETYPE_DWARF_MAIN)
+ if(gm.g_mode != game_mode::DWARF || gm.g_type != game_type::DWARF_MAIN)
{
// stop running.
running = false;