summaryrefslogtreecommitdiff
path: root/depot.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-05 08:34:39 +0000
committertron <tron@openttd.org>2006-06-05 08:34:39 +0000
commitcfdbb53a82deb7b1a4f3ee1b88045496fa6ce181 (patch)
tree4bf9ebf5facb477852c0544d3fcef98482c2051d /depot.h
parent20cdd71c9f2178d7748e603f752d126873024e57 (diff)
downloadopenttd-cfdbb53a82deb7b1a4f3ee1b88045496fa6ce181.tar.xz
(svn r5116) Move the overly generic GetDepotDirection() from a header to its only consumer
Diffstat (limited to 'depot.h')
-rw-r--r--depot.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/depot.h b/depot.h
index cf8b00bc7..bfd71b2b5 100644
--- a/depot.h
+++ b/depot.h
@@ -8,11 +8,8 @@
#include "direction.h"
#include "pool.h"
-#include "rail_map.h"
-#include "road_map.h"
#include "tile.h"
#include "variables.h"
-#include "water_map.h"
struct Depot {
TileIndex xy;
@@ -92,20 +89,6 @@ static inline bool IsTileDepotType(TileIndex tile, TransportType type)
}
}
-/**
- * Returns the direction the exit of the depot on the given tile is facing.
- */
-static inline DiagDirection GetDepotDirection(TileIndex tile, TransportType type)
-{
- assert(IsTileDepotType(tile, type));
-
- switch (type) {
- case TRANSPORT_RAIL: return GetRailDepotDirection(tile);
- case TRANSPORT_ROAD: return GetRoadDepotDirection(tile);
- case TRANSPORT_WATER: return GetShipDepotDirection(tile);
- default: return INVALID_DIAGDIR; /* Not reached */
- }
-}
/**
Find out if the slope of the tile is suitable to build a depot of given direction