mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Style
This commit is contained in:
parent
867facfffc
commit
37c67c00ad
|
@ -3041,7 +3041,7 @@ unsigned str_quickhash(const char *str)
|
|||
return hash;
|
||||
}
|
||||
|
||||
static const char *str_token_next(const char *str, const char *delim, size_t *length)
|
||||
static const char *str_token_next(const char *str, const char *delim, int *length)
|
||||
{
|
||||
str += strspn(str, delim);
|
||||
if(!*str)
|
||||
|
@ -3054,9 +3054,10 @@ static const char *str_token_next(const char *str, const char *delim, size_t *le
|
|||
int str_in_list(const char *list, const char *delim, const char *needle)
|
||||
{
|
||||
const char *tok = list;
|
||||
size_t len = 0, notfound = 1;
|
||||
int len = 0, notfound = 1;
|
||||
|
||||
while(notfound && (tok = str_token_next(tok, delim, &len))){
|
||||
while(notfound && (tok = str_token_next(tok, delim, &len)))
|
||||
{
|
||||
notfound = str_comp_num(tok, needle, len);
|
||||
tok = tok + len;
|
||||
}
|
||||
|
|
|
@ -359,7 +359,7 @@ MACRO_CONFIG_INT(SvSoloServer, sv_solo_server, 0, 0, 1, CFGFLAG_SERVER|CFGFLAG_G
|
|||
MACRO_CONFIG_STR(SvClientSuggestion, sv_client_suggestion, 128, "Get DDNet client from DDNet.tw to use all features on DDNet!", CFGFLAG_SERVER, "Broadcast to display to players without DDNet client")
|
||||
MACRO_CONFIG_STR(SvClientSuggestionOld, sv_client_suggestion_old, 128, "Your DDNet client is old, update it on DDNet.tw!", CFGFLAG_SERVER, "Broadcast to display to players with an old version of DDNet client")
|
||||
MACRO_CONFIG_STR(SvClientSuggestionBot, sv_client_suggestion_bot, 128, "Your client has bots and can be remotely controlled!\nPlease use another client like DDNet client from DDNet.tw", CFGFLAG_SERVER, "Broadcast to display to players with a known botting client")
|
||||
MACRO_CONFIG_STR(SvBannedVersions, sv_banned_versions, 128, "", CFGFLAG_SERVER, "Comma seperated list of banned clients to be kicked on join")
|
||||
MACRO_CONFIG_STR(SvBannedVersions, sv_banned_versions, 128, "", CFGFLAG_SERVER, "Comma separated list of banned clients to be kicked on join")
|
||||
|
||||
// netlimit
|
||||
MACRO_CONFIG_INT(SvNetlimit, sv_netlimit, 0, 0, 10000, CFGFLAG_SERVER, "Netlimit: Maximum amount of traffic a client is allowed to use (in kb/s)")
|
||||
|
|
Loading…
Reference in a new issue