Feature: [NewGRF] Maximum curve speed modifier for rail vehicles (#9346)

This commit is contained in:
Vít Šefl
2021-08-15 11:17:05 +02:00
committed by GitHub
parent 579f393374
commit 2183fd4dab
8 changed files with 38 additions and 7 deletions

View File

@@ -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,