remove the CTF win mode autocvar, not needed
authorRudolf Polzer <divverent@alientrap.org>
Sun, 5 Dec 2010 20:47:23 +0000 (21:47 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 5 Dec 2010 20:47:23 +0000 (21:47 +0100)
qcsrc/server/autocvars.qh
qcsrc/server/ctf.qc
qcsrc/server/teamplay.qc

index a9c3525..eb344da 100644 (file)
@@ -696,7 +696,6 @@ float autocvar_g_ctf_ignore_frags;
 float autocvar_g_ctf_shield_force;
 float autocvar_g_ctf_shield_max_ratio;
 float autocvar_g_ctf_shield_min_negscore;
-float autocvar_g_ctf_win_mode;
 float autocvar_g_cts_finish_kill_delay;
 float autocvar_g_cts_selfdamage;
 float autocvar_g_deathglow;
index 23cdae9..b31e142 100644 (file)
@@ -1008,6 +1008,11 @@ void ctf_init()
        captureshield_min_negscore = autocvar_g_ctf_shield_min_negscore;
        captureshield_max_ratio = autocvar_g_ctf_shield_max_ratio;
        captureshield_force = autocvar_g_ctf_shield_force;
+
+
+//#NO AUTOCVARS START
+       g_ctf_win_mode = cvar("g_ctf_win_mode");
+//#NO AUTOCVARS END
 };
 
 void ctf_setstatus2(entity flag, float shift)
index d47115e..871d6ab 100644 (file)
@@ -239,7 +239,6 @@ void InitGameplayMode()
                game = GAME_CTF;
                gamemode_name = "Capture the Flag";
                ActivateTeamplay();
-               g_ctf_win_mode = autocvar_g_ctf_win_mode;
                g_ctf_ignore_frags = autocvar_g_ctf_ignore_frags;
                if(g_ctf_win_mode == 2)
                {