forked from mirror/OpenTTD
(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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user