From c93a7b8f7cfa14c5ac420a97e8461043d1be54be Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 9 Mar 2013 14:49:09 +0100 Subject: [PATCH] Prevent concurrent game/round start countdown --- qcsrc/client/announcer.qc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/qcsrc/client/announcer.qc b/qcsrc/client/announcer.qc index dc4d7e2c5..3397f84ac 100644 --- a/qcsrc/client/announcer.qc +++ b/qcsrc/client/announcer.qc @@ -79,9 +79,13 @@ void Announcer_Gamestart() if(time < startTime) { - entity e; - e = spawn(); - e.think = Announcer_Countdown; + entity e = find(world, classname, "announcer_countdown"); + if not(e) + { + e = spawn(); + e.classname = "announcer_countdown"; + e.think = Announcer_Countdown; + } e.nextthink = startTime - floor(startTime - time); //synchronize nextthink to startTime } } -- 2.39.2