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

@@ -56,6 +56,7 @@ static bool CheckYapfRailSignalPenalties(int32 p1);
static bool ViewportMapShowTunnelModeChanged(int32 p1);
static bool ViewportMapLandscapeModeChanged(int32 p1);
static bool UpdateLinkgraphColours(int32 p1);
static bool InvalidateAllVehicleImageCaches(int32 p1);
static bool UpdateClientName(int32 p1);
static bool UpdateServerPassword(int32 p1);
@@ -5025,6 +5026,15 @@ strval = STR_CONFIG_SETTING_LINKGRAPH_COLOURS_GREEN_TO_RED
proc = UpdateLinkgraphColours
cat = SC_BASIC
[SDTC_BOOL]
var = gui.disable_vehicle_image_update
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
def = false
str = STR_CONFIG_SETTING_DISABLE_VEHICLE_IMAGE_UPDATE
strhelp = STR_CONFIG_SETTING_DISABLE_VEHICLE_IMAGE_UPDATE_HELPTEXT
proc = InvalidateAllVehicleImageCaches
cat = SC_ADVANCED
; For the dedicated build we'll enable dates in logs by default.
[SDTC_BOOL]
ifdef = DEDICATED