# HG changeset patch # User peter1138 # Date 1177008580 0 # Node ID 4a4b06bee934a4fb0d5b60a22b1683155963f6b1 # Parent b41e51f3c9efedb0ad47f6aebe5066ab47876c98 (svn r9678) -Codechange: Support changing of aircraft running cost via callback 36. diff -r b41e51f3c9ef -r 4a4b06bee934 src/aircraft_cmd.cpp --- a/src/aircraft_cmd.cpp Thu Apr 19 17:54:45 2007 +0000 +++ b/src/aircraft_cmd.cpp Thu Apr 19 18:49:40 2007 +0000 @@ -717,7 +717,7 @@ 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;