Don't respond to color/topcolor/bottomcolor commands in teamplay modes
authorMario <mario@smbclan.net>
Sun, 25 Aug 2019 17:50:33 +0000 (03:50 +1000)
committerMario <mario@smbclan.net>
Sun, 25 Aug 2019 17:50:33 +0000 (03:50 +1000)
qcsrc/server/command/cmd.qc

index 911012a..83c4768 100644 (file)
@@ -883,6 +883,7 @@ void SV_ParseClientCommand(entity this, string command)
                case "prespawn": break;                            // handled by engine in host_cmd.c
                case "sentcvar": break;                            // handled by server in this file
                case "spawn": break;                               // handled by engine in host_cmd.c
+               case "color": case "topcolor": case "bottomcolor": if(teamplay) return; else break; // handled by engine in host_cmd.c
                case "c2s": Net_ClientCommand(this, command); return; // handled by net.qh
 
                default: