Merge pull request #8067 from Phrohdoh/terms-sprite-effect

Correct terminology and add readonly modifiers in SpriteEffect.
This commit is contained in:
Pavel Penev
2015-05-01 01:27:04 +03:00

View File

@@ -15,15 +15,15 @@ namespace OpenRA.Effects
{
public class SpriteEffect : IEffect
{
string palette;
Animation anim;
WPos pos;
readonly string palette;
readonly Animation anim;
readonly WPos pos;
public SpriteEffect(WPos pos, World world, string sprite, string palette)
public SpriteEffect(WPos pos, World world, string image, string palette)
{
this.pos = pos;
this.palette = palette;
anim = new Animation(world, sprite);
anim = new Animation(world, image);
anim.PlayThen("idle", () => world.AddFrameEndTask(w => w.Remove(this)));
}