mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-04-19 13:02:32 +00:00
sv_main.c:
check sv_minqfversion->string[0] instead of value sv_user.c: white space
This commit is contained in:
parent
a7612bfd0d
commit
c3f6aa669a
2 changed files with 3 additions and 4 deletions
|
@ -684,7 +684,7 @@ SVC_DirectConnect (void)
|
|||
}
|
||||
|
||||
s = Info_ValueForKey (userinfo, "*qf_version");
|
||||
if ((!s[0]) || sv_minqfversion->value) { // kick old clients?
|
||||
if ((!s[0]) || sv_minqfversion->string[0]) { // kick old clients?
|
||||
if (ver_compare (s, sv_minqfversion->string) < 0) {
|
||||
Con_Printf ("%s: Version %s is less than minimum version %s.\n",
|
||||
NET_AdrToString (net_from), s, sv_minqfversion->string);
|
||||
|
|
|
@ -1158,9 +1158,8 @@ SV_SetInfo_f (void)
|
|||
// host_client->sendinfo = true;
|
||||
|
||||
if (strequal
|
||||
(Info_ValueForKey (host_client->userinfo, Cmd_Argv (1)), oldval)) return; // key
|
||||
// hasn't
|
||||
// changed
|
||||
(Info_ValueForKey (host_client->userinfo, Cmd_Argv (1)), oldval))
|
||||
return; // key hasn't changed
|
||||
|
||||
// process any changed values
|
||||
SV_ExtractFromUserinfo (host_client);
|
||||
|
|
Loading…
Reference in a new issue