dropped CVAR_SERVERINFO flag from the cmdline cvar: sending cmdline upon

CCREQ_RULE_INFO is evil...
while I was there, did some whitespace clean-up in common.c.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@568 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2011-12-28 23:40:27 +00:00
parent e2a17c9bcf
commit 338da9a4c8
1 changed files with 164 additions and 165 deletions

View File

@ -29,7 +29,7 @@ static char argvdummy[] = " ";
int safemode;
cvar_t registered = {"registered","0",CVAR_ROM};
cvar_t cmdline = {"cmdline","",CVAR_ROM|CVAR_SERVERINFO}; /* sending cmdline upon CCREQ_RULE_INFO is evil... */
cvar_t cmdline = {"cmdline","",CVAR_ROM/*|CVAR_SERVERINFO*/}; /* sending cmdline upon CCREQ_RULE_INFO is evil */
qboolean com_modified; // set true if using non-id files
@ -47,35 +47,34 @@ char com_token[1024];
int com_argc;
char **com_argv;
#define CMDLINE_LENGTH 256 //johnfitz -- mirrored in cmd.c
#define CMDLINE_LENGTH 256 /* johnfitz -- mirrored in cmd.c */
char com_cmdline[CMDLINE_LENGTH];
qboolean standard_quake = true, rogue, hipnotic;
// this graphic needs to be in the pak file to use registered features
unsigned short pop[] =
static unsigned short pop[] =
{
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000
,0x0000,0x0000,0x6600,0x0000,0x0000,0x0000,0x6600,0x0000
,0x0000,0x0066,0x0000,0x0000,0x0000,0x0000,0x0067,0x0000
,0x0000,0x6665,0x0000,0x0000,0x0000,0x0000,0x0065,0x6600
,0x0063,0x6561,0x0000,0x0000,0x0000,0x0000,0x0061,0x6563
,0x0064,0x6561,0x0000,0x0000,0x0000,0x0000,0x0061,0x6564
,0x0064,0x6564,0x0000,0x6469,0x6969,0x6400,0x0064,0x6564
,0x0063,0x6568,0x6200,0x0064,0x6864,0x0000,0x6268,0x6563
,0x0000,0x6567,0x6963,0x0064,0x6764,0x0063,0x6967,0x6500
,0x0000,0x6266,0x6769,0x6a68,0x6768,0x6a69,0x6766,0x6200
,0x0000,0x0062,0x6566,0x6666,0x6666,0x6666,0x6562,0x0000
,0x0000,0x0000,0x0062,0x6364,0x6664,0x6362,0x0000,0x0000
,0x0000,0x0000,0x0000,0x0062,0x6662,0x0000,0x0000,0x0000
,0x0000,0x0000,0x0000,0x0061,0x6661,0x0000,0x0000,0x0000
,0x0000,0x0000,0x0000,0x0000,0x6500,0x0000,0x0000,0x0000
,0x0000,0x0000,0x0000,0x0000,0x6400,0x0000,0x0000,0x0000
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x6600,0x0000,0x0000,0x0000,0x6600,0x0000,
0x0000,0x0066,0x0000,0x0000,0x0000,0x0000,0x0067,0x0000,
0x0000,0x6665,0x0000,0x0000,0x0000,0x0000,0x0065,0x6600,
0x0063,0x6561,0x0000,0x0000,0x0000,0x0000,0x0061,0x6563,
0x0064,0x6561,0x0000,0x0000,0x0000,0x0000,0x0061,0x6564,
0x0064,0x6564,0x0000,0x6469,0x6969,0x6400,0x0064,0x6564,
0x0063,0x6568,0x6200,0x0064,0x6864,0x0000,0x6268,0x6563,
0x0000,0x6567,0x6963,0x0064,0x6764,0x0063,0x6967,0x6500,
0x0000,0x6266,0x6769,0x6a68,0x6768,0x6a69,0x6766,0x6200,
0x0000,0x0062,0x6566,0x6666,0x6666,0x6666,0x6562,0x0000,
0x0000,0x0000,0x0062,0x6364,0x6664,0x6362,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0062,0x6662,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0061,0x6661,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x6500,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x6400,0x0000,0x0000,0x0000
};
/*
All of Quake's data access is through a hierchal file system, but the contents
of the file system can be transparently merged from several sources.
@ -249,7 +248,10 @@ char *Q_strrchr(const char *s, char c)
int len = Q_strlen(s);
s += len;
while (len--)
if (*--s == c) return (char *)s;
{
if (*--s == c)
return (char *)s;
}
return NULL;
}
@ -604,7 +606,6 @@ void MSG_WriteFloat (sizebuf_t *sb, float f)
int l;
} dat;
dat.f = f;
dat.l = LittleLong (dat.l);
@ -814,7 +815,6 @@ float MSG_ReadAngle16 (void)
//johnfitz
//===========================================================================
void SZ_Alloc (sizebuf_t *buf, int startsize)
@ -1519,8 +1519,7 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
searchpath_t *search;
char netpath[MAX_OSPATH];
pack_t *pak;
int i;
int findtime;
int i, findtime;
if (file && handle)
Sys_Error ("COM_FindFile: both handle and file set");