diff options
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r-- | src/roadveh_cmd.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 2e9626ae8..d2529185f 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1485,14 +1485,7 @@ static bool RoadVehController(RoadVehicle *v) } /* road vehicle has broken down? */ - if (v->breakdown_ctr != 0) { - if (v->breakdown_ctr <= 2) { - v->HandleBreakdown(); - return true; - } - if (!v->current_order.IsType(OT_LOADING)) v->breakdown_ctr--; - } - + if (v->HandleBreakdown()) return true; if (v->vehstatus & VS_STOPPED) return true; ProcessOrders(v); |