summaryrefslogtreecommitdiff
path: root/plugins/seedwatch.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2012-04-01 02:56:54 +0200
committerPetr Mrázek2012-04-01 02:56:54 +0200
commit7ff728b6fcbff9e6e8cfe49b65d0645729e249f8 (patch)
tree5738ea52006e3651be1890eca0f4ca4d1908b8ce /plugins/seedwatch.cpp
parent209b26128464537be2474b78da7b3409fa4f4d92 (diff)
downloaddfhack-7ff728b6fcbff9e6e8cfe49b65d0645729e249f8.tar.gz
dfhack-7ff728b6fcbff9e6e8cfe49b65d0645729e249f8.tar.bz2
dfhack-7ff728b6fcbff9e6e8cfe49b65d0645729e249f8.tar.xz
Track world and map changes separately for plugin_onstatechange
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 77d25cf6..b6097f62 100755
--- a/plugins/seedwatch.cpp
+++ b/plugins/seedwatch.cpp
@@ -272,8 +272,8 @@ DFhackCExport command_result plugin_init(color_ostream &out, vector<PluginComman
DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event)
{
switch (event) {
- case SC_GAME_LOADED:
- case SC_GAME_UNLOADED:
+ case SC_MAP_LOADED:
+ case SC_MAP_UNLOADED:
if (running)
out.printerr("seedwatch deactivated due to game load/unload\n");
running = false;