nairda bad-Fix FormatSeconds stock (#923)

This commit is contained in:
Nairda 2020-06-14 23:26:28 +02:00 committed by GitHub
parent 469785b80c
commit 54a53db13b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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