From ed8f6d96918c5689a31c79db04b05fa0cb698121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 20 Jun 2013 20:37:04 +0200 Subject: [PATCH] Attack the center of the cell instead of the top left corner to not discriminate bottom right directions. Fixes #2205 --- OpenRA.Mods.RA/Combat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Combat.cs b/OpenRA.Mods.RA/Combat.cs index e10b0ffe82..3a3c821639 100755 --- a/OpenRA.Mods.RA/Combat.cs +++ b/OpenRA.Mods.RA/Combat.cs @@ -212,7 +212,7 @@ namespace OpenRA.Mods.RA { var rsq = range * range * Game.CellSize * Game.CellSize; foreach (var cell in target.Trait().TargetableCells(target)) - if ((attackOrigin - cell.ToPPos()).LengthSquared <= rsq) + if ((attackOrigin - Util.CenterOfCell(cell)).LengthSquared <= rsq) return true; return false; }