forked from mirror/OpenTTD
(svn r3773) Shove some semantics down ottd's throat by replacing ints and magic numbers by enums and some related changes
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user