Commit graph

64 commits

Author SHA1 Message Date
Bill Currie
435c588e37 function header audit. 2001-02-09 02:53:09 +00:00
Bill Currie
b10b829260 amputate an 8M cacerous growth from the memory footprint of the clients 2001-02-08 19:24:27 +00:00
Bill Currie
c2194db299 make a private copy of the map name while doing maplist. Fixes the mangled
map names in directories with lots of maps.
2001-02-07 19:36:55 +00:00
Ragnvald Maartmann-Moe IV
800ee05584 More whitespace than you can shake a shambler at. 2001-02-07 05:45:59 +00:00
Bill Currie
c6e087015c command docs patch from Misty-chan because his access hasn't completely come
through yet.
2001-02-06 02:56:14 +00:00
Ragnvald Maartmann-Moe IV
3affa48786 Whitespace, and a very minor tweak to dynamic texture generation. 2001-01-31 07:52:28 +00:00
Bill Currie
f0fc1368cf remove the non-hashtable lookup code from _COM_FOpenFile. While it seemed the
linear search was just slightly faster even for mega2k (~0.3s / 22.5) this is
probably partly due to the cost of initializing the hash tables in the first
place and thus gains might be noticed on subsequent map changes. Also, the
new hash code is much simpler and easier to read/maintain. Enough of a boon
right there :)
2001-01-30 06:54:02 +00:00
Bill Currie
f0c0dd28bc pak files now use hash tables for searching. Doesn't seem to be much of a gain
for bare qw, but might help with tf (my tf setup is borked @work, so I can't
check for certain until later). However, if nothing else, it tidies up the code
a bit.
2001-01-29 19:41:54 +00:00
Bill Currie
1e270eb552 make fs_skinbase default to fs_basegame when using newstyle 2001-01-20 04:56:02 +00:00
Bill Currie
e365e174a7 d'oh, forgot to remove the == 0 2001-01-19 04:00:02 +00:00
Bill Currie
186bec3342 remove the hardcoding of qw from all but the default server gamedir. This
should take care of skin downloads when using --with-newstyle
2001-01-19 03:36:08 +00:00
Bill Currie
45c62d5923 add force_centerview command to x11 targets 2001-01-18 22:16:43 +00:00
Bill Currie
bbac14a7d5 commands now sport descriptions (currently "No Description", but then I'm a
lazy bastard:)
2001-01-15 17:07:06 +00:00
Bill Currie
7634d8f3f7 fix for solaris 2001-01-11 07:41:06 +00:00
Bill Currie
3727753fde fix a possible oob condition 2001-01-08 07:31:40 +00:00
Bill Currie
451afbd488 various printf, Sys_Printf, Con_Printf cleanups. Con_Printf now ALWAYS prints
to consol/logfile whether output is recirected or not. Also, Con_Printf will
not print the time stamp if the last char of the previous print wasn't \n
2001-01-05 19:52:50 +00:00
Bill Currie
ccba39666b #include audit 2000-12-30 02:16:36 +00:00
Jeff Teunissen
2fdeaf7aaa whitespace. 2000-12-28 06:49:26 +00:00
Bill Currie
54b0dc47ed remove -basedir again 2000-12-11 17:21:05 +00:00
Forest Hale
954accc1c4 must... have... basedir... to... play... 2000-12-11 14:47:33 +00:00
Bill Currie
0bd4b8d288 include/tga.h source/tga.c:
new function WriteTGAfile. Also, put in the tga header structure.
	NOTE: this is currently broken for non gcc ocmilers. you will get a
	#error message.
include/quakefs.h source/quakefs.c:
	new function COM_WriteBuffers. Like COM_WriteFile, but scatter/gather
	style.
source/gl_screen.c source/screen.c:
	misc cleanups. differences are getting fewer. should be mostly
	mergable soon (minus truly sw/gl specific code).
