Fixed a casting error

This commit is contained in:
Sebastian Wojtowicz 2011-02-19 19:07:59 +01:00 committed by GreYFoXGTi
parent 84196b1ef3
commit 968762b144

View file

@ -652,7 +652,7 @@ void CSqlScore::agoTimeToString(int agoTime, char agoString[]){
seconds = times[i]; seconds = times[i];
strcpy(name,names[i]); strcpy(name,names[i]);
count = floor(agoTime/seconds); count = floor((float)agoTime/(float)seconds);
if(count != 0){ if(count != 0){
break; break;
} }
@ -672,7 +672,7 @@ void CSqlScore::agoTimeToString(int agoTime, char agoString[]){
strcpy(name2,names[i+1]); strcpy(name2,names[i+1]);
// add second piece if it's greater than 0 // add second piece if it's greater than 0
int count2 = floor((agoTime - (seconds * count)) / seconds2); int count2 = floor((float)(agoTime - (seconds * count)) / (float)seconds2);
if (count2 != 0) { if (count2 != 0) {
if(count2 == 1){ if(count2 == 1){