|
|
|
@ -1204,7 +1204,7 @@ void Vehicle::PreDestructor()
|
|
|
|
|
|
|
|
|
|
if (this->type == VEH_ROAD && this->IsPrimaryVehicle()) {
|
|
|
|
|
RoadVehicle *v = RoadVehicle::From(this);
|
|
|
|
|
if (IsInsideMM(v->state, RVSB_IN_DT_ROAD_STOP, RVSB_IN_DT_ROAD_STOP_END) || IsInsideMM(v->state, RVSB_IN_ROAD_STOP, RVSB_IN_ROAD_STOP_END)) {
|
|
|
|
|
if ((!(v->vehstatus & VS_CRASHED) && IsInsideMM(v->state, RVSB_IN_DT_ROAD_STOP, RVSB_IN_DT_ROAD_STOP_END)) || IsInsideMM(v->state, RVSB_IN_ROAD_STOP, RVSB_IN_ROAD_STOP_END)) {
|
|
|
|
|
/* Leave the roadstop (bay or drive-through), when you have not already left it. */
|
|
|
|
|
RoadStop::GetByTile(v->tile, GetRoadStopType(v->tile))->Leave(v);
|
|
|
|
|
}
|
|
|
|
|