Show warning dialog if NewGRFs use too many string IDs.

Show when reloading/changing NewGRF config, or starting new game.
This commit is contained in:
Jonathan G Rennison
2016-12-08 23:48:53 +00:00
parent 6f4dbacf3e
commit 20a090b077
8 changed files with 35 additions and 1 deletions

View File

@@ -451,6 +451,8 @@ void GfxLoadSprites()
{
DEBUG(sprite, 2, "Loading sprite set %d", _settings_game.game_creation.landscape);
_grf_bug_too_many_strings = false;
SwitchNewGRFBlitter();
ClearFontCache();
GfxInitSpriteMem();
@@ -460,6 +462,8 @@ void GfxLoadSprites()
UpdateRouteStepSpriteSize();
UpdateCursorSize();
DEBUG(sprite, 2, "Completed loading sprite set %d", _settings_game.game_creation.landscape);
}
bool GraphicsSet::FillSetDetails(IniFile *ini, const char *path, const char *full_filename)