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/seedwatch.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/seedwatch.cpp')
| -rwxr-xr-x | plugins/seedwatch.cpp | 4 |
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; |
