mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Add missing file
This commit is contained in:
parent
76b6a99f26
commit
dfa804fb58
27
src/engine/shared/serverbrowser.cpp
Normal file
27
src/engine/shared/serverbrowser.cpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
#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);
|
||||
}
|
Loading…
Reference in a new issue