Commit graph

50 commits

Author SHA1 Message Date
Bill Currie
eae11661e4 strncat parameter audit. Unfortunatly, strncat is counter-intutite: the n in
strncat is not the maximum length of the destination string, but of the SOURCE
string, thus strncat (dest, src, sizeof (dest)) is incorrect. It should be
strncat (dest, src, sizeof (text) - strlen (dest)). Even then, no terminating
nul will be written if src is too long, but at least it won't crash the stack:)
2000-12-05 16:04:12 +00:00
Zephaniah E. Hull
66e0e31b57 strcat -> strncat
sprintf -> snprintf

AKA, really big buffer overflow security fixes.

More to come, geez we have holes everywhere.
2000-12-05 11:08:30 +00:00
Bill Currie
97f7b9a568 rename quakedef.h to host.h (I should have done this months ago).
NOTE: -{sdl,sgl,3dfx,ggi,wgl,mgl} targets are very likely to be broken
if any file fails to compile, just put #include "host.h" into it
2000-12-05 06:33:44 +00:00
Bill Currie
3bafaa371c don't bother downloading sounds if we are unable to play them. 2000-12-03 01:57:29 +00:00
Bill Currie
1d4c83b5bb put download status in the application name as requested by Mabus. Nifty idea,
why didn't we think of it? :)
2000-11-09 19:31:07 +00:00
Zephaniah E. Hull
13bd5ce012 The init sequence cleanup!
Also broke up client.h into a lot of smaller headers.
Oh, software rendering works again.

And yes, this does hit a hell of a lot of files.
2000-10-29 15:35:24 +00:00
Bill Currie
d295f183ba remove va from commdef.h and fix the consequences 2000-10-21 07:34:56 +00:00
Bill Currie
2682888425 the big cvar value -> int_val audit. seems to work ok 2000-10-17 03:17:42 +00:00
Zephaniah E. Hull
dbda53e93b More tweaking of stuff, fixed a minor bug in the loc stuff, may still
have the crash causer though.
2000-10-07 04:06:08 +00:00
Zephaniah E. Hull
760dfb8541 %l %a %A %h, for say and say_team, not quite finished yet. 2000-10-06 16:30:37 +00:00
Bill Currie
6cfe4a3128 change the client side download rename code to reject ANY new / in the file
name. This means that if maps/foo.bsp is requested, maps/foo.bsp/nasty_server
will be rejected but maps/foo.bsp.gz will be accepted.
2000-09-28 15:35:05 +00:00
Zephaniah E. Hull
d92270d20c Compile fix from WildCode. 2000-09-28 07:38:28 +00:00
Bill Currie
1aa9084aa9 add support for COMPRESSED downloads!!! Of course, both client and server must
both support this. The client tells the server it can support compressed
downloads by setting the z flag in the *cap userinfo. If the server detects
that the client supports compression, and the file to be downloaded is
compressed (more accurately, has the .gz extension), the server sends a special
download packet with a size of -2 (-1 indicates error),, percent of 0, followed
by the new name of the file (eg maps/foo.bsp.gz for maps/foo.bsp). The client
WILL NOT accept a new filename that doesn not match the old name for the length
of the old name. The client also will not accept a new name if there are . or
.. path components. If the client rejects the new name, it prints a warning
message and aborts that download.
2000-09-28 06:11:55 +00:00
Bill Currie
86f87122c0 zlib support (gzipped pack contents). if you have a probelm with gzgets, you
have 3 choices: remove /usr/X11R6/lib/libz.a, --diable-zlib, or fix configure.
I do intend on fixing it myself.
2000-09-27 19:44:26 +00:00
Jeff Teunissen
71b841adeb Cvar audit; These files set cvars improperly, by changing their values
without using Cvar_SetValue ().
2000-09-25 06:36:50 +00:00
Zephaniah E. Hull
210ba16069 First off in gl_draw.c we have some nice cleanup code for the upload
code.

Then we have the completely purge of treating 'unsigned' as a type, it
is NOT a type, it is a TYPE MODIFIER!

