diff options
author | rubidium <rubidium@openttd.org> | 2008-03-22 10:56:08 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-03-22 10:56:08 +0000 |
commit | f0538b4b622a80a93d27e7dc9f1cb05620eebb90 (patch) | |
tree | c70cc515d076c09e820b06aa4af1dbdb1fe37307 /src/roadveh_cmd.cpp | |
parent | 5d747802f28d6fd6ad2527aa04f418ce09c00f6c (diff) | |
download | openttd-f0538b4b622a80a93d27e7dc9f1cb05620eebb90.tar.xz |
(svn r12390) -Fix [FS#1851]: trams failing to turn on bridge heads/tunnel entrances.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r-- | src/roadveh_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 0a9733209..d4cb02163 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1461,7 +1461,7 @@ static Trackdir FollowPreviousRoadVehicle(const Vehicle *v, const Vehicle *prev, }; RoadBits required = required_roadbits[dir & 0x07]; - if ((required & GetAnyRoadBits(tile, v->u.road.roadtype)) == ROAD_NONE) { + if ((required & GetAnyRoadBits(tile, v->u.road.roadtype, true)) == ROAD_NONE) { dir = INVALID_TRACKDIR; } @@ -1698,7 +1698,7 @@ again: uint turn_around_start_frame = RVC_TURN_AROUND_START_FRAME; RoadBits tram; - if (v->u.road.roadtype == ROADTYPE_TRAM && CountBits(tram = GetAnyRoadBits(v->tile, ROADTYPE_TRAM)) == 1) { + if (v->u.road.roadtype == ROADTYPE_TRAM && CountBits(tram = GetAnyRoadBits(v->tile, ROADTYPE_TRAM, true)) == 1) { /* * The tram is turning around with one tram 'roadbit'. This means that * it is using the 'big' corner 'drive data'. However, to support the |