fix shadowed variable name

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7649 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 3887df8f68b39b00db300bf09715682474ec05e4
Former-commit-id: 1a197a1bd3b81c3e768a94e7a5dd4d916fae3aec
This commit is contained in:
iobyte 2021-09-08 20:32:16 +00:00
parent 10f698809e
commit eb8e88d22f

View file

@ -495,7 +495,7 @@ ReUpdatePracticeCurRes(tCarElt *car, bool bForceNew)
ReUI().setResultsTableHeader(pszTableHeader);
char* t1 = GfTime2Str(car->_lastLapTime, 0, false, 3);
char* t2 = GfTime2Str(car->_bestLapTime, 0, false, 3);
char buf[128];
char row[128];
// Cancel hightlight on first line
if (car->_laps == 2) ReUI().setResultsTableRow(0, "");
@ -504,14 +504,14 @@ ReUpdatePracticeCurRes(tCarElt *car, bool bForceNew)
static int nLastLapDamages = 0;
if (car->_laps <= 2)
nLastLapDamages = 0;
snprintf(buf, sizeof(buf), "%.3d \t%-12s \t%-12s \t%5.1f \t%5.1f \t %.5d (%d)",
snprintf(row, sizeof(row), "%.3d \t%-12s \t%-12s \t%5.1f \t%5.1f \t %.5d (%d)",
car->_laps - 1, t1, t2, info->topSpd * 3.6, info->botSpd * 3.6,
car->_dammage ? car->_dammage - nLastLapDamages : 0, car->_dammage);
nLastLapDamages = car->_dammage;
free(t1);
free(t2);
ReUI().addResultsTableRow(buf);
ReUI().addResultsTableRow(row);
}
else
{