From: Mario Date: Sat, 28 Apr 2018 19:10:15 +0000 (+1000) Subject: Don't show ready messages if the player is spectating X-Git-Tag: xonotic-v0.8.5~2164 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a1f4e9db341802d4a99d2797c166a11d98309b33;p=xonotic%2Fxonotic-data.pk3dir.git Don't show ready messages if the player is spectating --- diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 47e94f520..e0c72dbc2 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -248,12 +248,14 @@ void ClientCommand_ready(entity caller, float request) // todo: anti-spam for t if (caller.ready) // toggle { caller.ready = false; - bprint(playername(caller, false), "^2 is ^1NOT^2 ready\n"); + if(IS_PLAYER(caller) || caller.caplayer == 1) + bprint(playername(caller, false), "^2 is ^1NOT^2 ready\n"); } else { caller.ready = true; - bprint(playername(caller, false), "^2 is ready\n"); + if(IS_PLAYER(caller) || caller.caplayer == 1) + bprint(playername(caller, false), "^2 is ready\n"); } // cannot reset the game while a timeout is active!