Commit graph

39 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
Ragnvald Maartmann-Moe IV
800ee05584 More whitespace than you can shake a shambler at. 2001-02-07 05:45:59 +00:00
Bill Currie
733d55603c partial fixes for cross-compiling using mingw32. MIGHT break normal builds 2001-01-24 00:06:58 +00:00
Dabb
92b7f5f8f0 Close packetlog file on exit... 2001-01-16 18:03:50 +00:00
Bill Currie
76a11bd74a cvar doc patches from Misty 2000-12-31 04:46:04 +00:00
Dabb
20f0e102ce More win32 cleanups:
"Unused" code for startup dialog now has #ifdef SPLASH_SCREEN.
Removed extra variables which were not used.
2000-12-20 18:18:04 +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
Dabb
0dd34a3e20 Added include host.h 2000-12-05 20:29:15 +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
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
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
Bill Currie
979a5b7e47 fix LordHavoc's spelling error. 2000-11-21 06:49:37 +00:00
Forest Hale
2231b97572 added back -basedir in a different place (win32 only) 2000-11-19 23:34:09 +00:00
Bill Currie
3a9eba4f03 ok, server now runs without segging on a cvar (with simple testing, anyway.
needs fuller bashing).
2000-10-31 05:24:34 +00:00
Jeff Teunissen
17ea696c0d One of the biggest things keeping -mem/-heapsize numbers up is the video
memory in software mode. This is now taken care of, the memory is now
grabbed using calloc.

On Unix systems and all systems using SDL, the default video memory is now
8MB. This should now be enough for almost everybody, unless you have some
truly huge maps and boatloads of sounds. The minimum memory allowable is
now down to 4MB, but complex maps and/or models can cause the game to quit
-- not like this wasn't a problem already with the old 5.3MB lower limit,
but there it is.
2000-10-18 10:16:11 +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
Dabb
1f4f2e1c36 Add cvar sys_nostdout to WIN32 clients too. Note: sets stdout DISABLED (1) by default. 2000-08-17 15:44:17 +00:00
Dabb
576a32782a Fix nostdout bug ... 2000-08-17 13:38:57 +00:00
Dabb
e41b8e7faa Removed extra Sys_Printf function (its in sys_win.c now) 2000-08-17 12:44:42 +00:00
Forest Hale
cbd8135196 Minor win32 cleanup, now compiles in MSVC 4. 2000-06-26 12:27:03 +00:00
Anton E. Gavrilov
4acb725dec Remove all remaining references to cachedir. 2000-05-24 10:44:29 +00:00
Bill Currie
d7f0ffef60 forgot to rename some SendKeyEvents functions 2000-05-23 09:52:17 +00:00
Joseph Carter
7b1b82a16b C done 2000-05-22 06:46:35 +00:00
Marcus Sundberg
126ce0c067 Fixed includes. 2000-05-21 18:40:10 +00:00
Danne
6ed6543fef Header file addons & Q_atoi -> atoi changes for WIN32 2000-05-21 11:28:37 +00:00
Marcus Sundberg
f1edd57186 Move Sys_Init after Cvar_Init. 2000-05-20 22:13:45 +00:00
Jeff Teunissen
7647fdd484 Configure.in: minor changes.
include/* -- #defines so that you can #include them more than once.
2000-05-17 18:28:13 +00:00
Bill Currie
832af13c12 all files now include config.h 2000-05-17 10:03:19 +00:00
Yan Sweitzer
1efb92f899 sprintf -> snprintf
vsprintf -> vsnprintf
2000-05-15 08:59:12 +00:00
Anton E. Gavrilov
7a21e4fbd3 Moved Sys_DoubleTime() to sys_win.c, added timeBeginPeriod( 1 ) to sv_sys_win.c -> Sys_Init(). 2000-05-14 20:34:28 +00:00
Danne
696a534fa6 Added include sys.h 2000-05-14 18:11:51 +00:00
Joseph Carter
01eceda77e Removed the string QuakeWorld from places to help avoid stepping on Id's
tues (not that they care to be honest..)  VERSION is gone, use the strings
QW_VERSION and QF_VERSION.  I'd like QW_VERSION to go away but I don't
think we're ready to screw with that just yet.  Note, those are strings,
not floats.

Also defined QSG_STANDARD and set all the star keys the current qw-server
does.

qw-* -> qf-*, unlike the main tree this one is not planned to be just QW.
2000-05-13 20:51:02 +00:00
James Brown
7630423d40 Done a pathetic attempt at cleaning some code up. :P 2000-05-13 10:32:45 +00:00
Yan Sweitzer
670a264470 putch needs <conio.h> -- Yanster 2000-05-13 05:32:48 +00:00
Thad Ward
d8a45153e0 commented out some "unreferenced local variables" 2000-05-13 04:44:12 +00:00
Anton E. Gavrilov
bb8b80ea0a sys_win.c: win32-specific stuff, common between client and server; moved Sys_mkdir() here
cl_sys_win.c: win32-specific client stuff.  Added qboolean is_server = false; renamed filelength() to wfilelength()
sv_sys_win.c: win32-specific server stuff.  Added qboolean is_server = true;
2000-05-12 03:44:21 +00:00