fixed flames; fixed ftur 'rotation'; fixed repair cursor hotspot

This commit is contained in:
Chris Forbes
2010-01-22 23:27:51 +13:00
parent cef25cf192
commit a67fc5ba76
9 changed files with 38 additions and 14 deletions

View File

@@ -7,11 +7,12 @@ namespace OpenRa.Effects
class Smoke : IEffect
{
readonly int2 pos;
readonly Animation anim = new Animation("smokey");
readonly Animation anim;
public Smoke(World world, int2 pos)
public Smoke(World world, int2 pos, string trail)
{
this.pos = pos;
anim = new Animation(trail);
anim.PlayThen("idle",
() => world.AddFrameEndTask(w => w.Remove(this)));
}