mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r5062) -Fix: town extends road beyond depot or roadstop (introduced by YAPF related change of GetTileTrackStatus() - r4419)
This commit is contained in:
parent
76b29862c0
commit
f8982917ea
@ -8,6 +8,7 @@
|
||||
#include "station.h"
|
||||
#include "tunnel_map.h"
|
||||
#include "station_map.h"
|
||||
#include "depot.h"
|
||||
|
||||
|
||||
RoadBits GetAnyRoadBits(TileIndex tile)
|
||||
@ -51,6 +52,9 @@ RoadBits GetAnyRoadBits(TileIndex tile)
|
||||
|
||||
TrackBits GetAnyRoadTrackBits(TileIndex tile)
|
||||
{
|
||||
if (IsTileType(tile, MP_STREET) && !IsTileDepotType(tile, TRANSPORT_ROAD)) {
|
||||
uint32 r = GetTileTrackStatus(tile, TRANSPORT_ROAD);
|
||||
return (byte)(r | (r >> 8));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user