]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/announcer.qc
Stats: remove dependence on engine assigned stats
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / announcer.qc
index ab1cd1366240eafcd1cfb3d058bec1d70a0f5122..a0c496abcd93b70c7b5b94d53d304cd147fb9957 100644 (file)
@@ -100,7 +100,7 @@ void Announcer_Gamestart()
 // Plays the 1 minute or 5 minutes (of maptime) remaining sound, if client wants it
 void Announcer_Time()
 {
-       float timelimit = getstatf(STAT_TIMELIMIT);
+       float timelimit = STAT(TIMELIMIT);
        float timeleft = max(0, timelimit * 60 + STAT(GAMESTARTTIME) - time);
        float warmup_timeleft = 0;