(svn r20053) -Fix [FS#3919] (r20034): crashing road vehicles crashed OpenTTD with slower/longer trains
This commit is contained in:
@@ -1569,10 +1569,8 @@ static bool RoadVehController(RoadVehicle *v)
|
|||||||
v->current_order_time++;
|
v->current_order_time++;
|
||||||
if (v->reverse_ctr != 0) v->reverse_ctr--;
|
if (v->reverse_ctr != 0) v->reverse_ctr--;
|
||||||
|
|
||||||
RoadVehCheckTrainCrash(v);
|
|
||||||
|
|
||||||
/* handle crashed */
|
/* handle crashed */
|
||||||
if (v->vehstatus & VS_CRASHED) {
|
if (v->vehstatus & VS_CRASHED || RoadVehCheckTrainCrash(v)) {
|
||||||
return RoadVehIsCrashed(v);
|
return RoadVehIsCrashed(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user