equal
deleted
inserted
replaced
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) |