This commit is contained in:
Alayan 2023-11-24 16:29:18 +01:00
parent 2a903271aa
commit bf88954e31
No known key found for this signature in database

@ -1311,7 +1311,10 @@ core::stringw RaceManager::getDifficultyName(Difficulty diff) const
case RaceManager::DIFFICULTY_MEDIUM: return _("Intermediate"); break;
case RaceManager::DIFFICULTY_HARD: return _("Expert"); break;
case RaceManager::DIFFICULTY_BEST: return _("SuperTux"); break;
default: assert(false);
default: Log::error("RaceManager", "Difficulty level '%u' is unknown.", diff);
// Uncomment to generate a crash and backtrace, if the cause of the
// incorrect difficulty level is unknown (i.e. not online servers' settings)
// assert(false);
}
return "";
} // getDifficultyName