Fixed voting for laps and reverse.
This commit is contained in:
parent
52460d02de
commit
f5a344ccb4
@ -389,7 +389,7 @@ void RaceConfig::computeNextTrack()
|
||||
tracks_histogram[m_votes[i].getTrackVote()] = 1;
|
||||
}
|
||||
}
|
||||
else if (m_votes[i].hasVotedReversed())
|
||||
if (m_votes[i].hasVotedReversed())
|
||||
{
|
||||
try // reversed
|
||||
{
|
||||
@ -400,7 +400,7 @@ void RaceConfig::computeNextTrack()
|
||||
reversed_histogram[m_votes[i].getReversedVote()] = 1;
|
||||
}
|
||||
}
|
||||
else if (m_votes[i].hasVotedLaps())
|
||||
if (m_votes[i].hasVotedLaps())
|
||||
{
|
||||
try // laps
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user