summaryrefslogtreecommitdiff
path: root/src/rail.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-25 23:42:52 +0000
committerrubidium <rubidium@openttd.org>2007-12-25 23:42:52 +0000
commitaac835171e2ef3b72e3706754153c1b9304268a8 (patch)
tree070c07001872a2ff901cc931aa615cd0c58aca13 /src/rail.h
parent6cb68b9144a3c0cd22b4fd3392c519a4217b2f72 (diff)
downloadopenttd-aac835171e2ef3b72e3706754153c1b9304268a8.tar.xz
(svn r11700) -Codechange: reduce the amount of unnecessary includes.
Diffstat (limited to 'src/rail.h')
-rw-r--r--src/rail.h37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/rail.h b/src/rail.h
index 9975507fc..1f940e19d 100644
--- a/src/rail.h
+++ b/src/rail.h
@@ -12,6 +12,7 @@
#include "core/bitmath_func.hpp"
#include "economy_func.h"
#include "variables.h"
+#include "tile_cmd.h"
/** This struct contains all the info that is needed to draw and construct tracks.
*/
@@ -97,42 +98,6 @@ enum {
NUM_SSD_STACK = 32, ///< max amount of blocks to check recursively
};
-/*
- * Functions to map tracks to the corresponding bits in the signal
- * presence/status bytes in the map. You should not use these directly, but
- * wrapper functions below instead. XXX: Which are these?
- */
-
-/**
- * Maps a trackdir to the bit that stores its status in the map arrays, in the
- * direction along with the trackdir.
- */
-static inline byte SignalAlongTrackdir(Trackdir trackdir)
-{
- extern const byte _signal_along_trackdir[TRACKDIR_END];
- return _signal_along_trackdir[trackdir];
-}
-
-/**
- * Maps a trackdir to the bit that stores its status in the map arrays, in the
- * direction against the trackdir.
- */
-static inline byte SignalAgainstTrackdir(Trackdir trackdir)
-{
- extern const byte _signal_against_trackdir[TRACKDIR_END];
- return _signal_against_trackdir[trackdir];
-}
-
-/**
- * Maps a Track to the bits that store the status of the two signals that can
- * be present on the given track.
- */
-static inline byte SignalOnTrack(Track track)
-{
- extern const byte _signal_on_track[TRACK_END];
- return _signal_on_track[track];
-}
-
/**