Industry: Determine which tiles in industry layouts are not animated

Do not set these as animated tiles for new industries
This commit is contained in:
Jonathan G Rennison
2022-06-01 00:30:21 +01:00
parent 220390ed3e
commit 42e20d3d99
12 changed files with 208 additions and 3 deletions

View File

@@ -69,6 +69,7 @@
#include "../infrastructure_func.h"
#include "../event_logs.h"
#include "../newgrf_object.h"
#include "../newgrf_industrytiles.h"
#include "saveload_internal.h"
@@ -950,6 +951,7 @@ bool AfterLoadGame()
}
AfterLoadEngines();
AnalyseIndustryTileSpriteGroups();
/* Update all vehicles */
AfterLoadVehicles(true);
@@ -4138,6 +4140,7 @@ void ReloadNewGRFData()
/* reload vehicles */
ResetVehicleHash();
AfterLoadEngines();
AnalyseIndustryTileSpriteGroups();
AfterLoadVehicles(false);
StartupEngines();
GroupStatistics::UpdateAfterLoad();