summaryrefslogtreecommitdiff
path: root/plugins/workflow.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/workflow.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/workflow.cpp')
-rw-r--r--plugins/workflow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/workflow.cpp b/plugins/workflow.cpp
index e408df50..7e28893f 100644
--- a/plugins/workflow.cpp
+++ b/plugins/workflow.cpp
@@ -138,11 +138,11 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out)
DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event)
{
switch (event) {
- case SC_GAME_LOADED:
+ case SC_MAP_LOADED:
cleanup_state(out);
init_state(out);
break;
- case SC_GAME_UNLOADED:
+ case SC_MAP_UNLOADED:
cleanup_state(out);
break;
default: