From a3108c668b946ad551b52805d7e59f50d464b17a Mon Sep 17 00:00:00 2001 From: Mike Stewart Date: Tue, 28 Feb 2012 09:23:02 -0800 Subject: [PATCH] Actually fix cursor detection in follow this time. --- plugins/follow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/follow.cpp b/plugins/follow.cpp index ab4bb4a31..d13643db5 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