Under gcc for x86 it happens to try and do something sane, just treat it
as a unsigned int, but that is EVIL, it is a MODIFIER and if ANYONE adds
code which uses unsigned as a type in itself I /WILL/ harm them!!!
2000-09-22 09:08:08 +00:00
Anton E. Gavrilov
66a91044bb cl_parsesay --- parse $\ (fake); $[, $]; $R $G $B $Y (ocrana leds);
Note that this cvar is different from QWF's cl_parsesay.
cl_nofake --- unhide fake messages from other players
2000-08-22 18:54:01 +00:00
Anton E. Gavrilov
bfcee99717 cl_deadbodyfilter and cl_gibfilter should work now. 2000-08-02 23:00:39 +00:00
Anton E. Gavrilov
bbb594019b Change a bunch of Sys_Error()'s to Host_EndGame() 2000-07-31 12:54:11 +00:00
Forest Hale
b6484d3f66 Fix for long standing baseline bug (OUCH!), should fix invis problems... 2000-07-04 00:49:01 +00:00
Forest Hale
fff8ccb2c3 This should stomp the last of the invisible entity bugs. 2000-07-03 00:34:20 +00:00
Forest Hale
968efda8ed Fixed up Endy's EXTEND support - everything should work now. 2000-07-01 04:56:13 +00:00
Joseph Carter
d182c83842 When you change gamedirs, cachepics (such as your conback) will be reloaded
in GL..  Please test this extensively, I _think_ the tempfile loader is
smart enough to handle what I'm doing properly.  If it's not, we'll have
to fix a slight memory leak.
2000-06-23 18:36:59 +00:00
Bill Currie
ee3f88d57d add format checking to our printf style functions and correct the consequences
of this.
2000-06-17 12:27:59 +00:00
Joseph Carter
76d586a081 a little debugging code for the intermission weirdness 2000-06-03 18:56:52 +00:00
Loring Holden
5b094c2aa1 Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
Bill Currie
0bd4043ca4 revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
Loring Holden
8005c0d25e I got this tree to build under Solaris, AIX, IRIX, & Linux.
In order to do so I:
* included strings.h and string.h in many files so various functions would be
defined
* Fixed model_t collision problem in cl_main.c (Solaris)
* com.c - corrected WORDS_BIGENDIAN spelling
* gl_draw.c - Use HAVE_GL_COLOR_INDEX8_EXT to avoid referencing
GL_COLOR_INDEX8_EXT when it isn't available
* net_udp.c - use socklen_t to appease AIX
2000-05-25 06:14:56 +00:00
Joseph Carter
08ae0f5305 New cvar: gl_colorlights, default 1 for GL_RBGA lightmaps, set to 0 for
GL_LUMINANCE lightmaps.  This is a CVAR_ROM.
2000-05-25 04:16:41 +00:00
Jeff Teunissen
a45cefb3e0 Cvar fixups... 2000-05-24 02:07:53 +00:00
Bill Currie
e98edd5f5f revert back to using f* for file io. I hope this fixes the catapult, but I wouldn't be suprised if it doesn't. 2000-05-23 22:43:36 +00:00
Bill Currie
fd35f176ba re-enable autoexec.cfg running on gamedir (defaults to off. need to put set cl_autexec either in quakeforge.conf or on the command line) 2000-05-23 11:29:15 +00:00
Joseph Carter
3d59dfed98 Before I can fix the (MANY!) problems with newtree, I have to fix the
little problem of mixed QFile and FILE.  Since we're not using ZLib in
this tree, QFile makes no real sense.  That didn't fix the real problem
I am having though.
2000-05-22 21:16:22 +00:00
Bill Currie
2d640a28ff forgot to bring these fixes over from OT 2000-05-22 12:43:20 +00:00
Joseph Carter
7b1b82a16b C done 2000-05-22 06:46:35 +00:00
Anton E. Gavrilov
aec65c68a2 Execution of autoexec.cfg on gamedir change is temporarily disabled 2000-05-22 05:00:44 +00:00
Bill Currie
af032b8d55 port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet)
split up the headerfiles and such. common.[ch] and qwsvdef.h no longer exist. More work still needs to be done (esp for windows) but this should be a major improvement.
2000-05-21 08:24:45 +00:00
Bill Currie
832af13c12 all files now include config.h 2000-05-17 10:03:19 +00:00
Brian Koropoff
55fbc12c3d Replaced the runtime endien check with #ifndef WORDS_BIGENDIEN. It may need some more work. Also, it will now exec autoexec.cfg when you connect to a server. 2000-05-16 20:24:26 +00:00
Dan Olson
1d26c02826 Cvar merge... segfault problems... also unknown problems in vid_svga.c 2000-05-16 04:47:41 +00:00
Yan Sweitzer
1efb92f899 sprintf -> snprintf
vsprintf -> vsnprintf
2000-05-15 08:59:12 +00:00
Bill Currie
b6127df548 clean up the parse code so that only NewTranslation is duplicated, not the whole module. 2000-05-14 23:04:47 +00:00
Joseph Carter
6e37b33f44 sys.h is no longer part of quakedef.h
sys_wina.S is now sys_x86.S (same as now gone sys_dosa.S, used on Linux too)

Updated Linux Makefile to reflect above

Linux translation table thingy now compiles properly
2000-05-14 16:56:28 +00:00
Bill Currie
0cce8322b1 GLQUAKE has been erradicated from the .c files (unfortunatly not the .h files) 2000-05-13 09:23:01 +00:00
Bill Currie
aec72be85e /SW/ clients almost build (don't link). gl_flashblend needs to be hacked in to allow them to link 2000-05-13 00:27:23 +00:00
Bill Currie
3f0635e210 remove sys_win.c.client. if it's still needed, it's in cvs
remove some GLQUAKEs from tho others. no client builds atm :(, but then neither does the server :/
2000-05-12 23:45:09 +00:00
Joseph Carter
38f9b705b9 Whee! Every source file just got edited. Added the QF-style GPL header
to the top.  What I didn't add was descriptions.  Someone else wanna take
those on?
2000-05-11 16:03:29 +00:00
Bill Currie
ee16312bb8 clien (svga) compiles, but doesn't link yet (so clients are disabled for now) 2000-05-11 13:15:59 +00:00
Dan Olson
b139acafc2 ^M cleanup, and qw-server compiles with -Werror 2000-05-10 20:33:16 +00:00
Joseph Carter
d859383680 Initial revision 2000-05-10 11:29:38 +00:00