# HG changeset patch # User rubidium # Date 2009-02-06 15:52:22 # Node ID 8a2d5962fbd922cd6d63bf6c9e24fe24ad1cb0d9 # Parent b133414fb70fd34393938a5cdb124295b7f5874b (svn r15375) -Fix [FS#2605]: a tram circling around in a depot did never actually 'enter' the depot. diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1553,7 +1553,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, 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