summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2018-05-20 13:03:09 +0100
committerPeterN <peter@fuzzle.org>2019-01-11 11:56:21 +0000
commitc693463c29f98f763cc4dd6346527262b34ff6ea (patch)
tree4eac6f5d311eeaabc8c6b06a2acf2c9694352eb7 /src
parent806e7d25dddcc8b0e9c3f372ed956c63c6508381 (diff)
downloadopenttd-c693463c29f98f763cc4dd6346527262b34ff6ea.tar.xz
Fix: Always draw dirty blocks, else fast-forward is super fast.
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index bbde131a4..7a7a2a182 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -3156,10 +3156,10 @@ void UpdateWindows()
w->SetDirty();
}
}
-
- DrawDirtyBlocks();
}
+ DrawDirtyBlocks();
+
FOR_ALL_WINDOWS_FROM_BACK(w) {
/* Update viewport only if window is not shaded. */
if (w->viewport != NULL && !w->IsShaded()) UpdateViewportPosition(w);