diff options
| author | Petr Mrázek | 2011-07-06 11:13:36 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-07-06 11:13:36 +0200 |
| commit | 56a409d9a470bfc13c02d8e4afa1a2d25c53df50 (patch) | |
| tree | 2a944651882db0772fbddd62a24e1d166b0d0dea /plugins/reveal.cpp | |
| parent | b1d41630952a856f73dc2beb33f96f9246a356fc (diff) | |
| download | dfhack-56a409d9a470bfc13c02d8e4afa1a2d25c53df50.tar.gz dfhack-56a409d9a470bfc13c02d8e4afa1a2d25c53df50.tar.bz2 dfhack-56a409d9a470bfc13c02d8e4afa1a2d25c53df50.tar.xz | |
sync, some map data structures, commented out some dead code
Diffstat (limited to 'plugins/reveal.cpp')
| -rw-r--r-- | plugins/reveal.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/reveal.cpp b/plugins/reveal.cpp index 20e58d14..71a2a3a1 100644 --- a/plugins/reveal.cpp +++ b/plugins/reveal.cpp @@ -50,7 +50,7 @@ DFhackCExport command_result plugin_onupdate ( Core * c ) DFHack::World *World =c->getWorld(); t_gamemodes gm; World->ReadGameMode(gm); - if(gm.game_mode == GM_Fort) + if(gm.g_mode == GAMEMODE_DWARF) { World->SetPauseState(true); } @@ -76,7 +76,7 @@ DFhackCExport command_result reveal(DFHack::Core * c, std::vector<std::string> & DFHack::World *World =c->getWorld(); t_gamemodes gm; World->ReadGameMode(gm); - if(gm.game_mode != GM_Fort) + if(gm.g_mode != GAMEMODE_DWARF) { dfout << "Only in fortress mode." << std::endl; c->Resume(); @@ -141,7 +141,7 @@ DFhackCExport command_result unreveal(DFHack::Core * c, std::vector<std::string> DFHack::World *World =c->getWorld(); t_gamemodes gm; World->ReadGameMode(gm); - if(gm.game_mode != GM_Fort) + if(gm.g_mode != GAMEMODE_DWARF) { dfout << "Only in fortress mode." << std::endl; c->Resume(); |
