(svn r3660) Convert further road bits and type references to the functions/enums

This commit is contained in:
tron
2006-02-23 12:24:19 +00:00
parent c3c0afb902
commit 6a74cb2787
6 changed files with 22 additions and 17 deletions

View File

@@ -1112,7 +1112,7 @@ static uint32 GetTileTrackStatus_Road(TileIndex tile, TransportType mode)
return _m[tile].m5 & 8 ? 0x101 : 0x202;
case TRANSPORT_ROAD:
switch (GB(_m[tile].m5, 4, 4)) {
switch (GetRoadType(tile)) {
case ROAD_NORMAL:
return !_road_special_gettrackstatus && GB(_m[tile].m4, 4, 3) >= 6 ?
0 : _road_trackbits[GetRoadBits(tile)] * 0x101;