rename teamplay_default to teamplay_mode, stop using the "teamplay" cvar (more cleanu...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / View.qc
index 3f8cd6c71e76a06d81948bd18e0271009b5bec72..e640e906d9977d099fdefe7e145268cb5da35c65 100644 (file)
@@ -479,7 +479,7 @@ void CSQC_UpdateView(float w, float h)
 
        ColorTranslateMode = cvar("cl_stripcolorcodes");
        activeweapon = getstati(STAT_SWITCHWEAPON);
-       f = cvar("teamplay");
+       f = (serverflags & SERVERFLAG_TEAMPLAY);
        if(f != teamplay)
        {
                teamplay = f;