mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-26 05:40:49 +00:00
Removed bogus checks on unused variable.
This commit is contained in:
parent
c363d72c3c
commit
7f6a114dd9
1 changed files with 6 additions and 11 deletions
|
@ -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,17 +592,13 @@ 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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue