From: Mario Date: Thu, 1 Oct 2015 13:08:34 +0000 (+1000) Subject: Make time work after ready restart, also fix time being off by 1 X-Git-Tag: xonotic-v0.8.2~1894 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e3e94adb9693c32fc0d049d0d0c3076a8f88c36d;p=xonotic%2Fxonotic-data.pk3dir.git Make time work after ready restart, also fix time being off by 1 --- diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 5317fe684..a6164747d 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -300,7 +300,7 @@ string formatmessage(string msg) case "s": replacement = ftos(vlen(self.velocity - self.velocity_z * '0 0 1')); break; case "S": replacement = ftos(vlen(self.velocity)); break; case "t": replacement = seconds_tostring(ceil(max(0, autocvar_timelimit * 60 + game_starttime - time))); break; - case "T": replacement = seconds_tostring(time); break; + case "T": replacement = seconds_tostring(floor(time - game_starttime)); break; default: { MUTATOR_CALLHOOK(FormatMessage, escape, replacement, msg);