summaryrefslogtreecommitdiff
path: root/rail.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-16 21:44:58 +0000
committertron <tron@openttd.org>2006-03-16 21:44:58 +0000
commit2232412f598d0c046dff9168467efcdee7dcbbf2 (patch)
tree0b26f61baa45314541725555129e721403a38b9b /rail.h
parent9aab1d5711a545dd0d9b89200025369770eaad98 (diff)
downloadopenttd-2232412f598d0c046dff9168467efcdee7dcbbf2.tar.xz
(svn r3911) Add functions to retrieve/set the signal variant (electric/semaphore)
Diffstat (limited to 'rail.h')
-rw-r--r--rail.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/rail.h b/rail.h
index 8bda90441..8c7cb8a42 100644
--- a/rail.h
+++ b/rail.h
@@ -61,9 +61,6 @@ typedef enum RailTypes {
INVALID_RAILTYPE = 0xFF,
} RailType;
-enum {
- SIG_SEMAPHORE_MASK = 1 << 2,
-};
/** These are used to specify a single track. Can be translated to a trackbit
* with TrackToTrackbit */
@@ -531,20 +528,6 @@ static inline SignalType GetSignalType(TileIndex tile, Track track)
return (SignalType)(_m[tile].m4 & SIGTYPE_MASK);
}
-/**
- * Checks if this tile contains semaphores (returns true) or normal signals
- * (returns false) on the given track. Does not check if there are actually
- * signals on the track, you should use HasSignalsOnTrack() for that.
- *
- * Note that currently, the track argument is not used, since
- * semaphores/electric signals cannot be mixed. This function is trying to be
- * future-compatible, though.
- */
-static inline bool HasSemaphores(TileIndex tile, Track track)
-{
- assert(IsValidTrack(track));
- return (_m[tile].m4 & SIG_SEMAPHORE_MASK) != 0;
-}
/**
* Return the rail type of tile, or INVALID_RAILTYPE if this is no rail tile.