2000-12-11 06:38:58 +00:00
Bill Currie
a4f03b4c12 move WritePCXfile to pcx.c, move the screenshot filname creation code to
COM_NextFilename in quakefs.c and fix up some remote screenshot snafus
2000-12-11 03:30:32 +00:00
Jeff Teunissen
54e2a4d9d3 Okay, the big whitespace reformat. There is some silliness (case
statements, variable declarations), but all in all it's not bad.
2000-12-08 06:51:37 +00:00
Bill Currie
b34504057c char *buf; strn.* (..., sizeof(buf) ...) doesn't work so well :/ 2000-12-05 16:41:28 +00:00
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
42b3a83bd9 move host_parms from quakefs.c to somewhere a little more sensibe. 2000-11-29 23:26:45 +00:00
Forest Hale
8b04d3e8e7 taniwha removed host_parms, which was necessary to compile... 2000-11-28 11:25:06 +00:00
Bill Currie
d74ab2865a basedir is nolonger mentioned anywhere in the source. It's gone, gone, gone,
gone (and it better stay gone).
2000-11-27 23:03:01 +00:00
Forest Hale
9ce5fc95df quakeparms_t audit.
changed all parms references to directly access host_parms to improve readability, and removed unused basedir references. (all remaining fields in quakeparms_t deserve to be there)
2000-11-27 13:17:48 +00:00
Forest Hale
b2fa746f90 redid the way -basedir works, implemented it in the filesystem init code, and it works now (the previous windoze support was broken because the basedir parm was not being used anyway) 2000-11-27 10:55:27 +00:00
Forest Hale
0b120aecbc __const was not defined on win32 2000-11-19 23:47:56 +00:00
Zephaniah E. Hull
8f1ff1bddc A few compile fixes.
And of course the very slight rework of the input system, at least
in_x11 gets shifts right for different keymaps.

Oh, by the way, ALL other input targets are broken in a very 'will not
compile' way.
2000-11-17 21:23:26 +00:00
Bill Currie
ef28d1b19f fix a bug where maplist would seg on an empty map. d'oh :/ 2000-11-02 21:14:43 +00:00
Bill Currie
2fc438ca13 hopefully fix Fragman's compilation problems on Mandrake 6.1 2000-11-01 06:31:29 +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
Jeff Teunissen
8138b9c4e8 Fix bug in -game parsing 2000-10-11 09:50:13 +00:00
Bill Currie
f5b74e900c silence COM_FOpenFile when the file can't be opened unless developer is set.
It is the caller's responsibility to report failure.
2000-10-10 23:19:53 +00:00
Jeff Teunissen
dd7333a2da cd_linux.c: whitespace.
quakefs.c: -game n[,n ...] support.
snd_oss.c: Compilation support for OSS on BSD systems.
2000-10-10 21:45:07 +00:00
Bill Currie
4962c3bf0b port over nuq's modified filesystem init code. no longer creates dirs when
fs_userpath is ".".
2000-10-10 19:57:01 +00:00
Bill Currie
015c3ace6c fix for 40 column output. forgot that 10*4=40 and \n after 40 chars doesn't do
what was wanted.
2000-10-02 17:50:02 +00:00
Bill Currie
a72953290b Pretty print the maplist. MUCH nicer output (sorted columns) 2000-10-02 17:24:18 +00:00
Bill Currie
677b7de94d %s/HAS_ZLIB/HAVE_ZLIB/g 2000-09-30 05:56:00 +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
Zephaniah E. Hull
750457b368 Clean up after myself in the Z_* purge.. 2000-06-29 23:30:21 +00:00
Zephaniah E. Hull
29ef95a9b5 The end of Z_*!!
This after the Z_* stuff hit my profiling list as a top user..
2000-06-29 05:46:15 +00:00
Loring Holden
63dccb8968 in_x11.c - always define in_dgamouse, so it can be false when there is no DGA
quakefs.c - include strings.h for strcasecmp() under AIX
2000-06-01 03:37:48 +00:00
Joseph Carter
efb2d99e22 some oldtree cruft for rogue/hipnotic removed (we'll support them in a
very different way than did Id Software did later on, it'll be a major
improvement, that's for sure..)

fs_basegame Cvar created, defaults to whatever you selected in config.h,
most likely id1.
2000-05-29 12:45:05 +00:00