sv_main.c:

check sv_minqfversion->string[0] instead of value
sv_user.c:
	white space
This commit is contained in:
Bill Currie 2000-12-14 07:46:17 +00:00
parent a7612bfd0d
commit c3f6aa669a
2 changed files with 3 additions and 4 deletions

View file

@ -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);

View file

@ -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);