Only save GP highscores for normal race and time trial (#4613)

This commit is contained in:
Kuba 2021-09-11 15:16:51 +02:00 committed by GitHub
parent 7aeb0b0edf
commit 0d54c3d60b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,7 +205,8 @@ void RaceResultGUI::init()
#endif
if (RaceManager::get()->getMajorMode() == RaceManager::MAJOR_MODE_GRAND_PRIX &&
!NetworkConfig::get()->isNetworking())
!NetworkConfig::get()->isNetworking() &&
(RaceManager::get()->getMinorMode() == RaceManager::MINOR_MODE_NORMAL_RACE || RaceManager::get()->getMinorMode() == RaceManager::MINOR_MODE_TIME_TRIAL))
{
if (RaceManager::get()->getNumOfTracks() == RaceManager::get()->getTrackNumber() + 1
&& !RaceManager::get()->getGrandPrix().isRandomGP())