diff options
author | tron <tron@openttd.org> | 2006-03-19 17:52:02 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-19 17:52:02 +0000 |
commit | 9f3aa9057d46e1305452071fa15a74b5d756e917 (patch) | |
tree | d076347c51f3bccb63ddf87c444a6d65b43f4420 /rail_map.h | |
parent | a751a796e13606d8ebd1a8fe720ff72e0b4c1b11 (diff) | |
download | openttd-9f3aa9057d46e1305452071fa15a74b5d756e917.tar.xz |
(svn r3985) Make CmdBuildSingleRail() a bit more comprehensible
Diffstat (limited to 'rail_map.h')
-rw-r--r-- | rail_map.h | 5 |
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) { |