Fix IPositionableInfo not inheriting IOccupySpaceInfo

This commit is contained in:
abcdefg30
2017-02-09 13:11:01 +01:00
parent e53724b1de
commit ce97b3a3a2
5 changed files with 6 additions and 7 deletions

View File

@@ -96,8 +96,7 @@ namespace OpenRA.Mods.Common.Traits
}
var cell = validCells.Random(w.SharedRandom);
var ios = actorRules.TraitInfo<IOccupySpaceInfo>();
var subCell = ios.SharesCell ? w.ActorMap.FreeSubCell(cell) : 0;
var subCell = ip.SharesCell ? w.ActorMap.FreeSubCell(cell) : 0;
w.CreateActor(s.ToLowerInvariant(), new TypeDictionary
{