remove a silly lookup in RenderSimpleInfo
This commit is contained in:
@@ -27,8 +27,7 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
var anim = new Animation(RenderSimple.GetImage(building, Tileset), () => 0);
|
var anim = new Animation(RenderSimple.GetImage(building, Tileset), () => 0);
|
||||||
anim.PlayRepeating("idle");
|
anim.PlayRepeating("idle");
|
||||||
var rb = building.Traits.Get<RenderSimpleInfo>();
|
yield return new Renderable(anim.Image, 0.5f * anim.Image.size * (1 - Scale), Palette, 0, Scale);
|
||||||
yield return new Renderable(anim.Image, 0.5f * anim.Image.size * (1 - Scale), rb.Palette, 0, Scale);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user