Fix units visually moving to a bogus subcell via MoveIntoWorld
This commit is contained in:
@@ -756,7 +756,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
var pos = self.CenterPosition;
|
var pos = self.CenterPosition;
|
||||||
|
|
||||||
if (subCell == SubCell.Any)
|
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
|
// TODO: solve/reduce cell is full problem
|
||||||
if (subCell == SubCell.Invalid)
|
if (subCell == SubCell.Invalid)
|
||||||
|
|||||||
Reference in New Issue
Block a user