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).
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user