]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 911012a8566856b02c10fb4769a721be3876b129..83c4768332184c2ff6cb30e43e8799c6f929f4cf 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: