Mercurial > hg > openttd
changeset 11035:1cbb47ebf5b2 draft
(svn r15375) -Fix [FS#2605]: a tram circling around in a depot did never actually 'enter' the depot.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 06 Feb 2009 15:52:22 +0000 |
parents | 6a4aaefa7209 |
children | a7a7e54d52a6 |
files | src/roadveh_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1553,7 +1553,7 @@ 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, true)) == 1) { + if (v->u.road.roadtype == ROADTYPE_TRAM && !IsRoadDepotTile(v->tile) && 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