(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
1 changed files with 1 additions and 3 deletions

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