From 79aa9d640e5b258e6698d5d86adf190e02dcf866 Mon Sep 17 00:00:00 2001 From: oy Date: Sun, 20 Mar 2011 11:15:24 +0100 Subject: fixed that server browser shows the correct country flag --- src/engine/client/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/engine/client/client.cpp') diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 7277cecd..723b8791 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -1119,7 +1119,7 @@ void CClient::ProcessConnlessPacket(CNetChunk *pPacket) { str_copy(Info.m_aPlayers[i].m_aName, Up.GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES), sizeof(Info.m_aPlayers[i].m_aName)); str_copy(Info.m_aPlayers[i].m_aClan, Up.GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES), sizeof(Info.m_aPlayers[i].m_aClan)); - Info.m_aPlayers[i].m_Country = str_toint(Up.GetString()); + Info.m_aPlayers[i].m_Country = GameClient()->GetCountryIndex(str_toint(Up.GetString())); Info.m_aPlayers[i].m_Score = str_toint(Up.GetString()); } -- cgit 1.4.1