diff options
author | truelight <truelight@openttd.org> | 2004-12-27 18:18:44 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-27 18:18:44 +0000 |
commit | 8dcbf2675b784ac3a060c046c10dc393c52f2772 (patch) | |
tree | 1bdcb08fe5cc2a1ad68d905888ce36d7f3a7cc14 /aircraft_cmd.c | |
parent | 96b36ec01eda43cd8e4efedaf8e9249e9597403f (diff) | |
download | openttd-8dcbf2675b784ac3a060c046c10dc393c52f2772.tar.xz |
(svn r1283) -Add: AutoRenew is now a client-side patch instead of a game-side patch
Note: this is the first commit that breaks compatibility with 0.3.5!
-Fix: Bufferoverflow with autorenew_money. It is now a 32-bit integer.
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r-- | aircraft_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c index 7d0c5eb6e..300e2efb3 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -100,7 +100,7 @@ static bool AllocateVehicles(Vehicle **vl, int num) return success; } -static int32 EstimateAircraftCost(uint16 engine_type) +int32 EstimateAircraftCost(uint16 engine_type) { return AircraftVehInfo(engine_type)->base_cost * (_price.aircraft_base>>3)>>5; } @@ -1157,7 +1157,7 @@ static void AircraftEnterHangar(Vehicle *v) ServiceAircraft(v); - MaybeRenewVehicle(v, EstimateAircraftCost(v->engine_type)); + MaybeRenewVehicle(v); TriggerVehicle(v, VEHICLE_TRIGGER_DEPOT); |