Fix tram reversing on custom bridge head tiles.

This commit is contained in:
Jonathan G Rennison
2017-06-21 23:40:19 +01:00
parent 27ac2f5894
commit 0a345efc27
2 changed files with 8 additions and 2 deletions

View File

@@ -1113,7 +1113,7 @@ static Trackdir FollowPreviousRoadVehicle(const RoadVehicle *v, const RoadVehicl
};
RoadBits required = required_roadbits[dir & 0x07];
if ((required & GetAnyRoadBits(tile, v->roadtype, true)) == ROAD_NONE) {
if ((required & GetAnyRoadBits(tile, v->roadtype, false)) == ROAD_NONE) {
dir = INVALID_TRACKDIR;
}
@@ -1367,7 +1367,7 @@ again:
Trackdir dir;
uint turn_around_start_frame = RVC_TURN_AROUND_START_FRAME;
if (v->roadtype == ROADTYPE_TRAM && !IsRoadDepotTile(v->tile) && HasExactlyOneBit(GetAnyRoadBits(v->tile, ROADTYPE_TRAM, true))) {
if (v->roadtype == ROADTYPE_TRAM && !IsRoadDepotTile(v->tile) && HasExactlyOneBit(GetAnyRoadBits(v->tile, ROADTYPE_TRAM, false))) {
/*
* The tram is turning around with one tram 'roadbit'. This means that
* it is using the 'big' corner 'drive data'. However, to support the