From e930b9985d8b12a8b71d69c7897733626e4704c2 Mon Sep 17 00:00:00 2001 From: alberth Date: Fri, 24 Dec 2010 14:52:42 +0000 Subject: (svn r21620) -Codechange: Don't consider direction bits when checking for an active highlight mode. --- src/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/viewport.cpp') diff --git a/src/viewport.cpp b/src/viewport.cpp index 34709cd71..c3608d0cc 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -2840,7 +2840,7 @@ void SetObjectToPlaceWnd(CursorID icon, PaletteID pal, HighLightStyle mode, Wind void SetObjectToPlace(CursorID icon, PaletteID pal, HighLightStyle mode, WindowClass window_class, WindowNumber window_num) { /* undo clicking on button and drag & drop */ - if (_thd.place_mode != HT_NONE || _special_mouse_mode == WSM_DRAGDROP) { + if ((_thd.place_mode & ~HT_DIR_MASK) != HT_NONE || _special_mouse_mode == WSM_DRAGDROP) { Window *w = FindWindowById(_thd.window_class, _thd.window_number); if (w != NULL) { /* Call the abort function, but set the window class to something -- cgit v1.2.3-54-g00ecf