summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-10-01 16:42:28 +0000
committersmatz <smatz@openttd.org>2010-10-01 16:42:28 +0000
commit77fe95f55270cf856cbd088182fd2ea617d48bf0 (patch)
tree815b5cf915f4510e7ba8e19dbcd9bc956e7cfe75 /src/roadveh_cmd.cpp
parent7f5f4950d7c1ffd09b1425263b202372c73c752e (diff)
downloadopenttd-77fe95f55270cf856cbd088182fd2ea617d48bf0.tar.xz
(svn r20860) -Cleanup: remove some unused functions and variables
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 1391d8cb7..2689af8a5 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1251,8 +1251,7 @@ again:
Trackdir dir;
uint turn_around_start_frame = RVC_TURN_AROUND_START_FRAME;
- RoadBits tram;
- if (v->roadtype == ROADTYPE_TRAM && !IsRoadDepotTile(v->tile) && HasExactlyOneBit(tram = GetAnyRoadBits(v->tile, ROADTYPE_TRAM, true))) {
+ if (v->roadtype == ROADTYPE_TRAM && !IsRoadDepotTile(v->tile) && HasExactlyOneBit(GetAnyRoadBits(v->tile, ROADTYPE_TRAM, true))) {
/*
* The tram is turning around with one tram 'roadbit'. This means that
* it is using the 'big' corner 'drive data'. However, to support the