summaryrefslogtreecommitdiff
path: root/plugins/follow.cpp
diff options
context:
space:
mode:
authorMike Stewart2012-02-28 09:23:02 -0800
committerMike Stewart2012-02-28 09:23:02 -0800
commita3108c668b946ad551b52805d7e59f50d464b17a (patch)
tree4c62734c5884a9adc217afb8385db893a44310ac /plugins/follow.cpp
parente117d8d98c5d148afc1bc118f2f0598f641db5ee (diff)
downloaddfhack-a3108c668b946ad551b52805d7e59f50d464b17a.tar.gz
dfhack-a3108c668b946ad551b52805d7e59f50d464b17a.tar.bz2
dfhack-a3108c668b946ad551b52805d7e59f50d464b17a.tar.xz
Actually fix cursor detection in follow this time.
Diffstat (limited to 'plugins/follow.cpp')
-rw-r--r--plugins/follow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/follow.cpp b/plugins/follow.cpp
index ab4bb4a3..d13643db 100644
--- a/plugins/follow.cpp
+++ b/plugins/follow.cpp
@@ -77,7 +77,7 @@ DFhackCExport command_result plugin_onupdate ( Core * c )
gui->getMenuWidth(menu_width, area_map_width);
gui->getCursorCoords(c_x,c_y,c_z);
- if (c_x == -30000 && menu_width == 3) menu_width = 2; //Presence of the cursor means that there's actually a width-2 menu open
+ if (c_x != -30000 && menu_width == 3) menu_width = 2; //Presence of the cursor means that there's actually a width-2 menu open
h -= 2; //account for vertical borders