mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r9678) -Codechange: Support changing of aircraft running cost via callback 36.
This commit is contained in:
parent
0552b19225
commit
a40d53d8d1
@ -717,7 +717,7 @@ void OnNewDay_Aircraft(Vehicle *v)
|
||||
|
||||
if (v->vehstatus & VS_STOPPED) return;
|
||||
|
||||
int32 cost = AircraftVehInfo(v->engine_type)->running_cost * _price.aircraft_running / 364;
|
||||
int32 cost = GetVehicleProperty(v, 0x0E, AircraftVehInfo(v->engine_type)->running_cost) * _price.aircraft_running / 364;
|
||||
|
||||
v->profit_this_year -= cost >> 8;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user