From 54a53db13b96606cfbee1b249089d4d9c1c490ee Mon Sep 17 00:00:00 2001 From: Nairda <38843773+Nairdaa@users.noreply.github.com> Date: Sun, 14 Jun 2020 23:26:28 +0200 Subject: [PATCH] nairda bad-Fix FormatSeconds stock (#923) --- addons/sourcemod/scripting/include/shavit.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/sourcemod/scripting/include/shavit.inc b/addons/sourcemod/scripting/include/shavit.inc index 16fc726d..c153ae89 100644 --- a/addons/sourcemod/scripting/include/shavit.inc +++ b/addons/sourcemod/scripting/include/shavit.inc @@ -396,11 +396,12 @@ stock void FormatSeconds(float time, char[] newtime, int newtimesize, bool preci float fSeconds = (iRounded % 60) + fTempTime - iRounded; char sSeconds[8]; - FormatEx(sSeconds, 8, precise? "%s%.03f":"%s%.01f", (time < 0.0)? "-":"", fSeconds); + FormatEx(sSeconds, 8, precise? "%.03f":"%.01f", fSeconds); if(fTempTime < 60.0) { strcopy(newtime, newtimesize, sSeconds); + FormatEx(newtime, newtimesize, "%s%s", (time < 0.0) ? "-":"", sSeconds); } else