Remove some bogus duplication in Sell (caused the double-sell bug).

This commit is contained in:
Paul Chote
2011-04-16 11:26:51 +12:00
parent 7b0a9136ab
commit 8b00e1cfa5
3 changed files with 9 additions and 17 deletions

View File

@@ -87,10 +87,11 @@ namespace OpenRA.Mods.RA.Render
roof.PlayThen(NormalizeSequence(self, "build-top"), () => { isOpen = true; openExit = exit; });
}
public override void Selling( Actor self )
public void Selling(Actor self)
{
self.Trait<RenderSimple>().anims.Remove( "roof" );
base.Selling(self);
self.Trait<RenderSimple>().anims.Remove("roof");
}
public void Sold(Actor self) { }
}
}