moved minimap update into RadarBinWidget.Tick
This commit is contained in:
@@ -67,6 +67,9 @@ namespace OpenRA.Widgets
|
||||
|
||||
public override void Tick(World world)
|
||||
{
|
||||
if (world.LocalPlayer != null)
|
||||
world.Minimap.Update();
|
||||
|
||||
if (!radarAnimating)
|
||||
return;
|
||||
|
||||
|
||||
@@ -159,10 +159,6 @@ namespace OpenRA
|
||||
var acts = frameEndActions;
|
||||
frameEndActions = new List<Action<World>>();
|
||||
foreach (var a in acts) a(this);
|
||||
|
||||
// TODO: This doesn't even belong here -> move into a widget
|
||||
if (LocalPlayer != null)
|
||||
Minimap.Update();
|
||||
|
||||
foreach (var player in players.Values)
|
||||
player.Tick();
|
||||
|
||||
Reference in New Issue
Block a user