(svn r6473) -Fix: FS#347 town extends road beyond road stop. Fixed by r5062, unfixed by r5798. Now there is proper comment, so it should not happen again.

This commit is contained in:
KUDr 2006-09-17 16:23:30 +00:00
parent ed7392ef5d
commit 4794012f37

View File

@ -54,8 +54,8 @@ TrackBits GetAnyRoadTrackBits(TileIndex tile)
{ {
uint32 r; uint32 r;
// Don't allow building through road depot tiles. // Don't allow local authorities to build roads through road depots or road stops.
if (IsTileType(tile, MP_STREET) && IsTileDepotType(tile, TRANSPORT_ROAD)) { if ((IsTileType(tile, MP_STREET) && IsTileDepotType(tile, TRANSPORT_ROAD)) || IsTileType(tile, MP_STATION)) {
return 0; return 0;
} }