Merge pull request #10620 from teees/production-exit-fix

Fix units warping from an exit subcell to cellcenter when produced
This commit is contained in:
abcdefg30
2016-01-28 14:55:45 +01:00

View File

@@ -756,7 +756,7 @@ namespace OpenRA.Mods.Common.Traits
var pos = self.CenterPosition;
if (subCell == SubCell.Any)
subCell = self.World.ActorMap.FreeSubCell(cell, subCell);
subCell = Info.SharesCell ? self.World.ActorMap.FreeSubCell(cell, subCell) : SubCell.FullCell;
// TODO: solve/reduce cell is full problem
if (subCell == SubCell.Invalid)