summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-11-24 18:39:22 +0000
committerpeter1138 <peter1138@openttd.org>2006-11-24 18:39:22 +0000
commitc079c83eb65e8365680523f6fba676f9c41ec10a (patch)
tree55d15b28e028ea338db8ec11d3266151027da760 /misc_gui.c
parent8d175ccb136581de4fb77931b029841144fe3f52 (diff)
downloadopenttd-c079c83eb65e8365680523f6fba676f9c41ec10a.tar.xz
(svn r7250) -Codechange: Shuffle sprite loading and character width caching around a bit. This reduces the number of times the sprites are loaded from 5 to 2, just for the intro game.
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 3d721ca29..89ee4f216 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1659,6 +1659,7 @@ static int32 ClickChangeClimateCheat(int32 p1, int32 p2)
if (p1 == 4) p1 = 0;
_opt.landscape = p1;
GfxLoadSprites();
+ LoadStringWidthTable();
MarkWholeScreenDirty();
return _opt.landscape;
}