Fix #4219
This commit is contained in:
parent
3c6127daab
commit
f99e13cb78
@ -350,6 +350,8 @@ void World::reset(bool restart)
|
|||||||
// when the race result gui was being shown. In this case restore the
|
// when the race result gui was being shown. In this case restore the
|
||||||
// race gui (note that the race result gui is cached and so never really
|
// race gui (note that the race result gui is cached and so never really
|
||||||
// destroyed).
|
// destroyed).
|
||||||
|
bool reset_streak = restart && !m_saved_race_gui;
|
||||||
|
|
||||||
if(m_saved_race_gui)
|
if(m_saved_race_gui)
|
||||||
{
|
{
|
||||||
m_race_gui = m_saved_race_gui;
|
m_race_gui = m_saved_race_gui;
|
||||||
@ -388,7 +390,7 @@ void World::reset(bool restart)
|
|||||||
{
|
{
|
||||||
PlayerManager::trackEvent(RaceManager::get()->getTrackName(), AchievementsStatus::TR_EGG_HUNT_STARTED);
|
PlayerManager::trackEvent(RaceManager::get()->getTrackName(), AchievementsStatus::TR_EGG_HUNT_STARTED);
|
||||||
}
|
}
|
||||||
if (restart)
|
if (reset_streak)
|
||||||
PlayerManager::onRaceEnd(true /* previous race aborted */);
|
PlayerManager::onRaceEnd(true /* previous race aborted */);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user