From edddcd930400f4529367cc397d63eac542f42350 Mon Sep 17 00:00:00 2001 From: drian Date: Thu, 6 May 2021 13:12:35 +0200 Subject: [PATCH] #259 spectatemode 5 be disabled for active players (metagame) --- source/src/clientgame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index a8924844..ee141480 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -1739,7 +1739,7 @@ void spectatemode(int mode) { if((player1->state != CS_DEAD && player1->state != CS_SPECTATE && !team_isspect(player1->team)) || (!m_teammode && !team_isspect(player1->team) && servstate.mastermode == MM_MATCH)) return; // during ffa matches only SPECTATORS can spectate if(mode == player1->spectatemode || (m_botmode && mode != SM_FLY)) return; - if(mode == SM_OVERVIEW) + if(mode == SM_OVERVIEW || mode == SM_FLY) { // the spectate mode SM_OVERVIEW is like a radar hack and therefore is only allowed under certain conditions bool notmatchnotprivate = (servstate.mastermode != MM_MATCH && servstate.mastermode != MM_PRIVATE);