Implement proper fix for #2776
Doing computeGPRanks in race result screen will make sorting animation disappear
This commit is contained in:
@@ -499,6 +499,9 @@ void RaceManager::startNew(bool from_overworld)
|
||||
if (next_track < (int)m_tracks.size())
|
||||
m_track_number = next_track;
|
||||
m_saved_gp->loadKarts(m_kart_status);
|
||||
// Update the kart GP ranks
|
||||
// This is useful, e.g., when continuing a saved GP, see #2776
|
||||
computeGPRanks();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1252,9 +1252,6 @@ void RaceResultGUI::unload()
|
||||
#ifndef SERVER_ONLY
|
||||
unsigned int num_karts = RaceManager::get()->getNumberOfKarts();
|
||||
std::vector<int> old_rank(num_karts, 0);
|
||||
// Update the kart GP ranks
|
||||
// This is useful, e.g., when continuing a saved GP.
|
||||
RaceManager::get()->computeGPRanks();
|
||||
|
||||
int time_precision = RaceManager::get()->currentModeTimePrecision();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user