rename TargetableSquares -> TargetableCells

This commit is contained in:
Bob
2010-11-03 22:30:17 +13:00
committed by Chris Forbes
parent 39b09780f6
commit ecf41722c3
4 changed files with 4 additions and 4 deletions

View File

@@ -223,7 +223,7 @@ namespace OpenRA.Mods.RA
public static bool IsInRange( float2 attackOrigin, float range, Actor target )
{
var rsq = range * range * Game.CellSize * Game.CellSize;
foreach( var cell in target.Trait<ITargetable>().TargetableSquares( target ) )
foreach( var cell in target.Trait<ITargetable>().TargetableCells( target ) )
if( ( attackOrigin - cell * Game.CellSize ).LengthSquared < rsq )
return true;
return false;