Import timetabling wait time in depots patch
http://www.tt-forums.net/viewtopic.php?f=33&t=70969
This commit is contained in:

committed by
Jonathan G Rennison

parent
498556d6ce
commit
d8c5de188f
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user