1
0
Fork 0
forked from fte/fteqw

Fixed a few warnings.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2651 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-09-10 18:22:33 +00:00
parent 5a512f2c43
commit 0ae105907d
2 changed files with 9 additions and 12 deletions

View file

@ -5296,7 +5296,6 @@ void PF_infokey (progfuncs_t *prinst, struct globalvars_s *pr_globals)
int e1; int e1;
char *value; char *value;
char *key; char *key;
char ov[256];
e = G_EDICT(prinst, OFS_PARM0); e = G_EDICT(prinst, OFS_PARM0);
e1 = NUM_FOR_EDICT(prinst, e); e1 = NUM_FOR_EDICT(prinst, e);

View file

@ -1908,23 +1908,21 @@ void SV_BeginDownload_f(void)
// MVD hacked junk // MVD hacked junk
if (!strncmp(name, "demonum/", 8)) if (!strncmp(name, "demonum/", 8))
{ {
char *mvdname; char *mvdname = SV_MVDNum(atoi(name+8));
if (ISQ2CLIENT(host_client))
{
Sys_Printf ("Rejected MVD download to %s (Q2 client)\n", mvdname, host_client->name);
ClientReliableWrite_Begin (host_client, svcq2_download, 4);
ClientReliableWrite_Short (host_client, -1);
ClientReliableWrite_Byte (host_client, 0);
return;
}
mvdname = SV_MVDNum(atoi(name+8));
if (!mvdname) if (!mvdname)
{ {
SV_ClientPrintf (host_client, PRINT_HIGH, "%s is an invalid MVD demonum.\n", name+8); SV_ClientPrintf (host_client, PRINT_HIGH, "%s is an invalid MVD demonum.\n", name+8);
Sys_Printf ("%s requested invalid demonum %s\n", host_client->name, name+8); Sys_Printf ("%s requested invalid demonum %s\n", host_client->name, name+8);
} }
else if (ISQ2CLIENT(host_client))
{
Sys_Printf ("Rejected MVD download of %s to %s (Q2 client)\n", mvdname, host_client->name);
ClientReliableWrite_Begin (host_client, svcq2_download, 4);
ClientReliableWrite_Short (host_client, -1);
ClientReliableWrite_Byte (host_client, 0);
return;
}
else else
SV_ClientPrintf (host_client, PRINT_HIGH, "Sending demo %s...\n", mvdname); SV_ClientPrintf (host_client, PRINT_HIGH, "Sending demo %s...\n", mvdname);