Got rid of unused variable.

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

Former-commit-id: dffd1d0a9e60c1a0bc06dc436894ae45280335af
Former-commit-id: fcc2ced23ee34f1ffaf334b2196c6142f54bc22d
This commit is contained in:
kmetykog 2009-10-14 13:03:07 +00:00
parent ee2eaa864a
commit f5232940b5

View file

@ -54,7 +54,6 @@ static char path[1024];
static int iStart = 0;
static double iTimer = 0.0;
static int iStringStart = 0;
static int iRaceLaps = -1;
static string st; //This is the line we will display in the bottom
@ -804,7 +803,6 @@ cGrBoard::shutdown(void)
iStart = 0;
iTimer = 0.0;
iStringStart = 0;
iRaceLaps = -1;
}
void
@ -1184,19 +1182,17 @@ cGrBoard::grDispLeaderBoardScrollLine(const tCarElt *car, const tSituation *s)
//Are we at the end of the scrolled string? If yes, let's regenerate it
if(st.empty() || (iStringStart == (int)st.size())) {
st.clear();
//Let's regenerate the roster.
//The roster holds the driver's position, name and difference
//*at the time* the leader starts a new lap.
//So it can happen it is somewhat mixed up, it will settle down
//in the next lap.
if(s->cars[0]->race.laps > iRaceLaps)
iRaceLaps++;
/*!The roster holds the driver's position, name and difference
* *at the time* the leader starts a new lap.
* So it can happen it is somewhat mixed up, it will settle down
* in the next lap.
*/
ostringstream osRoster;
//Add the track name as separator, embedded with 3 spaces each side.
osRoster << " " << grTrack->name << " ";
//Add # of laps
osRoster << "Lap " << iRaceLaps << " | ";
osRoster << "Lap " << s->cars[0]->race.laps << " | ";
for(int i = 0; i < s->_ncars; i++) {
//Driver position + name
osRoster.width(3);