From 58f55b808a1f6a50dc7274f553fe4248cd5c5681 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sat, 24 Jul 2021 15:52:11 +0200 Subject: [PATCH] Add comment in Mobile This isn't obvious to people not entirely familiar with the code. --- OpenRA.Mods.Common/Traits/Mobile.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Mods.Common/Traits/Mobile.cs b/OpenRA.Mods.Common/Traits/Mobile.cs index 756b4178f1..88342de839 100644 --- a/OpenRA.Mods.Common/Traits/Mobile.cs +++ b/OpenRA.Mods.Common/Traits/Mobile.cs @@ -804,6 +804,7 @@ namespace OpenRA.Mods.Common.Traits CPos? ClosestGroundCell() { + // Creating a new CPos serves to reset a potential custom layer var above = new CPos(TopLeft.X, TopLeft.Y); if (CanEnterCell(above)) return above;