diff options
author | tron <tron@openttd.org> | 2006-03-06 13:11:08 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-06 13:11:08 +0000 |
commit | f3fb21c96cd447fd2efeaf085d28bac9588649c7 (patch) | |
tree | 7384488cf17eb4d93ce21ad3b40437978efc939a /road_map.c | |
parent | d79329277897c59f86a6a914af53fdc50d90852c (diff) | |
download | openttd-f3fb21c96cd447fd2efeaf085d28bac9588649c7.tar.xz |
(svn r3773) Shove some semantics down ottd's throat by replacing ints and magic numbers by enums and some related changes
Diffstat (limited to 'road_map.c')
-rw-r--r-- | road_map.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/road_map.c b/road_map.c index ca35d8358..45aba0605 100644 --- a/road_map.c +++ b/road_map.c @@ -2,6 +2,7 @@ #include "stdafx.h" #include "openttd.h" +#include "functions.h" #include "road_map.h" #include "station.h" @@ -42,3 +43,10 @@ RoadBits GetAnyRoadBits(TileIndex tile) default: return 0; } } + + +TrackBits GetAnyRoadTrackBits(TileIndex tile) +{ + uint32 r = GetTileTrackStatus(tile, TRANSPORT_ROAD); + return (byte)(r | (r >> 8)); +} |