depot.h
changeset 3884 793081f80381
parent 3636 a36cc46e754d
child 3900 2c84ed52709d
equal deleted inserted replaced
3883:f7e4717b20bf 3884:793081f80381
    58 static inline uint16 GetServiceIntervalClamped(uint index)
    58 static inline uint16 GetServiceIntervalClamped(uint index)
    59 {
    59 {
    60 	return (_patches.servint_ispercent) ? clamp(index, MIN_SERVINT_PERCENT, MAX_SERVINT_PERCENT) : clamp(index, MIN_SERVINT_DAYS, MAX_SERVINT_DAYS);
    60 	return (_patches.servint_ispercent) ? clamp(index, MIN_SERVINT_PERCENT, MAX_SERVINT_PERCENT) : clamp(index, MIN_SERVINT_DAYS, MAX_SERVINT_DAYS);
    61 }
    61 }
    62 
    62 
    63 VARDEF TileIndex _last_built_train_depot_tile;
       
    64 VARDEF TileIndex _last_built_road_depot_tile;
       
    65 VARDEF TileIndex _last_built_aircraft_depot_tile;
       
    66 VARDEF TileIndex _last_built_ship_depot_tile;
       
    67 
    63 
    68 /**
    64 /**
    69  * Check if a depot really exists.
    65  * Check if a depot really exists.
    70  */
    66  */
    71 static inline bool IsValidDepot(const Depot* depot)
    67 static inline bool IsValidDepot(const Depot* depot)