summaryrefslogtreecommitdiff
path: root/src/depot.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-07 00:57:19 +0000
committerrubidium <rubidium@openttd.org>2008-01-07 00:57:19 +0000
commitb0ac283aeca94df1af922bc3e02d456464486427 (patch)
tree3567936f8a68355c82a35bbc85088b7110d0c507 /src/depot.h
parent64fc2ade9eae131c9a65ef1341d373544168a497 (diff)
downloadopenttd-b0ac283aeca94df1af922bc3e02d456464486427.tar.xz
(svn r11774) -Change: do not include variables.h in a header when it is not needed.
Diffstat (limited to 'src/depot.h')
-rw-r--r--src/depot.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/depot.h b/src/depot.h
index ad3499c18..4aec85aa1 100644
--- a/src/depot.h
+++ b/src/depot.h
@@ -7,7 +7,6 @@
#include "direction_type.h"
#include "oldpool.h"
-#include "variables.h"
#include "road_map.h"
#include "rail_map.h"
#include "water_map.h"
@@ -36,23 +35,6 @@ void ShowDepotWindow(TileIndex tile, VehicleType type);
#define FOR_ALL_DEPOTS_FROM(d, start) for (d = GetDepot(start); d != NULL; d = (d->index + 1U < GetDepotPoolSize()) ? GetDepot(d->index + 1U) : NULL) if (d->IsValid())
#define FOR_ALL_DEPOTS(d) FOR_ALL_DEPOTS_FROM(d, 0)
-#define MIN_SERVINT_PERCENT 5
-#define MAX_SERVINT_PERCENT 90
-#define MIN_SERVINT_DAYS 30
-#define MAX_SERVINT_DAYS 800
-
-/**
- * Get the service interval domain.
- * Get the new proposed service interval for the vehicle is indeed, clamped
- * within the given bounds. @see MIN_SERVINT_PERCENT ,etc.
- * @param index proposed service interval
- * @return service interval
- */
-static inline Date GetServiceIntervalClamped(uint index)
-{
- return (_patches.servint_ispercent) ? Clamp(index, MIN_SERVINT_PERCENT, MAX_SERVINT_PERCENT) : Clamp(index, MIN_SERVINT_DAYS, MAX_SERVINT_DAYS);
-}
-
/**
* Check if a tile is a depot of the given type.
*/