forked from Mirrors/openclonk
cable car: not ready for a new delivery if currently doing one
parent
b1d1079d88
commit
d7e3a4acd6
|
@ -183,6 +183,9 @@ public func IsAvailable(proplist requested, int amount)
|
||||||
// Called when a station has asked to make a delivery
|
// Called when a station has asked to make a delivery
|
||||||
public func IsReadyForDelivery(proplist requested, int amount, proplist requesting_station)
|
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
|
// Only if a lorry is connected
|
||||||
if (pickup && pickup->~IsLorry())
|
if (pickup && pickup->~IsLorry())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue