From 25b7386f0d4aa1d9fb37f022bae4ad16062b32e5 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sat, 12 Oct 2019 12:21:56 +0200 Subject: [PATCH] Let Mobile's CanEnterCell consider ToSubCell --- 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 8884b47685..f3881d6201 100644 --- a/OpenRA.Mods.Common/Traits/Mobile.cs +++ b/OpenRA.Mods.Common/Traits/Mobile.cs @@ -501,7 +501,7 @@ namespace OpenRA.Mods.Common.Traits public bool CanEnterCell(CPos cell, Actor ignoreActor = null, BlockedByActor check = BlockedByActor.All) { - return Info.CanEnterCell(self.World, self, cell, SubCell.FullCell, ignoreActor, check); + return Info.CanEnterCell(self.World, self, cell, ToSubCell, ignoreActor, check); } #endregion