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

@@ -123,7 +123,7 @@ namespace OpenRA.Mods.RA.Effects
if (Info.Trail != null && --ticksToNextSmoke < 0)
{
world.AddFrameEndTask(w => w.Add(
new Smoke(w, (PPos) highPos.ToInt2(), Info.Trail)));
new Smoke(w, ((PPos)highPos.ToInt2()).ToWPos(0), Info.Trail)));
ticksToNextSmoke = Info.TrailInterval;
}