Fixed #796 (**:**:** as time), which happens if the race is aborted
before a kart has moved (due to a division by zero). Now 99:59:00 is displayed instead, but in case that there should be other circumstances that trigger this problem, use 99:59:99 instead of **:**:**. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12055 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -471,8 +471,8 @@ namespace StringUtils
|
||||
// and an incorrect finishing time is estimated.
|
||||
if(int_time<0)
|
||||
return std::string("00:00:00");
|
||||
else if(int_time >= 10000*60) // up to 9999:59.99
|
||||
return std::string("**:**:**");
|
||||
else if(int_time >= 10000*60) // up to 99:59.99
|
||||
return std::string("99:59:99");
|
||||
|
||||
int min = int_time / 6000;
|
||||
int sec = (int_time-min*6000)/100;
|
||||
|
||||
Reference in New Issue
Block a user