From: z411 Date: Wed, 8 Dec 2021 05:18:12 +0000 (-0300) Subject: Fixed issue where round countdown would start one second too late X-Git-Tag: xonotic-v0.8.5~270^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d191b1dadfe390deff412812c7c19c30ee298835;p=xonotic%2Fxonotic-data.pk3dir.git Fixed issue where round countdown would start one second too late Due to flooring and not rounding the countdown time, the round timer would ocassionally start counting one second too late (ie at 9, not 10). --- diff --git a/qcsrc/client/announcer.qc b/qcsrc/client/announcer.qc index a0e9b294c..109ee5ac1 100644 --- a/qcsrc/client/announcer.qc +++ b/qcsrc/client/announcer.qc @@ -107,7 +107,7 @@ void Announcer_Gamestart() if(time > announcer_countdown.nextthink) // don't play it again if countdown was already going Local_Notification(MSG_ANNCE, ANNCE_PREPARE); - announcer_countdown.nextthink = startTime - floor(startTime - time); //synchronize nextthink to startTime + announcer_countdown.nextthink = startTime - floor(startTime - time + 0.5); //synchronize nextthink to startTime } }