summaryrefslogtreecommitdiff
path: root/rail_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'rail_map.h')
-rw-r--r--rail_map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rail_map.h b/rail_map.h
index 1f88113c0..5a3828282 100644
--- a/rail_map.h
+++ b/rail_map.h
@@ -110,6 +110,11 @@ static inline TrackBits GetTrackBits(TileIndex tile)
return (TrackBits)GB(_m[tile].m5, 0, 6);
}
+static inline void SetTrackBits(TileIndex t, TrackBits b)
+{
+ SB(_m[t].m5, 0, 6, b);
+}
+
static inline DiagDirection GetRailDepotDirection(TileIndex t)
{