fix mess from last commit
authorRudolf Polzer <divverent@alientrap.org>
Sun, 5 Dec 2010 20:45:08 +0000 (21:45 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 5 Dec 2010 20:45:08 +0000 (21:45 +0100)
qcsrc/server/ctf.qc
qcsrc/server/defs.qh
qcsrc/server/scores_rules.qc
qcsrc/server/teamplay.qc

index fecfea0..23cdae9 100644 (file)
@@ -138,7 +138,7 @@ void ctf_flag_spawnstuff()
 
 float ctf_score_value(string parameter)
 {
-       if(autocvar_g_ctf_win_mode != 2)
+       if(g_ctf_win_mode != 2)
                return cvar(strcat("g_ctf_personal", parameter));
        else
                return cvar(strcat("g_ctf_flag", parameter));
index 192cfda..c9a7e61 100644 (file)
@@ -22,6 +22,7 @@ float g_cloaked, g_footsteps, g_jump_grunt, g_grappling_hook, g_midair, g_minsta
 float g_warmup_limit;
 float g_warmup_allguns;
 float g_warmup_allow_timeout;
+float g_ctf_win_mode;
 float g_ctf_ignore_frags;
 float g_ctf_reverse;
 float g_race_qualifying;
index bf743fc..a4c993d 100644 (file)
@@ -56,7 +56,7 @@ void ScoreRules_ctf()
 {
        float sp_score, sp_caps;
        sp_score = sp_caps = 0;
-       switch(autocvar_g_ctf_win_mode)
+       switch(g_ctf_win_mode)
        {
                case 0: // caps only
                        sp_caps = SFL_SORT_PRIO_PRIMARY;
index d0751f3..d47115e 100644 (file)
@@ -239,8 +239,9 @@ 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(autocvar_g_ctf_win_mode == 2)
+               if(g_ctf_win_mode == 2)
                {
                        fraglimit_override = autocvar_g_ctf_capture_limit;
                        leadlimit_override = autocvar_g_ctf_capture_leadlimit;