(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:
2006-11-24 18:39:22 +00:00
parent 8d175ccb13
commit c079c83eb6
4 changed files with 9 additions and 15 deletions

View File

@@ -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;
}