Fix ProcessOrders not always being called after leaving a waiting order

Fixes conditional order loop on leaving a depot
This commit is contained in:
Jonathan G Rennison
2021-08-30 15:26:49 +01:00
parent 58a290d8e9
commit f8e30e807d
6 changed files with 9 additions and 9 deletions

View File

@@ -352,7 +352,7 @@ static bool CheckShipLeaveDepot(Ship *v)
if (!v->IsChainInDepot()) return false;
if (v->current_order.IsWaitTimetabled()) {
v->HandleWaiting(false);
v->HandleWaiting(false, true);
}
if (v->current_order.IsType(OT_WAITING)) {
return true;