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