From: terencehill Date: Sat, 7 Jan 2017 18:47:55 +0000 (+0100) Subject: Don't allow players to become spectators after the game has ended X-Git-Tag: xonotic-v0.8.2~312 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b1caf9a0881873376df065cdf6ec989f573bd44d;p=xonotic%2Fxonotic-data.pk3dir.git Don't allow players to become spectators after the game has ended --- diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 4f0e54d69..1fa600e65 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -471,7 +471,7 @@ void ClientCommand_spectate(entity caller, float request) { case CMD_REQUEST_COMMAND: { - if (IS_CLIENT(caller)) + if (!intermission_running && IS_CLIENT(caller)) { int mutator_returnvalue = MUTATOR_CALLHOOK(ClientCommand_Spectate, caller);