Add WPos.ToCPos().

This commit is contained in:
Paul Chote
2013-07-06 18:53:35 +12:00
parent 561cb6cfe0
commit f9ec5fd9b7
4 changed files with 10 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ namespace OpenRA.Mods.RA
{
var position = self.CenterPosition;
if (position.Z > 0 && self.GetDamageState() >= info.MinDamage &&
!self.World.FogObscures(new CPos(position)))
!self.World.FogObscures(position.ToCPos()))
{
var offset = info.Offset.Rotate(body.QuantizeOrientation(self, self.Orientation));
var pos = position + body.LocalToWorld(offset);