Fix player names so that they may contain accentuated characters
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7175 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -423,7 +423,7 @@ void UserConfig::addDefaultPlayer()
|
||||
class GuestPlayerProfile : public PlayerProfile
|
||||
{
|
||||
public:
|
||||
GuestPlayerProfile() : PlayerProfile(core::stringc(_("Guest")).c_str())
|
||||
GuestPlayerProfile() : PlayerProfile(_("Guest"))
|
||||
{
|
||||
m_is_guest_account = true;
|
||||
}
|
||||
|
||||
@@ -90,11 +90,11 @@ bool OptionsScreenPlayers::gotNewPlayerName(const stringw& newName, PlayerProfil
|
||||
const int amount = UserConfigParams::m_all_players.size();
|
||||
for (int n=0; n<amount; n++)
|
||||
{
|
||||
if (stringw(UserConfigParams::m_all_players[n].getName()) == newName) return false;
|
||||
if (UserConfigParams::m_all_players[n].getName() == newName) return false;
|
||||
}
|
||||
|
||||
// add new player
|
||||
UserConfigParams::m_all_players.push_back( new PlayerProfile(newNameC.c_str()) );
|
||||
UserConfigParams::m_all_players.push_back( new PlayerProfile(newName) );
|
||||
|
||||
players->addItem( newNameC.c_str(), newNameC.c_str() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user