more fixes to the result page alignment (Endurance qualification mainly)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4427 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: cff9529450d61b85a7506ca78cfb09c616021154 Former-commit-id: be9f65530042582e2b733ef9f4b51a78e7bdd368
This commit is contained in:
parent
60c439e46a
commit
e53c5d598a
1 changed files with 6 additions and 6 deletions
|
@ -600,17 +600,17 @@ ReUpdateQualifCurRes(tCarElt *car)
|
|||
GfParmReleaseHandle(carparam);
|
||||
|
||||
if (car->_state & RM_CAR_STATE_DNF) {
|
||||
snprintf(buf, sizeof(buf), "out %-20s %-20s", car->_name, carName);
|
||||
snprintf(buf, sizeof(buf), "out \t \t%-25s \t%-20s", car->_name, carName);
|
||||
} else if (car->_bestLapTime <= 0.0f) {
|
||||
snprintf(buf, sizeof(buf), " %2d --:--- %-20s %-20s",
|
||||
snprintf(buf, sizeof(buf), " %2d \t --:--- \t%-25s \t%-20s",
|
||||
xx + 1, car->_name, carName);
|
||||
} else {
|
||||
if (xx == 0)
|
||||
tmp_str = GfTime2Str(car->_bestLapTime, " ", false, 3);
|
||||
tmp_str = GfTime2Str(car->_bestLapTime, " ", false, 3);
|
||||
else
|
||||
tmp_str = GfTime2Str(car->_bestLapTime - ReInfo->s->cars[0]->_bestLapTime,
|
||||
"+", false, 3);
|
||||
snprintf(buf, sizeof(buf), " %2d %-12s %-20s %-20s",
|
||||
snprintf(buf, sizeof(buf), " %2d \t%-12s \t%-25s \t%-20s",
|
||||
xx + 1, tmp_str, car->_name, carName);
|
||||
free(tmp_str);
|
||||
}
|
||||
|
@ -681,10 +681,10 @@ ReUpdateRaceCurRes()
|
|||
free(tmp_str);
|
||||
}
|
||||
else if (car->_lapsBehindLeader == 1)
|
||||
snprintf(buf, sizeof(buf), " %2d 1 lap %-25s %-20s",
|
||||
snprintf(buf, sizeof(buf), " %2d \t 1 lap \t%-25s \t%-20s",
|
||||
xx + 1, car->_name, carName);
|
||||
else
|
||||
snprintf(buf, sizeof(buf), " %2d %3d laps %-25s %-20s",
|
||||
snprintf(buf, sizeof(buf), " %2d \t %3d laps \t%-25s \t%-20s",
|
||||
xx + 1, car->_lapsBehindLeader, car->_name, carName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue