]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix a big issue in the new tick check for prey. The vore system works properly again
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Jul 2011 12:47:11 +0000 (15:47 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Jul 2011 12:47:11 +0000 (15:47 +0300)
data/qcsrc/server/vore.qc

index e662ca6e7ae11cf5408d8c972bb870310033c72e..798b5cf6d2c9366f070ee128f1615a25c678dfe9 100644 (file)
@@ -1,4 +1,4 @@
-float vore_frametime;\r
+.float vore_frametime;\r
 .float regurgitate_prepare;\r
 .float stomachkick_delay, system_delay, action_delay, digest_button_delay_time, regurgitate_button_delay_time;\r
 .float complain_vore;\r
@@ -764,10 +764,10 @@ void Vore()
 // --------------------------------\r
 \r
        // only scan prey each server frame, else we get major breakage in multiplayer\r
-       if(vore_frametime <= time)\r
+       if(self.vore_frametime <= time)\r
        {\r
                self.prey = Swallow_player_check();\r
-               vore_frametime = time + sys_frametime;\r
+               self.vore_frametime = time + sys_frametime;\r
        }\r
 \r
        // attempt to swallow our new prey if we pressed the attack button, and there's any in range\r