More accurate info, when player joins match with less than 60s to end

This commit is contained in:
aurhat
2015-01-24 22:41:37 +01:00
parent 3470b49963
commit d5763d9f5b
+2 -1
View File
@@ -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);