Prevent unnecessary blinking of the options button in non-mission type games

The options button starts blinking when a new objective is added, which happens in all game modes, even skirmish and koth.  This change prevents the button from blinking in the latter two cases.

This prevents 1) confusion on part of the players, and 2) an unnecessary announcement of the objective since in skirmish and koth it is always the same.
This commit is contained in:
Oliver Brakmann
2015-03-04 18:52:38 +01:00
parent f27d010535
commit 34f382ec57
5 changed files with 8 additions and 8 deletions

View File

@@ -55,9 +55,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
if (lp != null)
{
Action<Player> startBlinking = player =>
Action<Player, bool> startBlinking = (player, inhibitAnnouncement) =>
{
if (player == world.LocalPlayer)
if (!inhibitAnnouncement && player == world.LocalPlayer)
blinking = true;
};