Convert Smoke to world coordinates.

This commit is contained in:
Paul Chote
2013-05-16 01:03:54 +12:00
parent c6e6977bf6
commit 3e1c1096c2
6 changed files with 13 additions and 14 deletions

View File

@@ -45,7 +45,7 @@ namespace OpenRA.Mods.RA
!self.World.FogObscures(new CPos(position)))
{
var offset = info.Offset.Rotate(coords.QuantizeOrientation(self, self.Orientation));
var pos = PPos.FromWPosHackZ(position + coords.LocalToWorld(offset));
var pos = position + coords.LocalToWorld(offset);
self.World.AddFrameEndTask(w => w.Add(new Smoke(w, pos, info.Sprite)));
}