From 9edc77a4eae09f8fe3c412c3d81213d907a0d5c0 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 15 Dec 2009 17:46:04 +1300 Subject: [PATCH] don't give advice to the wrong player. --- OpenRa.Game/Player.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRa.Game/Player.cs b/OpenRa.Game/Player.cs index ff981178a4..66abfb021b 100644 --- a/OpenRa.Game/Player.cs +++ b/OpenRa.Game/Player.cs @@ -85,6 +85,7 @@ namespace OpenRa.Game void GiveAdvice(string advice) { + if (this != Game.LocalPlayer) return; // todo: store the condition or something. // repeat after Rules.General.SpeakDelay, as long as the condition holds. Sound.Play(advice);