Add comment in Mobile
This isn't obvious to people not entirely familiar with the code.
This commit is contained in:
@@ -804,6 +804,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
CPos? ClosestGroundCell()
|
CPos? ClosestGroundCell()
|
||||||
{
|
{
|
||||||
|
// Creating a new CPos serves to reset a potential custom layer
|
||||||
var above = new CPos(TopLeft.X, TopLeft.Y);
|
var above = new CPos(TopLeft.X, TopLeft.Y);
|
||||||
if (CanEnterCell(above))
|
if (CanEnterCell(above))
|
||||||
return above;
|
return above;
|
||||||
|
|||||||
Reference in New Issue
Block a user