summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-12-24 14:52:42 +0000
committeralberth <alberth@openttd.org>2010-12-24 14:52:42 +0000
commite930b9985d8b12a8b71d69c7897733626e4704c2 (patch)
tree33bb06f5fbf3f104b63139cbeab0b3ed933adf1f /src/window.cpp
parentcdae336febf896c7c8f00dc0098bfaf5fe7a217f (diff)
downloadopenttd-e930b9985d8b12a8b71d69c7897733626e4704c2.tar.xz
(svn r21620) -Codechange: Don't consider direction bits when checking for an active highlight mode.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 5e0242839..e9b7e6748 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -653,7 +653,7 @@ void Window::DeleteChildWindows(WindowClass wc) const
*/
Window::~Window()
{
- if (_thd.place_mode != HT_NONE &&
+ if ((_thd.place_mode & ~HT_DIR_MASK) != HT_NONE &&
_thd.window_class == this->window_class &&
_thd.window_number == this->window_number) {
ResetObjectToPlace();