don't give advice to the wrong player.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user