Fix multiple notifications in multiplayer bug

This commit is contained in:
penev92
2015-02-22 22:24:00 +02:00
parent 1261fd1b07
commit 58ab28206f
2 changed files with 7 additions and 5 deletions

View File

@@ -93,7 +93,9 @@ namespace OpenRA.Mods.D2k.Activities
void NotifyPlayer(Player player, WPos location)
{
Sound.PlayNotification(player.World.Map.Rules, player, "Speech", swallow.Info.WormAttackNotification, player.Country.Race);
radarPings.Add(() => true, location, Color.Red, 50);
if (player == player.World.RenderPlayer)
radarPings.Add(() => true, location, Color.Red, 50);
}
public override Activity Tick(Actor self)