mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
unbreak chat for netplay (broken in last revision...)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4726 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -468,7 +468,7 @@ void NetPlay::OnGUIEvent(wxCommandEvent& event)
|
|||||||
{
|
{
|
||||||
value = 0x30;
|
value = 0x30;
|
||||||
// TODO : there seems to be a random bug here that i can't reproduce... looked like a loop bug :/
|
// TODO : there seems to be a random bug here that i can't reproduce... looked like a loop bug :/
|
||||||
wxString chat_str = wxString::FromAscii(StringFromFormat("> %s : %s\n", m_nick.c_str(), m_Chat->GetValue().c_str()).c_str() );
|
wxString chat_str = wxString::Format(wxT("> %s : %s\n"), wxString(m_nick.c_str(), wxConvUTF8).c_str() , m_Chat->GetValue().c_str() );
|
||||||
int chat_size = (int)chat_str.size();
|
int chat_size = (int)chat_str.size();
|
||||||
if(chat_size-m_nick.size()-6 > 0)
|
if(chat_size-m_nick.size()-6 > 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user