]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Give a local variable a less ambiguous name (fraglimit_override is also a cvar)
authorterencehill <piuntn@gmail.com>
Fri, 3 Mar 2023 11:02:59 +0000 (12:02 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 3 Mar 2023 11:02:59 +0000 (12:02 +0100)
qcsrc/common/gamemodes/gamemode/domination/sv_domination.qh

index bb75feced505f553d56303dc598f825b9f506f0e..101242af700fced3413ade0e0e29b235fc81e467 100644 (file)
@@ -11,16 +11,16 @@ void dom_Initialize();
 
 REGISTER_MUTATOR(dom, false)
 {
-    MUTATOR_STATIC();
+       MUTATOR_STATIC();
        MUTATOR_ONADD
        {
-               int fraglimit_override = autocvar_g_domination_point_limit;
+               int point_limit = autocvar_g_domination_point_limit;
                if (autocvar_g_domination_roundbased && autocvar_g_domination_roundbased_point_limit)
-                       fraglimit_override = autocvar_g_domination_roundbased_point_limit;
+                       point_limit = autocvar_g_domination_roundbased_point_limit;
 
                GameRules_teams(true);
-        GameRules_limit_score(fraglimit_override);
-        GameRules_limit_lead(autocvar_g_domination_point_leadlimit);
+               GameRules_limit_score(point_limit);
+               GameRules_limit_lead(autocvar_g_domination_point_leadlimit);
 
                dom_Initialize();
        }