1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 11:29:10 +00:00

(svn r20053) -Fix [FS#3919] (r20034): crashing road vehicles crashed OpenTTD with slower/longer trains

This commit is contained in:
rubidium
2010-07-02 19:54:29 +00:00
parent 6709714f97
commit eb19d4b440

View File

@@ -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);
}