Removed bogus checks on unused variable.

This commit is contained in:
Marcus Sundberg 2000-01-18 22:41:06 +00:00
parent c363d72c3c
commit 7f6a114dd9

View file

@ -582,7 +582,6 @@ Sent by server when serverinfo changes
void CL_FullServerinfo_f (void) void CL_FullServerinfo_f (void)
{ {
char *p; char *p;
float v;
if (Cmd_Argc() != 2) if (Cmd_Argc() != 2)
{ {
@ -593,18 +592,14 @@ void CL_FullServerinfo_f (void)
strcpy (cl.serverinfo, Cmd_Argv(1)); strcpy (cl.serverinfo, Cmd_Argv(1));
if ((p = Info_ValueForKey(cl.serverinfo, "*qf_version")) && *p) { if ((p = Info_ValueForKey(cl.serverinfo, "*qf_version")) && *p) {
if (v) {
if (!server_version) if (!server_version)
Con_Printf("QuakeForge Version %s Server\n", p); Con_Printf("QuakeForge Version %s Server\n", p);
server_version = strdup(p); server_version = strdup(p);
}
} else if ((p = Info_ValueForKey(cl.serverinfo, "*version")) && *p) { } else if ((p = Info_ValueForKey(cl.serverinfo, "*version")) && *p) {
if (v) {
if (!server_version) if (!server_version)
Con_Printf("Version %s Server\n", p); Con_Printf("Version %s Server\n", p);
server_version = strdup(p); server_version = strdup(p);
} }
}
} }
/* /*