summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/roadveh_cmd.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index f0ce5d808..2ff830922 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1569,10 +1569,8 @@ static bool RoadVehController(RoadVehicle *v)
v->current_order_time++;
if (v->reverse_ctr != 0) v->reverse_ctr--;
- RoadVehCheckTrainCrash(v);
-
/* handle crashed */
- if (v->vehstatus & VS_CRASHED) {
+ if (v->vehstatus & VS_CRASHED || RoadVehCheckTrainCrash(v)) {
return RoadVehIsCrashed(v);
}