summaryrefslogtreecommitdiff
path: root/plugins/follow.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/follow.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/follow.cpp')
-rw-r--r--plugins/follow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/follow.cpp b/plugins/follow.cpp
index b383d95c..96693df8 100644
--- a/plugins/follow.cpp
+++ b/plugins/follow.cpp
@@ -48,8 +48,8 @@ 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_GAME_UNLOADED: //Make sure our plugin's variables are clean
+ case SC_MAP_LOADED:
+ case SC_MAP_UNLOADED: //Make sure our plugin's variables are clean
followedUnit = 0;
prevX=prevY=prevZ = -1;
prevMenuWidth = 0;