Add setting to disable continuously updating NewGRF vehicle image
This commit is contained in:
@@ -398,7 +398,7 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> {
|
||||
if (this->cur_speed != this->gcache.last_speed) {
|
||||
SetWindowWidgetDirty(WC_VEHICLE_VIEW, this->index, WID_VV_START_STOP);
|
||||
this->gcache.last_speed = this->cur_speed;
|
||||
if (HasBit(this->vcache.cached_veh_flags, VCF_REDRAW_ON_SPEED_CHANGE)) {
|
||||
if (HasBit(this->vcache.cached_veh_flags, VCF_REDRAW_ON_SPEED_CHANGE) && !_settings_client.gui.disable_vehicle_image_update) {
|
||||
this->InvalidateImageCacheOfChain();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user