forked from mirror/OpenTTD
(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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user