Don't sort karts after loading saved GP.
This causes issues in follow the leader races, because after sorting the leader is not leader anymore. This sorting function is most probably not needed because the list is sorted in startNextRace function (where the leader is properly skipped).
This commit is contained in:
parent
4ac479cbf3
commit
054d9251bb
@ -181,5 +181,7 @@ void SavedGrandPrix::loadKarts(std::vector<RaceManager::KartStatus> & kart_list)
|
||||
} // if m_local_player_id == -1
|
||||
} // for i
|
||||
|
||||
std::sort(kart_list.begin(), kart_list.end(), cmp__l);
|
||||
// The line below causes issues in follow the leader race. The leader
|
||||
// is not at first place anymore.
|
||||
// std::sort(kart_list.begin(), kart_list.end(), cmp__l);
|
||||
} // loadKarts
|
||||
|
Loading…
Reference in New Issue
Block a user