From ec527c0227cf282e5c72dca4f0f732523be58539 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 28 May 2023 23:47:46 +0200 Subject: [PATCH] movetospec command: make it work even if the player is already spectating/observing but still in game (CA, Survival, LMS) --- qcsrc/server/command/sv_cmd.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc index 7627e177b..61861acbb 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -1069,7 +1069,7 @@ void GameCommand_moveplayer(int request, int argc) else if (destination == "spectator") { string pl_name = playername(client.netname, client.team, false); - if (!IS_SPEC(client) && !IS_OBSERVER(client)) + if (!(IS_SPEC(client) || IS_OBSERVER(client)) || INGAME(client)) { PutObserverInServer(client, true, true); -- 2.39.2