]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use start_health instead of a cvar() call to the original cvar
authorMario <mario@smbclan.net>
Sat, 25 Nov 2017 01:03:18 +0000 (11:03 +1000)
committerMario <mario@smbclan.net>
Sat, 25 Nov 2017 01:03:18 +0000 (11:03 +1000)
qcsrc/common/mutators/mutator/stale_move_negation/sv_stale_move_negation.qc

index 7d5f829a08e65dfef3eedc7fbfb8589bdc0f102e..c54a8a69306f4d7682be9e71003d584dca762a73 100644 (file)
@@ -20,7 +20,7 @@ float smneg_multiplier(float weight) {
     float a = autocvar_g_smneg_bonus_asymptote;
     float x = max(
         (!autocvar_g_smneg_bonus ? 0 : (-a + .1)),
-        weight / cvar("g_balance_health_start")
+        weight / start_health
     );
     float z = (M_PI / 5) * a;
     float f = (x > 0)