]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 a9c3525f8b4604f8c6844733d9e9978dd260cd24..eb344da93c67c64d8d66277ec7726593ff512647 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 23cdae9fbb61d034c575ae4de3dbae29cb5bf19d..b31e1429381ca5637966f9dfd8a0bde4c308474c 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 d47115e8fe6cf37f67ce3d005460d45f5e708521..871d6ab66805b33e2497673139363b808feeab76 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)
                {