Fix carryalls telling carryables to unreserve when they are reserved for a different carryall;

Reserve carryable in FreeActorWithDelivery
This commit is contained in:
penev92
2015-04-14 01:53:11 +03:00
parent 70c9bca847
commit 665c82305e
4 changed files with 17 additions and 8 deletions

View File

@@ -116,6 +116,9 @@ namespace OpenRA.Mods.D2k.Traits
public bool Reserve(Actor carrier)
{
if (Reserved)
return false;
if ((self.Location - Destination).Length < info.MinDistance)
{
MovementCancelled(self);