push the check-synchash-doesn't-change pattern into a utility fn. furthur reduce the number of uses on Game.world
This commit is contained in:
@@ -120,7 +120,9 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
}
|
||||
|
||||
public override void DrawInner(World world)
|
||||
{
|
||||
{
|
||||
if( world.LocalPlayer == null ) return;
|
||||
|
||||
radarCollection = "radar-" + world.LocalPlayer.Country.Race;
|
||||
|
||||
Game.Renderer.RgbaSpriteRenderer.DrawSprite(ChromeProvider.GetImage(radarCollection, "left"), radarOrigin);
|
||||
|
||||
Reference in New Issue
Block a user