From: MirceaKitsune Date: Mon, 11 Jul 2011 14:03:27 +0000 (+0300) Subject: Fix toggling g_vore while a vore is existent X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9da754a57c7cffb4574dbbe68fdc04ec0bb9d19b;p=voretournament%2Fvoretournament.git Fix toggling g_vore while a vore is existent --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index db281b88..808ca3f9 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -650,12 +650,6 @@ void Vore() { // main vore code, this is where it all happens - if(!cvar("g_vore")) // the vore system is disabled - { - Vore_Disconnect(); - return; - } - Vore_AutoTaunt(); // wash the goo away from players once they leave the stomach @@ -735,6 +729,11 @@ void Vore() } // apply delays and skip the vore system under some circumstances + if(!cvar("g_vore")) // the vore system is disabled + { + Vore_Disconnect(); + return; + } if(time < game_starttime || (time < warmup && !inWarmupStage)) // don't allow vore before a round begins { Vore_Disconnect();