summaryrefslogtreecommitdiff
path: root/src/rail.h
diff options
context:
space:
mode:
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];
-}
-
/**