summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-06 15:52:22 +0000
committerrubidium <rubidium@openttd.org>2009-02-06 15:52:22 +0000
commit9bc7e4bdb2fdc33e709ec25fdd0745921097915b (patch)
treeca9a2cefdb257f1015b4cb2c11af29209e2c5b4c /src
parent0cfc4028234f3fcc1363033b11d5983bc2d01c34 (diff)
downloadopenttd-9bc7e4bdb2fdc33e709ec25fdd0745921097915b.tar.xz
(svn r15375) -Fix [FS#2605]: a tram circling around in a depot did never actually 'enter' the depot.
Diffstat (limited to 'src')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index acd5c18f3..6cdc23dc5 100644
--- 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