Change impassable terrain to short.max

This commit is contained in:
Tomase
2019-07-27 17:31:20 +02:00
committed by reaperrr
parent 702f4d1937
commit 98602cb1cb
4 changed files with 11 additions and 11 deletions

View File

@@ -195,7 +195,7 @@ namespace OpenRA.Mods.Common.Traits
bool CanEnterCell(Actor self, CPos cell)
{
if (mobile.locomotor.MovementCostForCell(cell) == int.MaxValue)
if (mobile.locomotor.MovementCostForCell(cell) == short.MaxValue)
return false;
return mobile.locomotor.CanMoveFreelyInto(self, cell, null, CellConditions.BlockedByMovers);