summaryrefslogtreecommitdiff
path: root/src/depot.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-24 09:42:39 +0000
committertron <tron@openttd.org>2007-02-24 09:42:39 +0000
commitd3b29bcacb4589922a3afc85cf648609b49679dc (patch)
treecfdc363aade39ceff0da3ef6b20dbd7e95b49c83 /src/depot.h
parent1d1121f85a975a6b9ed8305c154fc39f4f5db7fd (diff)
downloadopenttd-d3b29bcacb4589922a3afc85cf648609b49679dc.tar.xz
(svn r8876) -Fix
Replace tests with magic numbers by a simple extraction template for command parameters
Diffstat (limited to 'src/depot.h')
-rw-r--r--src/depot.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depot.h b/src/depot.h
index 8e60f674e..61272670b 100644
--- a/src/depot.h
+++ b/src/depot.h
@@ -85,7 +85,7 @@ static inline bool IsTileDepotType(TileIndex tile, TransportType type)
/**
* Find out if the slope of the tile is suitable to build a depot of given direction
- * @param direction The direction in which the depot's exit points. Starts with 0 as NE and goes Clockwise
+ * @param direction The direction in which the depot's exit points
* @param tileh The slope of the tile in question
* @return true if the construction is possible
@@ -98,7 +98,7 @@ static inline bool IsTileDepotType(TileIndex tile, TransportType type)
* 03 (exit towards NW) we need either bit 0 or 4 set in tileh: 0x4C >> 3 = 1001<p>
* So ((0x4C >> direction) & tileh) determines whether the depot can be built on the current tileh
*/
-static inline bool CanBuildDepotByTileh(uint32 direction, Slope tileh)
+static inline bool CanBuildDepotByTileh(DiagDirection direction, Slope tileh)
{
return ((0x4C >> direction) & tileh) != 0;
}