]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset gravity if g_random_gravity has been turned off
authorMario <mario.mario@y7mail.com>
Thu, 6 Jun 2013 03:22:54 +0000 (13:22 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 6 Jun 2013 03:22:54 +0000 (13:22 +1000)
qcsrc/server/mutators/mutator_random_gravity.qc

index 6653312d9b618ed7776b3d6d11517175e776716b..bd14032fec6f569c91638fbe5a8173b6d858fdef 100644 (file)
@@ -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)
                {