Add setting to disable continuously updating NewGRF vehicle image

This commit is contained in:
Jonathan G Rennison
2020-11-08 11:43:23 +00:00
parent 760a1f0163
commit cde5e8c79d
7 changed files with 25 additions and 2 deletions

View File

@@ -1364,6 +1364,14 @@ static bool UpdateLinkgraphColours(int32 p1)
return RedrawScreen(p1);
}
static bool InvalidateAllVehicleImageCaches(int32 p1)
{
for (Vehicle *v : Vehicle::Iterate()) {
v->InvalidateImageCache();
}
return true;
}
/** Checks if any settings are set to incorrect values, and sets them to correct values in that case. */
static void ValidateSettings()
{