Fix Carryalls waiting for actors on transit-only tiles
This commit is contained in:
committed by
abcdefg30
parent
477db9cd4a
commit
595809f090
@@ -129,6 +129,9 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (delayPickups.Any(d => d.IsTraitEnabled() && !d.TryLockForPickup(self, carrier)))
|
||||
return LockResponse.Pending;
|
||||
|
||||
if (mobile != null && !mobile.CanStayInCell(self.Location))
|
||||
return LockResponse.Pending;
|
||||
|
||||
if (state != State.Locked)
|
||||
{
|
||||
state = State.Locked;
|
||||
|
||||
Reference in New Issue
Block a user