From: Mario Date: Thu, 6 Jun 2013 03:22:54 +0000 (+1000) Subject: Reset gravity if g_random_gravity has been turned off X-Git-Tag: xonotic-v0.8.0~366^2~40 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=23856e357d25812596175f6f6dfd3396777dc1f0;p=xonotic%2Fxonotic-data.pk3dir.git Reset gravity if g_random_gravity has been turned off --- diff --git a/qcsrc/server/mutators/mutator_random_gravity.qc b/qcsrc/server/mutators/mutator_random_gravity.qc index 6653312d9..bd14032fe 100644 --- a/qcsrc/server/mutators/mutator_random_gravity.qc +++ b/qcsrc/server/mutators/mutator_random_gravity.qc @@ -2,7 +2,7 @@ float gravity_delay; float old_gravity; MUTATOR_HOOKFUNCTION(gravity_StartFrame) { - if(gameover) + if(gameover || !cvar("g_random_gravity")) { if(autocvar_sv_gravity != old_gravity) {