summaryrefslogtreecommitdiff
path: root/src/station_map.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-21 22:37:10 +0000
committerrubidium <rubidium@openttd.org>2009-07-21 22:37:10 +0000
commit8405d7d7e762546e3e78d1e0c16bb226c36266fa (patch)
tree11d3829fce669b25be64f203da5d93319a0c3cdc /src/station_map.h
parent8083d67780d6a85c558080ec99dd2d24ae755d0f (diff)
downloadopenttd-8405d7d7e762546e3e78d1e0c16bb226c36266fa.tar.xz
(svn r16907) -Codechange: make a more clear distinction between reservation functions that return a bool and that return TrackBits; GetRailStationReservation vs GetRailwayStationReservation, which one returns the bool and which one the TrackBits?
Diffstat (limited to 'src/station_map.h')
-rw-r--r--src/station_map.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/station_map.h b/src/station_map.h
index 6c7d15026..a2bb5df66 100644
--- a/src/station_map.h
+++ b/src/station_map.h
@@ -218,7 +218,7 @@ static inline bool IsCompatibleTrainStationTile(TileIndex t1, TileIndex t2)
* @param t the station tile
* @return reservation state
*/
-static inline bool GetRailwayStationReservation(TileIndex t)
+static inline bool HasStationReservation(TileIndex t)
{
assert(IsRailwayStationTile(t));
return HasBit(_m[t].m6, 2);
@@ -242,9 +242,9 @@ static inline void SetRailwayStationReservation(TileIndex t, bool b)
* @param t the tile
* @return reserved track bits
*/
-static inline TrackBits GetRailStationReservation(TileIndex t)
+static inline TrackBits GetStationReservationTrackBits(TileIndex t)
{
- return GetRailwayStationReservation(t) ? GetRailStationTrackBits(t) : TRACK_BIT_NONE;
+ return HasStationReservation(t) ? GetRailStationTrackBits(t) : TRACK_BIT_NONE;
}