summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-19 10:31:30 +0000
committerrubidium <rubidium@openttd.org>2009-04-19 10:31:30 +0000
commit329cabab4fe4b963c1b928740e0d9f38f7e63b01 (patch)
treea601e141ae386f6a3a400c146dc605dcb03c20d3 /src/window.cpp
parent2a2b40461d478406aef9d12093e07ed8ae5b987f (diff)
downloadopenttd-329cabab4fe4b963c1b928740e0d9f38f7e63b01.tar.xz
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/window.cpp b/src/window.cpp
index a35eb28f4..22cae5e84 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -577,7 +577,7 @@ void Window::DeleteChildWindows() const
*/
Window::~Window()
{
- if (_thd.place_mode != VHM_NONE &&
+ if (_thd.place_mode != HT_NONE &&
_thd.window_class == this->window_class &&
_thd.window_number == this->window_number) {
ResetObjectToPlace();
@@ -1994,7 +1994,7 @@ void MouseLoop(MouseClick click, int mousewheel)
case MC_DOUBLE_LEFT:
case MC_LEFT:
DEBUG(misc, 2, "Cursor: 0x%X (%d)", _cursor.sprite, _cursor.sprite);
- if (_thd.place_mode != VHM_NONE &&
+ if (_thd.place_mode != HT_NONE &&
/* query button and place sign button work in pause mode */
_cursor.sprite != SPR_CURSOR_QUERY &&
_cursor.sprite != SPR_CURSOR_SIGN &&
@@ -2003,7 +2003,7 @@ void MouseLoop(MouseClick click, int mousewheel)
return;
}
- if (_thd.place_mode == VHM_NONE) {
+ if (_thd.place_mode == HT_NONE) {
if (!HandleViewportClicked(vp, x, y) &&
!(w->flags4 & WF_DISABLE_VP_SCROLL) &&
_settings_client.gui.left_mouse_btn_scrolling) {