diff options
| author | Alexander Gavrilov | 2012-06-16 14:42:56 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-06-16 14:42:56 +0400 |
| commit | db91850464a98e785ff53cfdc5df46b10229cfdb (patch) | |
| tree | 4fb35eee9d316bc0dea2bcd305925539734add5a /plugins/reveal.cpp | |
| parent | dc5bef2cb84cceb30179df750d986eecdef8b474 (diff) | |
| download | dfhack-db91850464a98e785ff53cfdc5df46b10229cfdb.tar.gz dfhack-db91850464a98e785ff53cfdc5df46b10229cfdb.tar.bz2 dfhack-db91850464a98e785ff53cfdc5df46b10229cfdb.tar.xz | |
Sync to the change in gamemode/gametype globals.
Diffstat (limited to 'plugins/reveal.cpp')
| -rw-r--r-- | plugins/reveal.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/reveal.cpp b/plugins/reveal.cpp index 513eeded..f3542430 100644 --- a/plugins/reveal.cpp +++ b/plugins/reveal.cpp @@ -90,7 +90,7 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out ) World *World = Core::getInstance().getWorld(); t_gamemodes gm; World->ReadGameMode(gm); - if(gm.g_mode == GAMEMODE_DWARF) + if(gm.g_mode == game_mode::DWARF) { // if the map is revealed and we're in fortress mode, force the game to pause. if(revealed == REVEALED) @@ -193,12 +193,12 @@ command_result reveal(color_ostream &out, vector<string> & params) } t_gamemodes gm; World->ReadGameMode(gm); - if(gm.g_mode == GAMEMODE_ADVENTURE) + if(gm.g_mode == game_mode::ADVENTURE) { revealAdventure(out); return CR_OK; } - if(gm.g_mode != GAMEMODE_DWARF) + if(gm.g_mode != game_mode::DWARF) { con.printerr("Only in fortress mode.\n"); return CR_FAILURE; @@ -272,7 +272,7 @@ command_result unreveal(color_ostream &out, vector<string> & params) } t_gamemodes gm; World->ReadGameMode(gm); - if(gm.g_mode != GAMEMODE_DWARF) + if(gm.g_mode != game_mode::DWARF) { con.printerr("Only in fortress mode.\n"); return CR_FAILURE; @@ -350,7 +350,7 @@ command_result revflood(color_ostream &out, vector<string> & params) } t_gamemodes gm; World->ReadGameMode(gm); - if(gm.g_type != GAMETYPE_DWARF_MAIN && gm.g_mode != GAMEMODE_DWARF ) + if(gm.g_type != game_type::DWARF_MAIN && gm.g_mode != game_mode::DWARF ) { out.printerr("Only in proper dwarf mode.\n"); return CR_FAILURE; |
