comparison src/roadveh_cmd.cpp @ 7968:06293aabe6ea draft

(svn r11524) -Fix [FS#1485]: assertion when tram reversed at a station.
author rubidium <rubidium@openttd.org>
date Sun, 25 Nov 2007 19:45:09 +0000
parents e30c5ec2d272
children ee6d40f79c32
comparison
equal deleted inserted replaced
7967:e30c5ec2d272 7968:06293aabe6ea
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