Don't show kart rank in free for all battle, fix #4607

This commit is contained in:
Benau 2021-09-12 08:24:01 +08:00
parent 0d54c3d60b
commit 9221d39e6e

View File

@ -1345,7 +1345,9 @@ void RaceResultGUI::unload()
: video::SColor(255, 255, 255, 255);
unsigned int current_x = x;
if (!ri->m_finish_time_string.empty() && RaceManager::get()->getNumberOfKarts() >= 10)
if (RaceManager::get()->getMinorMode() != RaceManager::MINOR_MODE_FREE_FOR_ALL &&
!ri->m_finish_time_string.empty() &&
RaceManager::get()->getNumberOfKarts() >= 10)
{
int pos_rank_width = m_font->getDimension(core::stringw(n + 1).c_str()).Width;
core::recti pos_rank(current_x, y, pos_rank_width, m_distance_between_rows);