diff options
author | rubidium <rubidium@openttd.org> | 2010-10-29 19:35:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-10-29 19:35:43 +0000 |
commit | 0baf335be3af23144a61a7230686b8811dc953ba (patch) | |
tree | 026dd2253025b651c98e24266125b89bb8ba6069 /src | |
parent | edcd1af9acb5d32297aa2ec7fabe6db5b2ec0153 (diff) | |
download | openttd-0baf335be3af23144a61a7230686b8811dc953ba.tar.xz |
(svn r21057) -Fix [FS#4182] (r20922): network client "fast forward" incrementing counter multiple times in same "GUI" tick causing an invalid state
Diffstat (limited to 'src')
-rw-r--r-- | src/window.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp index 1670ca491..08ed1adb1 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -2406,6 +2406,7 @@ void InputLoop() free(w); } + if (_scroller_click_timeout != 0) _scroller_click_timeout--; DecreaseWindowCounters(); if (_input_events_this_tick != 0) { @@ -2530,8 +2531,6 @@ void InvalidateWindowClassesData(WindowClass cls, int data) */ void CallWindowTickEvent() { - if (_scroller_click_timeout != 0) _scroller_click_timeout--; - Window *w; FOR_ALL_WINDOWS_FROM_FRONT(w) { w->OnTick(); |