cable car: not ready for a new delivery if currently doing one

master
Maikel de Vries 2018-01-25 19:12:35 +01:00
parent b1d1079d88
commit d7e3a4acd6
1 changed files with 3 additions and 0 deletions

View File

@ -183,6 +183,9 @@ public func IsAvailable(proplist requested, int amount)
// Called when a station has asked to make a delivery
public func IsReadyForDelivery(proplist requested, int amount, proplist requesting_station)
{
// Is already on a delivery.
if (lib_ccar_delivery)
return false;
// Only if a lorry is connected
if (pickup && pickup->~IsLorry())
{