From 329cabab4fe4b963c1b928740e0d9f38f7e63b01 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 19 Apr 2009 10:31:30 +0000 Subject: (svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing --- src/window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/window.cpp') 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) { -- cgit v1.2.3-54-g00ecf