don't give advice to the wrong player.

This commit is contained in:
Chris Forbes
2009-12-15 17:46:04 +13:00
parent e4c9073884
commit 9edc77a4ea

View File

@@ -85,6 +85,7 @@ namespace OpenRa.Game
void GiveAdvice(string advice) void GiveAdvice(string advice)
{ {
if (this != Game.LocalPlayer) return;
// todo: store the condition or something. // todo: store the condition or something.
// repeat after Rules.General.SpeakDelay, as long as the condition holds. // repeat after Rules.General.SpeakDelay, as long as the condition holds.
Sound.Play(advice); Sound.Play(advice);