equal
deleted
inserted
replaced
1485 * doing a reversing turn when the piece of tram track on the next |
1485 * doing a reversing turn when the piece of tram track on the next |
1486 * tile did not exist yet. Do not use the big tram loop as that is |
1486 * tile did not exist yet. Do not use the big tram loop as that is |
1487 * going to cause the tram to split up. |
1487 * going to cause the tram to split up. |
1488 * - Or the front of the tram can drive over the next tile. |
1488 * - Or the front of the tram can drive over the next tile. |
1489 */ |
1489 */ |
1490 } else if (!IsRoadVehFront(v) || !CanBuildTramTrackOnTile(v->owner, tile, needed) || ((~needed & GetRoadBits(v->tile, ROADTYPE_TRAM)) == ROAD_NONE)) { |
1490 } else if (!IsRoadVehFront(v) || !CanBuildTramTrackOnTile(v->owner, tile, needed) || ((~needed & GetAnyRoadBits(v->tile, ROADTYPE_TRAM, false)) == ROAD_NONE)) { |
1491 /* |
1491 /* |
1492 * Taking the 'small' corner for trams only happens when: |
1492 * Taking the 'small' corner for trams only happens when: |
1493 * - We are not the from vehicle of an articulated tram. |
1493 * - We are not the from vehicle of an articulated tram. |
1494 * - Or when the company cannot build on the next tile. |
1494 * - Or when the company cannot build on the next tile. |
1495 * |
1495 * |