diff options
| author | Petr Mrázek | 2012-04-01 02:56:54 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2012-04-01 02:56:54 +0200 |
| commit | 7ff728b6fcbff9e6e8cfe49b65d0645729e249f8 (patch) | |
| tree | 5738ea52006e3651be1890eca0f4ca4d1908b8ce /plugins/workflow.cpp | |
| parent | 209b26128464537be2474b78da7b3409fa4f4d92 (diff) | |
| download | dfhack-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.cpp | 4 |
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: |
