From bb07520982dc24273dd3b1647d74a10c89cedba7 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 29 Oct 2010 19:35:43 +0000 Subject: [PATCH] (svn r21057) -Fix [FS#4182] (r20922): network client "fast forward" incrementing counter multiple times in same "GUI" tick causing an invalid state --- src/window.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/window.cpp b/src/window.cpp index 1670ca4911..08ed1adb16 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();