about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-03-18 17:59:48 +0100
committeroy <Tom_Adams@web.de>2011-03-18 17:59:48 +0100
commitf8ae9f77327c12c038db88b66ede74fd51317282 (patch)
treeb2f2f159a95defc32620eaeccb08a45cb4ce3d15 /src/engine
parent1628118de3ae3f899a611670d00536409cadea99 (diff)
downloadzcatch-f8ae9f77327c12c038db88b66ede74fd51317282.tar.gz
zcatch-f8ae9f77327c12c038db88b66ede74fd51317282.zip
made server browser show clan name and country code for players
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/client/srvbrowse.cpp5
-rw-r--r--src/engine/serverbrowser.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/engine/client/srvbrowse.cpp b/src/engine/client/srvbrowse.cpp
index 68d3bca3..81ee175f 100644
--- a/src/engine/client/srvbrowse.cpp
+++ b/src/engine/client/srvbrowse.cpp
@@ -185,10 +185,11 @@ void CServerBrowser::Filter()
 				// match against players
 				for(p = 0; p < m_ppServerlist[i]->m_Info.m_NumPlayers; p++)
 				{
-					if(str_find_nocase(m_ppServerlist[i]->m_Info.m_aPlayers[p].m_aName, g_Config.m_BrFilterString))
+					if(str_find_nocase(m_ppServerlist[i]->m_Info.m_aPlayers[p].m_aName, g_Config.m_BrFilterString) ||
+						str_find_nocase(m_ppServerlist[i]->m_Info.m_aPlayers[p].m_aClan, g_Config.m_BrFilterString))
 					{
 						MatchFound = 1;
-						m_ppServerlist[i]->m_Info.m_QuickSearchHit |= IServerBrowser::QUICK_PLAYERNAME;
+						m_ppServerlist[i]->m_Info.m_QuickSearchHit |= IServerBrowser::QUICK_PLAYER;
 						break;
 					}
 				}
diff --git a/src/engine/serverbrowser.h b/src/engine/serverbrowser.h
index 56d808f9..579f1ca7 100644
--- a/src/engine/serverbrowser.h
+++ b/src/engine/serverbrowser.h
@@ -65,7 +65,7 @@ public:
 		SORT_NUMPLAYERS,
 		
 		QUICK_SERVERNAME=1,
-		QUICK_PLAYERNAME=2,
+		QUICK_PLAYER=2,
 		QUICK_MAPNAME=4,
 		
 		TYPE_INTERNET = 0,