From d191b1dadfe390deff412812c7c19c30ee298835 Mon Sep 17 00:00:00 2001 From: z411 Date: Wed, 8 Dec 2021 02:18:12 -0300 Subject: [PATCH] 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). --- qcsrc/client/announcer.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } -- 2.39.2