From 8f4293d29343785c4e02b176b54eadaa4e9396d8 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 3 Mar 2023 12:02:59 +0100 Subject: [PATCH] Give a local variable a less ambiguous name (fraglimit_override is also a cvar) --- .../gamemodes/gamemode/domination/sv_domination.qh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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(); } -- 2.39.2