summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-11 13:42:01 +0000
committerrubidium <rubidium@openttd.org>2010-12-11 13:42:01 +0000
commitfc7082590551a36ca7606f61f0ffced27b3194ac (patch)
tree026dd3277641005c8a7269d278d6b6f5b137860b /src
parent2a62be547a67a89f5de6524046873818e65e0de5 (diff)
downloadopenttd-fc7082590551a36ca7606f61f0ffced27b3194ac.tar.xz
(svn r21465) -Cleanup [FS#4295]: remove some dead code (fonsinchen)
Diffstat (limited to 'src')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 364cb879e..1aff26bc7 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1568,8 +1568,6 @@ static void CheckIfRoadVehNeedsService(RoadVehicle *v)
return;
}
- if (v->current_order.IsType(OT_LOADING)) v->LeaveStation();
-
v->current_order.MakeGoToDepot(depot, ODTFB_SERVICE);
v->dest_tile = rfdd.tile;
SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);