From 2232412f598d0c046dff9168467efcdee7dcbbf2 Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 16 Mar 2006 21:44:58 +0000 Subject: (svn r3911) Add functions to retrieve/set the signal variant (electric/semaphore) --- rail.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'rail.h') 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. -- cgit v1.2.3-54-g00ecf