pass world into CheckSync. don't pass world into Widget.DrawInner
This commit is contained in:
@@ -47,11 +47,11 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
public readonly string BuildPaletteClose = "bleep13.aud";
|
||||
public readonly string TabClick = "ramenu1.aud";
|
||||
|
||||
readonly World world;
|
||||
[ObjectCreator.UseCtor]
|
||||
public BuildPaletteWidget( [ObjectCreator.Param] World world )
|
||||
readonly World world;
|
||||
[ObjectCreator.UseCtor]
|
||||
public BuildPaletteWidget( [ObjectCreator.Param] World world )
|
||||
{
|
||||
this.world = world;
|
||||
this.world = world;
|
||||
}
|
||||
|
||||
public override void Initialize()
|
||||
@@ -176,7 +176,7 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
|
||||
int paletteHeight = 0;
|
||||
int numActualRows = 0;
|
||||
public override void DrawInner(World world)
|
||||
public override void DrawInner()
|
||||
{
|
||||
if (!IsVisible()) return;
|
||||
// todo: fix
|
||||
|
||||
Reference in New Issue
Block a user