From: terencehill Date: Fri, 3 Mar 2023 11:02:59 +0000 (+0100) Subject: Give a local variable a less ambiguous name (fraglimit_override is also a cvar) X-Git-Tag: xonotic-v0.8.6~162 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8f4293d29343785c4e02b176b54eadaa4e9396d8;p=xonotic%2Fxonotic-data.pk3dir.git Give a local variable a less ambiguous name (fraglimit_override is also a cvar) --- diff --git a/qcsrc/common/gamemodes/gamemode/domination/sv_domination.qh b/qcsrc/common/gamemodes/gamemode/domination/sv_domination.qh index bb75feced..101242af7 100644 --- a/qcsrc/common/gamemodes/gamemode/domination/sv_domination.qh +++ b/qcsrc/common/gamemodes/gamemode/domination/sv_domination.qh @@ -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(); }