src/roadveh_cmd.cpp
changeset 10230 74440463e61e
parent 10208 72c00af5c95d
child 10302 8d4bdf14adb4
equal deleted inserted replaced
10229:798fb176712c 10230:74440463e61e
  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 					 *