Give the first player tux as icon (instead of sara). Fixes #1771 for now.
This commit is contained in:
parent
7a9d724bd9
commit
0e569d1c7f
@ -152,7 +152,9 @@ void PlayerProfile::addIcon()
|
||||
if (m_icon_filename.size() > 0 || isGuestAccount())
|
||||
return;
|
||||
|
||||
int n = m_unique_id % kart_properties_manager->getNumberOfKarts();
|
||||
int n = (m_unique_id + kart_properties_manager->getKartId("tux") - 1)
|
||||
% kart_properties_manager->getNumberOfKarts();
|
||||
|
||||
std::string source = kart_properties_manager->getKartById(n)
|
||||
->getAbsoluteIconFile();
|
||||
// Create the filename for the icon of this player: the unique id
|
||||
|
Loading…
Reference in New Issue
Block a user