Fix #2157 (FTL challenge in overworld showed number of laps).
This commit is contained in:
parent
1aa229287b
commit
64af720833
@ -243,12 +243,17 @@ ChallengeData::ChallengeData(const std::string& filename)
|
||||
}
|
||||
|
||||
core::stringw description;
|
||||
if (track_node != NULL)
|
||||
if (track_node != NULL && m_minor!=RaceManager::MINOR_MODE_FOLLOW_LEADER)
|
||||
{
|
||||
//I18N: number of laps to race in a challenge
|
||||
description += _("Laps : %i", m_num_laps);
|
||||
description += core::stringw(L"\n");
|
||||
}
|
||||
else if (track_node)
|
||||
{
|
||||
// Follow the leader mode:
|
||||
description = _("Follow the leader");
|
||||
}
|
||||
|
||||
m_challenge_description = description;
|
||||
} // ChallengeData
|
||||
|
Loading…
Reference in New Issue
Block a user