From df0afdf0dca6b3d4f621248ada2aed73d7481c66 Mon Sep 17 00:00:00 2001 From: truebrain Date: Thu, 15 Dec 2011 19:54:23 +0000 Subject: (svn r23525) -Codechange: make Window::flags4 WindowFlags instead of uint16, with only values known in WindowFlags (and move out 2 timers to their own variable) -Codechange: rename Window::flags4 to Window::flags -Codechange: move some non-inline functions from .hpp to .cpp --- src/industry_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/industry_gui.cpp') diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 7a5a58863..7ce40ea42 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -673,7 +673,7 @@ class IndustryViewWindow : public Window public: IndustryViewWindow(const WindowDesc *desc, WindowNumber window_number) : Window() { - this->flags4 |= WF_DISABLE_VP_SCROLL; + this->flags |= WF_DISABLE_VP_SCROLL; this->editbox_line = IL_NONE; this->clicked_line = IL_NONE; this->clicked_button = 0; @@ -886,7 +886,7 @@ public: UpdateIndustryProduction(i); this->SetDirty(); - this->flags4 |= WF_TIMEOUT_BEGIN; + this->SetTimeout(); this->clicked_line = line; this->clicked_button = button; } else if (IsInsideMM(pt.x, left + 30, right)) { -- cgit v1.2.3-54-g00ecf