From cb3be2cd0dcee3d94cf52717b8cc86c0d932e93e Mon Sep 17 00:00:00 2001 From: teees Date: Wed, 27 Jan 2016 12:01:37 +0100 Subject: [PATCH] Fix units visually moving to a bogus subcell via MoveIntoWorld --- 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 9497668b1d..db005ee978 100644 --- a/OpenRA.Mods.Common/Traits/Mobile.cs +++ b/OpenRA.Mods.Common/Traits/Mobile.cs @@ -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)