]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 4f0e54d69a035e4cde529e3fd5d5341388b158d7..1fa600e65f784cab827dfce8507255157fef8eb2 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);