From 942f1e2d9ef1ede0a4c7c494e76746abc7d229b0 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 1 Dec 2020 17:28:38 +0000 Subject: [PATCH] Fix infantry ignoring the default subcell when produced. They were being created with the correct subcell, but was rejecting it as invalid because it was already occupied (by the unit itself). --- OpenRA.Mods.Common/Traits/Mobile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Mobile.cs b/OpenRA.Mods.Common/Traits/Mobile.cs index 1f7be6145e..bc5e500c6f 100644 --- a/OpenRA.Mods.Common/Traits/Mobile.cs +++ b/OpenRA.Mods.Common/Traits/Mobile.cs @@ -662,7 +662,7 @@ namespace OpenRA.Mods.Common.Traits subCell = mobile.ToSubCell; if (recalculateSubCell) - subCell = mobile.Info.LocomotorInfo.SharesCell ? self.World.ActorMap.FreeSubCell(cell, subCell) : SubCell.FullCell; + subCell = mobile.Info.LocomotorInfo.SharesCell ? self.World.ActorMap.FreeSubCell(cell, subCell, a => a != self) : SubCell.FullCell; // TODO: solve/reduce cell is full problem if (subCell == SubCell.Invalid)