From d5763d9f5b29a2e52ba41e888a6be02570cbf54c Mon Sep 17 00:00:00 2001 From: aurhat Date: Sat, 24 Jan 2015 22:40:46 +0100 Subject: [PATCH] More accurate info, when player joins match with less than 60s to end --- source/src/clientgame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index ebd5b5e2..75cf9122 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -984,10 +984,11 @@ void timeupdate(int milliscur, int millismax) else { extern int clockdisplay; // only output to console if no hud-clock is being shown + int sec = 60 - ( (gametimecurrent + ( lastmillis - lastgametimeupdate ) ) / 1000) % 60; if(minutesremaining==1) { audiomgr.musicsuggest(M_LASTMINUTE1 + rnd(2), 70*1000, true); - hudoutf("1 minute left!"); + hudoutf("%s1 minute left!", sec==60 ? "" : "less than "); if(identexists("onLastMin")) execute("onLastMin"); } else if(!clockdisplay) conoutf(_("time remaining: %d minutes"), minutesremaining);