changeset 17472:09afab037438 draft

(svn r22227) -Fix [FS#4546-ish]: Call sheduled OnInvalidate()-calls before doing OnHundrethTick()-calls.
author frosch <frosch@openttd.org>
date Tue, 08 Mar 2011 19:43:38 +0000
parents 910342383bab
children 5916ac6a51cc
files src/window.cpp
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2403,6 +2403,11 @@
 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 @@
 
 			if (!(w->flags4 & WF_WHITE_BORDER_MASK)) w->SetDirty();
 		}
-		w->ProcessScheduledInvalidations();
 	}
 
 	DrawDirtyBlocks();