added a macro for specifying all the cvar properties. This will simplify stuff for Q2.

Also added trace_endcontents and trace_surfaceflags.
File system (still too selectivly) reads gz files.
Fixed a buffer overflow in the http client.
Made server downloads decompress zipped files to a temporary file. This should make it download them faster.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1943 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-02-11 02:09:43 +00:00
parent bc1f25a11b
commit 6430b9b214
57 changed files with 931 additions and 658 deletions

View file

@ -185,7 +185,7 @@ static size_t strlcat (char *dst, const char *src, size_t size)
TP_CVAR(loc_name_suit, "suit")
//create the globals for all the TP cvars.
#define TP_CVAR(name,def) cvar_t name = {#name, def}
#define TP_CVAR(name,def) cvar_t name = SCVAR(#name, def)
TP_CVARS;
#undef TP_CVAR
@ -3215,14 +3215,18 @@ void CL_Say (qboolean team, char *extra)
{ //
s++;
*d++ = '^';
*d++ = '1';
*d++ = 's';
*d++ = '^';
*d++ = '&';
*d++ = '4';
*d++ = '0';
if (*s == 'z')
*d++ = 'x';
else
*d++ = 139;
*d++ = '^';
*d++ = '1';
*d++ = 'r';
d--;
while(*s != '\xff')
@ -3237,6 +3241,7 @@ void CL_Say (qboolean team, char *extra)
else
*d = *s;
}
*d++ = '\n';
*d = '\0';
{