From: terencehill Date: Sat, 9 Mar 2013 13:49:09 +0000 (+0100) Subject: Prevent concurrent game/round start countdown X-Git-Tag: xonotic-v0.7.0~61^2~21 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c93a7b8f7cfa14c5ac420a97e8461043d1be54be;p=xonotic%2Fxonotic-data.pk3dir.git Prevent concurrent game/round start countdown --- 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 } }