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:
Bob
2010-10-02 10:20:14 +12:00
committed by Paul Chote
parent f41aa474aa
commit 26d1db778e
9 changed files with 195 additions and 182 deletions

View File

@@ -27,6 +27,8 @@ namespace OpenRA.Mods.RA.Widgets
public override void DrawInner(World world)
{
if( world.LocalPlayer == null ) return;
powerCollection = "power-" + world.LocalPlayer.Country.Race;
var power = world.LocalPlayer.PlayerActor.Trait<PowerManager>();