Fix A* debug overlay in D2K.

This commit is contained in:
Paul Chote
2013-10-14 21:14:21 +13:00
parent f3c7c0e957
commit 97a42e7d43
2 changed files with 4 additions and 2 deletions

View File

@@ -72,8 +72,9 @@ namespace OpenRA.Mods.RA
layer [i, j] = layer [i, j] * 5 / 6;
// TODO: This doesn't make sense for isometric terrain
var tl = wr.ScreenPxPosition(new CPos(i, j).CenterPosition) - new int2(Game.CellSize, Game.CellSize);
qr.FillRect(new RectangleF(tl.X, tl.Y, Game.CellSize, Game.CellSize), Color.FromArgb(w, c));
var tl = wr.ScreenPxPosition(new CPos(i, j).TopLeft);
var br = wr.ScreenPxPosition(new CPos(i, j).BottomRight);
qr.FillRect(RectangleF.FromLTRB(tl.X, tl.Y, br.X, br.Y), Color.FromArgb(w, c));
}
}
}

View File

@@ -441,6 +441,7 @@ World:
Name: Ordos
Race: ordos
DomainIndex:
DebugOverlay:
ResourceLayer:
ResourceClaimLayer:
ResourceType@Spice: