src/roadveh_cmd.cpp
changeset 7968 45a32751abe5
parent 7967 a230c063a672
child 8005 2318a0547719
equal deleted inserted replaced
7967:a230c063a672 7968:45a32751abe5
  1687 		const RoadDriveEntry *rdp;
  1687 		const RoadDriveEntry *rdp;
  1688 
  1688 
  1689 		uint turn_around_start_frame = RVC_TURN_AROUND_START_FRAME;
  1689 		uint turn_around_start_frame = RVC_TURN_AROUND_START_FRAME;
  1690 
  1690 
  1691 		RoadBits tram;
  1691 		RoadBits tram;
  1692 		if (v->u.road.roadtype == ROADTYPE_TRAM && CountBits(tram = GetRoadBits(v->tile, ROADTYPE_TRAM)) == 1) {
  1692 		if (v->u.road.roadtype == ROADTYPE_TRAM && CountBits(tram = GetAnyRoadBits(v->tile, ROADTYPE_TRAM)) == 1) {
  1693 			/*
  1693 			/*
  1694 			 * The tram is turning around with one tram 'roadbit'. This means that
  1694 			 * The tram is turning around with one tram 'roadbit'. This means that
  1695 			 * it is using the 'big' corner 'drive data'. However, to support the
  1695 			 * it is using the 'big' corner 'drive data'. However, to support the
  1696 			 * trams to take a small corner, there is a 'turned' marker in the middle
  1696 			 * trams to take a small corner, there is a 'turned' marker in the middle
  1697 			 * of the turning 'drive data'. When the tram took the long corner, we
  1697 			 * of the turning 'drive data'. When the tram took the long corner, we