diff options
author | Vít Šefl <vituscze@gmail.com> | 2021-08-15 11:17:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-15 11:17:05 +0200 |
commit | 2183fd4dabe72bd96b264bf8cdb3a2a8be625cf8 (patch) | |
tree | 7a94f94723ac65e43d5ab856d5945b3bce9a5b31 /src/newgrf_engine.h | |
parent | 579f393374c4fae2458523a674c453349fce7c59 (diff) | |
download | openttd-2183fd4dabe72bd96b264bf8cdb3a2a8be625cf8.tar.xz |
Feature: [NewGRF] Maximum curve speed modifier for rail vehicles (#9346)
Diffstat (limited to 'src/newgrf_engine.h')
-rw-r--r-- | src/newgrf_engine.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_engine.h b/src/newgrf_engine.h index 90d755d3c..f63134d9f 100644 --- a/src/newgrf_engine.h +++ b/src/newgrf_engine.h @@ -100,8 +100,8 @@ bool UsesWagonOverride(const Vehicle *v); /* Handler to Evaluate callback 36. If the callback fails (i.e. most of the * time) orig_value is returned */ -uint GetVehicleProperty(const Vehicle *v, PropertyID property, uint orig_value); -uint GetEngineProperty(EngineID engine, PropertyID property, uint orig_value, const Vehicle *v = nullptr); +int GetVehicleProperty(const Vehicle *v, PropertyID property, int orig_value, bool is_signed = false); +int GetEngineProperty(EngineID engine, PropertyID property, int orig_value, const Vehicle *v = nullptr, bool is_signed = false); enum VehicleTrigger { VEHICLE_TRIGGER_NEW_CARGO = 0x01, |