mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
28 lines
672 B
C++
28 lines
672 B
C++
#include <engine/serverbrowser.h>
|
|
#include <base/system.h>
|
|
|
|
bool IsRace(const CServerInfo *pInfo)
|
|
{
|
|
return str_find_nocase(pInfo->m_aGameType, "race")
|
|
|| str_find_nocase(pInfo->m_aGameType, "fastcap");
|
|
}
|
|
|
|
bool IsDDRace(const CServerInfo *pInfo)
|
|
{
|
|
return str_find_nocase(pInfo->m_aGameType, "ddrace")
|
|
|| str_find_nocase(pInfo->m_aGameType, "mkrace");
|
|
}
|
|
|
|
bool IsDDNet(const CServerInfo *pInfo)
|
|
{
|
|
return str_find_nocase(pInfo->m_aGameType, "ddracenet")
|
|
|| str_find_nocase(pInfo->m_aGameType, "ddnet");
|
|
}
|
|
|
|
bool Is64Player(const CServerInfo *pInfo)
|
|
{
|
|
return str_find(pInfo->m_aGameType, "64")
|
|
|| str_find(pInfo->m_aName, "64")
|
|
|| IsDDNet(pInfo);
|
|
}
|