mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r21057) -Fix [FS#4182] (r20922): network client "fast forward" incrementing counter multiple times in same "GUI" tick causing an invalid state
This commit is contained in:
parent
edcd1af9ac
commit
0baf335be3
@ -2406,6 +2406,7 @@ void InputLoop()
|
|||||||
free(w);
|
free(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_scroller_click_timeout != 0) _scroller_click_timeout--;
|
||||||
DecreaseWindowCounters();
|
DecreaseWindowCounters();
|
||||||
|
|
||||||
if (_input_events_this_tick != 0) {
|
if (_input_events_this_tick != 0) {
|
||||||
@ -2530,8 +2531,6 @@ void InvalidateWindowClassesData(WindowClass cls, int data)
|
|||||||
*/
|
*/
|
||||||
void CallWindowTickEvent()
|
void CallWindowTickEvent()
|
||||||
{
|
{
|
||||||
if (_scroller_click_timeout != 0) _scroller_click_timeout--;
|
|
||||||
|
|
||||||
Window *w;
|
Window *w;
|
||||||
FOR_ALL_WINDOWS_FROM_FRONT(w) {
|
FOR_ALL_WINDOWS_FROM_FRONT(w) {
|
||||||
w->OnTick();
|
w->OnTick();
|
||||||
|
Loading…
Reference in New Issue
Block a user