(svn r1015) MFM r789
Replaced the slightly misleading SERVICE_INTERVAL by a function VehicleNeedsService()
This commit is contained in:
@@ -390,6 +390,8 @@ int CheckStoppedInDepot(Vehicle *v);
|
||||
int ScheduleHasDepotOrders(const Order *schedule);
|
||||
int CheckOrders(Vehicle *v);
|
||||
|
||||
bool VehicleNeedsService(const Vehicle *v);
|
||||
|
||||
typedef struct GetNewVehiclePosResult {
|
||||
int x,y;
|
||||
uint old_tile;
|
||||
@@ -449,7 +451,6 @@ VARDEF BackuppedOrders _backup_orders_data[1];
|
||||
|
||||
#define INVALID_VEHICLE 0xffff
|
||||
|
||||
#define SERVICE_INTERVAL (_patches.servint_ispercent ? (v->reliability > _engines[v->engine_type].reliability * (100 - v->service_interval) / 100) : (v->date_of_last_service + v->service_interval > _date))
|
||||
#define MIN_SERVINT_PERCENT 5
|
||||
#define MAX_SERVINT_PERCENT 90
|
||||
#define MIN_SERVINT_DAYS 30
|
||||
|
||||
Reference in New Issue
Block a user