From 8405d7d7e762546e3e78d1e0c16bb226c36266fa Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 21 Jul 2009 22:37:10 +0000 Subject: (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? --- src/station_map.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/station_map.h') 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; } -- cgit v1.2.3-54-g00ecf