summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-03-08 19:43:38 +0000
committerfrosch <frosch@openttd.org>2011-03-08 19:43:38 +0000
commitb997ebb94292972f445bd11678ae7768618e0299 (patch)
tree22af76d4af87a869176a1de486fac089b19d4b3b
parent9cf92e2bd250a0ff4fc3fa167057f1e79891d9ef (diff)
downloadopenttd-b997ebb94292972f445bd11678ae7768618e0299.tar.xz
(svn r22227) -Fix [FS#4546-ish]: Call sheduled OnInvalidate()-calls before doing OnHundrethTick()-calls.
-rw-r--r--src/window.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 57c753c52..aa02aad11 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2403,6 +2403,11 @@ void InputLoop()
void UpdateWindows()
{
Window *w;
+
+ FOR_ALL_WINDOWS_FROM_FRONT(w) {
+ w->ProcessScheduledInvalidations();
+ }
+
static int we4_timer = 0;
int t = we4_timer + 1;
@@ -2420,7 +2425,6 @@ void UpdateWindows()
if (!(w->flags4 & WF_WHITE_BORDER_MASK)) w->SetDirty();
}
- w->ProcessScheduledInvalidations();
}
DrawDirtyBlocks();