From d6aea5ba40a1ca17cf9f8205b4bcaead7378bb2b Mon Sep 17 00:00:00 2001 From: def Date: Sat, 20 Sep 2014 13:48:59 +0200 Subject: [PATCH] Prepare DDNet gametype name --- src/engine/client/client.cpp | 4 ++-- src/game/client/components/menus_browser.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index df753f2bc..efc775e70 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -427,7 +427,7 @@ void CClient::Rcon(const char *pCmd) { CServerInfo Info; GetServerInfo(&Info); - if(RconAuthed() && str_find_nocase(Info.m_aGameType, "ddracenetw")) + if(RconAuthed() && (str_find_nocase(Info.m_aGameType, "ddracenetw") || str_find_nocase(Info.m_aGameType, "ddnet"))) { // Against IP spoofing on DDNet servers CMsgPacker Msg(NETMSG_RCON_AUTH); Msg.AddString("", 32); @@ -1432,7 +1432,7 @@ void CClient::ProcessConnlessPacket(CNetChunk *pPacket) if(State() == IClient::STATE_ONLINE && !m_TimeoutCodeSent[g_Config.m_ClDummy]) { - if(str_find_nocase(Info.m_aGameType, "ddracenetw")) + if(str_find_nocase(Info.m_aGameType, "ddracenetw") || str_find_nocase(Info.m_aGameType, "ddnet")) { m_TimeoutCodeSent[g_Config.m_ClDummy] = true; CNetMsg_Cl_Say Msg; diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index c66489bdb..bfadc7a26 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -487,7 +487,8 @@ void CMenus::RenderServerbrowserServerList(CUIRect View) hsl = vec3(0.00f, 1.0f, 0.75f); // Instagib else if (str_find_nocase(pItem->m_aGameType, "fng")) hsl = vec3(0.83f, 1.0f, 0.75f); // FNG - else if (str_find_nocase(pItem->m_aGameType, "ddracenetwo")) + else if (str_find_nocase(pItem->m_aGameType, "ddracenetw") + || str_find_nocase(pItem->m_aGameType, "ddnet")) hsl = vec3(0.58f, 1.0f, 0.75f); // DDNet else if (str_find_nocase(pItem->m_aGameType, "ddrace") || str_find_nocase(pItem->m_aGameType, "mkrace"))