Correct terminology and add readonly modifiers in SpriteEffect.

This commit is contained in:
Taryn Hill
2015-04-30 17:19:13 -05:00
parent 583b89eb17
commit d279e1dcee

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)));
}