summaryrefslogtreecommitdiff
path: root/plugins/seedwatch.cpp
diff options
context:
space:
mode:
authorDonald Ruegsegger2012-08-01 19:52:50 -0500
committerDonald Ruegsegger2012-08-01 19:52:50 -0500
commitd8cb6e2c4edc62c2c1080103c8191f1cd6bc0ce5 (patch)
treee8992426adfca29f61553b25301e0efe4ab69011 /plugins/seedwatch.cpp
parentaee15db75fdb4cb812788e13db4c83da6672d951 (diff)
downloaddfhack-d8cb6e2c4edc62c2c1080103c8191f1cd6bc0ce5.tar.gz
dfhack-d8cb6e2c4edc62c2c1080103c8191f1cd6bc0ce5.tar.bz2
dfhack-d8cb6e2c4edc62c2c1080103c8191f1cd6bc0ce5.tar.xz
Fixed seedwatch not working on reclaim
Just needed to add a check for game_type::DWARF_RECLAIM in two places
Diffstat (limited to 'plugins/seedwatch.cpp')
-rwxr-xr-xplugins/seedwatch.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/seedwatch.cpp b/plugins/seedwatch.cpp
index ae9ff0e1..676c02ed 100755
--- a/plugins/seedwatch.cpp
+++ b/plugins/seedwatch.cpp
@@ -111,7 +111,8 @@ 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 != game_mode::DWARF || gm.g_type != game_type::DWARF_MAIN)
+ if(gm.g_mode != game_mode::DWARF ||
+ !(gm.g_type == game_type::DWARF_MAIN || gm.g_type == game_type::DWARF_RECLAIM))
{
// just print the help
printHelp(out);
@@ -299,7 +300,8 @@ 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 != game_mode::DWARF || gm.g_type != game_type::DWARF_MAIN)
+ if(gm.g_mode != game_mode::DWARF ||
+ !(gm.g_type == game_type::DWARF_MAIN || gm.g_type == game_type::DWARF_RECLAIM))
{
// stop running.
running = false;