Implemented r_ambient (mainly for sake of Nehahra's insanely dark maps).
[xonotic/darkplaces.git] / gl_rmain.c
index 79a5a9736e13ebf21f04f479037006c6ecc01848..6179c7e2fc107d56d6ea39cdba9e51254958501f 100644 (file)
@@ -1324,7 +1324,10 @@ void R_SetupFrame (void)
 {
 // don't allow cheats in multiplayer
        if (cl.maxclients > 1)
+       {
                Cvar_Set ("r_fullbright", "0");
+               Cvar_Set ("r_ambient", "0");
+       }
 
        R_AnimateLight ();