1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Fix time trial result displaying 00:60 instead of 01:00

If your time was exactly 60 seconds, it would display 00:60 instead of
01:00.
This commit is contained in:
Misa 2020-06-14 17:51:39 -07:00 committed by Ethan Lee
parent b53d2ae53f
commit 33fd589616

View file

@ -6828,7 +6828,7 @@ std::string Game::resulttimestring()
{ {
//given result time in seconds: //given result time in seconds:
std::string tempstring = ""; std::string tempstring = "";
if (timetrialresulttime > 60) if (timetrialresulttime >= 60)
{ {
tempstring = help.twodigits(int((timetrialresulttime - (timetrialresulttime % 60)) / 60)) + ":" tempstring = help.twodigits(int((timetrialresulttime - (timetrialresulttime % 60)) / 60)) + ":"
+ help.twodigits(timetrialresulttime % 60); + help.twodigits(timetrialresulttime % 60);