]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix toggling g_vore while a vore is existent
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 11 Jul 2011 14:03:27 +0000 (17:03 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 11 Jul 2011 14:03:27 +0000 (17:03 +0300)
data/qcsrc/server/vore.qc

index db281b88d4f019b482de9265b51d6fbeda224d6d..808ca3f9704b2dc71c42c4685b20cca699cf98a1 100644 (file)
@@ -650,12 +650,6 @@ void Vore()
 {\r
        // main vore code, this is where it all happens\r
 \r
-       if(!cvar("g_vore")) // the vore system is disabled\r
-       {\r
-               Vore_Disconnect();\r
-               return;\r
-       }\r
-\r
        Vore_AutoTaunt();\r
 \r
        // wash the goo away from players once they leave the stomach\r
@@ -735,6 +729,11 @@ void Vore()
        }\r
 \r
        // apply delays and skip the vore system under some circumstances\r
+       if(!cvar("g_vore")) // the vore system is disabled\r
+       {\r
+               Vore_Disconnect();\r
+               return;\r
+       }\r
        if(time < game_starttime || (time < warmup && !inWarmupStage)) // don't allow vore before a round begins\r
        {\r
                Vore_Disconnect();\r