summaryrefslogtreecommitdiff
path: root/src/rail_map.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-22 08:52:41 +0000
committerrubidium <rubidium@openttd.org>2009-07-22 08:52:41 +0000
commit2646a99d29535a44c5998f080131cbca2e85bdcf (patch)
treef0cc43c544b806d042c7a7989b2634da7c76ca00 /src/rail_map.h
parent8405d7d7e762546e3e78d1e0c16bb226c36266fa (diff)
downloadopenttd-2646a99d29535a44c5998f080131cbca2e85bdcf.tar.xz
(svn r16908) -Codechange: s/DepotWaypointReservation/DepotReservation/
Diffstat (limited to 'src/rail_map.h')
-rw-r--r--src/rail_map.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/rail_map.h b/src/rail_map.h
index 8fe1bf2ba..1fd3212e6 100644
--- a/src/rail_map.h
+++ b/src/rail_map.h
@@ -312,28 +312,26 @@ static inline void UnreserveTrack(TileIndex tile, Track t)
}
/**
- * Get the reservation state of the waypoint or depot
- * @note Works for both waypoints and rail depots
- * @pre IsRailWaypoint(t) || IsRailDepot(t)
- * @param t the waypoint/depot tile
+ * Get the reservation state of the depot
+ * @pre IsRailDepot(t)
+ * @param t the depot tile
* @return reservation state
*/
-static inline bool HasDepotWaypointReservation(TileIndex t)
+static inline bool HasDepotReservation(TileIndex t)
{
- assert(IsRailWaypoint(t) || IsRailDepot(t));
+ assert(IsRailDepot(t));
return HasBit(_m[t].m5, 4);
}
/**
- * Set the reservation state of the waypoint or depot
- * @note Works for both waypoints and rail depots
- * @pre IsRailWaypoint(t) || IsRailDepot(t)
- * @param t the waypoint/depot tile
+ * Set the reservation state of the depot
+ * @pre IsRailDepot(t)
+ * @param t the depot tile
* @param b the reservation state
*/
-static inline void SetDepotWaypointReservation(TileIndex t, bool b)
+static inline void SetDepotReservation(TileIndex t, bool b)
{
- assert(IsRailWaypoint(t) || IsRailDepot(t));
+ assert(IsRailDepot(t));
SB(_m[t].m5, 4, 1, (byte)b);
}
@@ -345,7 +343,7 @@ static inline void SetDepotWaypointReservation(TileIndex t, bool b)
*/
static inline TrackBits GetWaypointReservationTrackBits(TileIndex t)
{
- return HasDepotWaypointReservation(t) ? GetRailWaypointBits(t) : TRACK_BIT_NONE;
+ return HasDepotReservation(t) ? GetRailWaypointBits(t) : TRACK_BIT_NONE;
}
/**
@@ -356,7 +354,7 @@ static inline TrackBits GetWaypointReservationTrackBits(TileIndex t)
*/
static inline TrackBits GetDepotReservationTrackBits(TileIndex t)
{
- return HasDepotWaypointReservation(t) ? TrackToTrackBits(GetRailDepotTrack(t)) : TRACK_BIT_NONE;
+ return HasDepotReservation(t) ? TrackToTrackBits(GetRailDepotTrack(t)) : TRACK_BIT_NONE;
}