mirror of https://github.com/OpenTTD/OpenTTD
(svn r12891) [0.6] -Fix (r12868): breakdowns were broken and would cause vehicles to go slower than they should have been moving.
parent
9241c4649d
commit
e114133d18
|
@ -2150,7 +2150,7 @@ static void AircraftEventHandler(Vehicle *v, int loop)
|
||||||
if (v->breakdown_ctr <= 2) {
|
if (v->breakdown_ctr <= 2) {
|
||||||
HandleBrokenAircraft(v);
|
HandleBrokenAircraft(v);
|
||||||
} else {
|
} else {
|
||||||
if (!v->current_order.type == OT_LOADING) v->breakdown_ctr--;
|
if (v->current_order.type != OT_LOADING) v->breakdown_ctr--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1938,7 +1938,7 @@ static void RoadVehController(Vehicle *v)
|
||||||
HandleBrokenRoadVeh(v);
|
HandleBrokenRoadVeh(v);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!v->current_order.type == OT_LOADING) v->breakdown_ctr--;
|
if (v->current_order.type != OT_LOADING) v->breakdown_ctr--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (v->vehstatus & VS_STOPPED) return;
|
if (v->vehstatus & VS_STOPPED) return;
|
||||||
|
|
|
@ -646,7 +646,7 @@ static void ShipController(Vehicle *v)
|
||||||
HandleBrokenShip(v);
|
HandleBrokenShip(v);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!v->current_order.type == OT_LOADING) v->breakdown_ctr--;
|
if (v->current_order.type != OT_LOADING) v->breakdown_ctr--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (v->vehstatus & VS_STOPPED) return;
|
if (v->vehstatus & VS_STOPPED) return;
|
||||||
|
|
|
@ -3570,7 +3570,7 @@ static void TrainLocoHandler(Vehicle *v, bool mode)
|
||||||
HandleBrokenTrain(v);
|
HandleBrokenTrain(v);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!v->current_order.type == OT_LOADING) v->breakdown_ctr--;
|
if (v->current_order.type != OT_LOADING) v->breakdown_ctr--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HasBit(v->u.rail.flags, VRF_REVERSING) && v->cur_speed == 0) {
|
if (HasBit(v->u.rail.flags, VRF_REVERSING) && v->cur_speed == 0) {
|
||||||
|
|
Loading…
Reference in New Issue