Import timetabling wait time in depots patch

http://www.tt-forums.net/viewtopic.php?f=33&t=70969
This commit is contained in:
patch-import
2015-08-03 01:06:05 +01:00
committed by Jonathan G Rennison
parent 498556d6ce
commit d8c5de188f
12 changed files with 81 additions and 4 deletions

View File

@@ -316,6 +316,11 @@ static bool CheckShipLeaveDepot(Ship *v)
{
if (!v->IsChainInDepot()) return false;
if (v->current_order.IsWaitTimetabled())
v->HandleWaiting(false);
if (v->current_order.IsType(OT_WAITING))
return true;
/* We are leaving a depot, but have to go to the exact same one; re-enter */
if (v->current_order.IsType(OT_GOTO_DEPOT) &&
IsShipDepotTile(v->tile) && GetDepotIndex(v->tile) == v->current_order.GetDestination()) {