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

@@ -982,6 +982,9 @@ static void MakeNewGameDone()
{
SettingsDisableElrail(_settings_game.vehicle.disable_elrails);
extern void PostCheckNewGRFLoadWarnings();
PostCheckNewGRFLoadWarnings();
/* In a dedicated server, the server does not play */
if (!VideoDriver::GetInstance()->HasGUI()) {
SetLocalCompany(COMPANY_SPECTATOR);
@@ -1049,6 +1052,9 @@ static void MakeNewGame(bool from_heightmap, bool reset_settings)
static void MakeNewEditorWorldDone()
{
SetLocalCompany(OWNER_NONE);
extern void PostCheckNewGRFLoadWarnings();
PostCheckNewGRFLoadWarnings();
}
static void MakeNewEditorWorld()