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:
auria
2010-12-28 01:50:24 +00:00
parent 5bd9afdd7f
commit 41e1d57f0b
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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() );
}