Don't allow players to become spectators after the game has ended
authorterencehill <piuntn@gmail.com>
Sat, 7 Jan 2017 18:47:55 +0000 (19:47 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 7 Jan 2017 18:47:55 +0000 (19:47 +0100)
qcsrc/server/command/cmd.qc

index 4f0e54d..1fa600e 100644 (file)
@@ -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);