From: MirceaKitsune Date: Sat, 16 Jul 2011 12:47:11 +0000 (+0300) Subject: Fix a big issue in the new tick check for prey. The vore system works properly again X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=51e122b5d365693bdd92d36054b4518469cbbed3;p=voretournament%2Fvoretournament.git Fix a big issue in the new tick check for prey. The vore system works properly again --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index e662ca6e..798b5cf6 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -1,4 +1,4 @@ -float vore_frametime; +.float vore_frametime; .float regurgitate_prepare; .float stomachkick_delay, system_delay, action_delay, digest_button_delay_time, regurgitate_button_delay_time; .float complain_vore; @@ -764,10 +764,10 @@ void Vore() // -------------------------------- // only scan prey each server frame, else we get major breakage in multiplayer - if(vore_frametime <= time) + if(self.vore_frametime <= time) { self.prey = Swallow_player_check(); - vore_frametime = time + sys_frametime; + self.vore_frametime = time + sys_frametime; } // attempt to swallow our new prey if we pressed the attack button, and there's any in range