From a8c78504f22603ca1b9ca1ffce0fa0caa38602b1 Mon Sep 17 00:00:00 2001 From: Samual Date: Fri, 30 Mar 2012 21:18:29 -0400 Subject: [PATCH] Fix that last commit --- qcsrc/server/mutators/gamemode_ctf.qc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/qcsrc/server/mutators/gamemode_ctf.qc b/qcsrc/server/mutators/gamemode_ctf.qc index 1b8d32355..1ff358ab9 100644 --- a/qcsrc/server/mutators/gamemode_ctf.qc +++ b/qcsrc/server/mutators/gamemode_ctf.qc @@ -514,11 +514,15 @@ void ctf_FlagTouch() if(gameover) { return; } if(!self) { return; } if(other.deadflag != DEAD_NO) { return; } - if((other.classname != "player") && (self.wait > time)) - { // The flag just touched an object, most likely the world - pointparticles(particleeffectnum("kaball_sparks"), self.origin, '0 0 0', 1); - sound(self, CH_TRIGGER, self.snd_flag_touch, VOL_BASE, ATTN_NORM); - return; + + if(other.classname != "player") // The flag just touched an object, most likely the world + { + if(self.wait > time) // if we haven't in a while, play a sound/effect + { + pointparticles(particleeffectnum("kaball_sparks"), self.origin, '0 0 0', 1); + sound(self, CH_TRIGGER, self.snd_flag_touch, VOL_BASE, ATTN_NORM); + } + return; } switch(self.ctf_status) -- 2.39.2