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:
@@ -35,6 +35,8 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
|
||||
public override void DrawInner(World world)
|
||||
{
|
||||
if( world.LocalPlayer == null ) return;
|
||||
|
||||
var playerResources = world.LocalPlayer.PlayerActor.Trait<PlayerResources>();
|
||||
|
||||
var digitCollection = "digits-" + world.LocalPlayer.Country.Race;
|
||||
|
||||
Reference in New Issue
Block a user