Commit graph

752 commits

Author SHA1 Message Date
Bill Currie
976e1dcdda apply slist related patches from snax 2000-05-06 11:01:16 +00:00
Bill Currie
0599bb29a7 enable gcc format checking to our printf style functions and clean up the repercussions (suprisingly few). 2000-05-06 06:28:17 +00:00
Loring Holden
03391673eb Server_List_Load() - make c an int instead of a char so it can be compared
against EOF without warnings on certain platforms
2000-05-06 00:51:13 +00:00
Anton E. Gavrilov
3b1140ac06 Changed R_FireColor() to R_FireColor_f(void) --- the latter form is required to compile with MSVC 2000-05-05 15:53:32 +00:00
Anton E. Gavrilov
1656f76b88 Added cl_rocketlight, cl_muzzleflash cvars. 2000-05-05 14:47:03 +00:00
Joseph Carter
948999098b default the interpolation cvars to 0 for now. The interpolation code is
not finished yet and what's done doesn't work right.  The reason for this
seems to be entity data that's getting trashed somehow.  taniwha and I
will investigate this later.
2000-05-05 12:06:58 +00:00
Bill Currie
37ba019874 add r_firecolor command. sets the color of the rocket trail fire and dlight.
Also, change dlights and fires so the color can be set with a pointer assignment (optional).
2000-05-05 11:26:13 +00:00
Joseph Carter
26b21b6b08 beginnings of interpolation - not yet working properly. Will remove if I
don't fix it tonight.
2000-05-05 08:56:55 +00:00
Joseph Carter
9c567e579e Changes that don't really affect anything 2000-05-05 08:55:49 +00:00
Joseph Carter
bbbd94d707 oops 2000-05-05 01:59:37 +00:00
Joseph Carter
93c098eb87 Put standard GPL thingy on these things 2000-05-05 01:55:55 +00:00
Bill Currie
011ec8bd95 speed up pak seaching when .gz endings are supported. this still needs to be re-coded as doing a linear search is just borked. I'm not sure if I should sort the file entries in memory and use bsearch (probly easier) or implement a hash table for each pak file, but something needs to be done. At least HAS_ZLIB no longer doubles search time :) 2000-05-05 01:24:05 +00:00
Dan Olson
dd31ad3131 Just some cleanup 2000-05-04 23:22:02 +00:00
Nelson Rush
6ba89503e5 fixed a crash in the server listing code thanks to help from dabb and jam 2000-05-04 16:59:44 +00:00
Bill Currie
bed83b87e2 fixed a really nasty, ancient (it's chitin was turning grey), subtle bug that caused rogue to crash when firing the multi rocket near the lightning pentagram in the Cave of Death. "Though shalt not re-use a loop variable inside a loop".
Also, bump up MAX_BEAMS and MAX_EXPLOSIONS
2000-05-04 11:50:23 +00:00
Dan Olson
4cae141a9c Umm... someone else that was committing this patch forgot to add these... :) 2000-05-04 01:01:57 +00:00
Dan Olson
84e95dd1e6 snax's server list patches. Credit given in AUTHORS 2000-05-04 00:58:26 +00:00
Dan Olson
b0c37054dc Fixes a segfault when TragicDeath is called 2000-05-03 21:32:23 +00:00
Anton E. Gavrilov
2e596668ba Some changes to scoreboard (single player support). No more Sbar_SoloScoreboard() 2000-05-03 19:01:19 +00:00
Bill Currie
a32eb9e1b8 common/cl_input.c:
fix what looks like a bug. if (ms>250) ms=100; ???
common/cl_main.c common/cvars.h qw_client/cl_parse.c:
	put running autoexec.cfg back in, BUT now controlled by a cvar (cl_autoexec).
2000-05-03 11:34:57 +00:00
Bill Currie
a05d712277 apply the "final" borland c patches from our Jukka Sorjonen 2000-05-03 05:12:18 +00:00
Bill Currie
618e8a90d4 add another alias for the num lock key 2000-05-02 13:05:48 +00:00
Bill Currie
f0ece14dce put that && vid_fullscreen->value where it belongs :) 2000-05-02 12:03:44 +00:00
Bill Currie
5f12390209 remove an unwanted && vid_fullscreen->value 2000-05-02 12:01:55 +00:00
Bill Currie
4dcba0d9e0 qw_server/sv_main.c:
added quakeforge.conf handling
common/gl_draw.c:
	just a comment
2000-05-02 07:12:04 +00:00
Dan Olson
17aa6a3a0d removal of useless "grab" and "ungrab" commands 2000-05-01 23:49:51 +00:00
Bill Currie
cf00f21f99 I'm suprised I didn't lose control of my computer. turns out I forgot to copy the keyboard grabbing code from glx to x11. 2000-05-01 23:49:17 +00:00
Bill Currie
b50e9a1d11 prevent vidmodes ever being null if hasvidmode is 1 2000-05-01 23:40:24 +00:00
Dan Olson
2fa525f544 let's see....
cmd.c - added "grab" and "ungrab" commands for -nodga mouse grabbing and
	ungrabbing (go figure)
cvar.c - Made descriptions carry over if the cvar was set on the command line
in_sun.c - removed a stupid comment
vid_* - added "vid_fullscreen", off by default.  You have to set at the command
	line or in quake.conf (or whatever it is) for it to take effect.
2000-05-01 22:53:16 +00:00
Loring Holden
aeb8811ad5 Include unistd.h if available so getuid() is defined 2000-05-01 15:29:31 +00:00
Bill Currie
98aeb39780 renamed _windowed_mouse to in_grab
Also, FULL SCREEN QUAKE IS HERE!!! unfortunatly, so is full screen quake :/. ie if you have the vidmode extentions, you don't have a choice at the moment. Still, that's just a matter of cvars :), but not tonight.
2000-05-01 13:08:01 +00:00
Bill Currie
a7e5fd3a16 oops, accidently left a test disablement of DGA in. also forgot some of the DGA/VIDMODE split. 2000-05-01 11:08:00 +00:00
Bill Currie
7da23db202 separate out checks for VIDMODE and DGA in preparation for the Great Vidmode Hack :) 2000-05-01 10:36:00 +00:00
Bill Currie
ecba3b9f42 put #include <limits.h> in for other OSes that don't automaticly include it in one of the other headers. 2000-05-01 08:57:11 +00:00
Bill Currie
94c850b14a VID_SetPalette is required for my g200 (this might have to be cvar'ed if it affects anybody else adversly), and doesn't cause any problems, so I've removed it's experimental status. Also removed some commented out experimental code (well, non that disabled dga). 2000-05-01 08:28:27 +00:00
Bill Currie
90cab60e05 rename vid_nt_gl.c to vid_wgl.c and touch up the windows build stuff to reflect the change. 2000-04-30 22:44:06 +00:00
Bill Currie
4d551f0f51 rename common/gl_vidnt.c -> common/vid_nt_gl.c, common/gl_vidglx.c -> common/vid_glx.c and common/gl_vidlinux_3dfx.c -> common/vid_3dfxsvga.c and touch up the relevant files to reflect the name change.
I got sick of the inconsistency in the vid files.
2000-04-30 22:27:58 +00:00
Dan Olson
6b385b7af8 Cvar cleanup and description additions 2000-04-30 21:23:37 +00:00
Joseph Carter
0aa6a37ad2 mitch wanted the FPS counter to move to upper right of the screen. Not a
bad idea, here it is..
2000-04-30 20:14:49 +00:00
Bill Currie
85254360f4 fix a really nasty bug where downloads were going to the wrong place. there may be more fixes needed so qf copes with the new fs_basepath, and esp ~. 2000-04-30 10:50:24 +00:00
Joseph Carter
2607f7e1ac I'd been meaning to do this for awhile but thought I was the only one who
cared.  fov > 90 in software and your gun is never drawn.  No more, now
your gun will be drawn unless you esplicitly turn it off.
2000-04-30 06:57:39 +00:00
Joseph Carter
126461f4ab Some cvar cleanup 2000-04-30 03:48:09 +00:00
Dan Olson
e8527094b4 Made gl_fires and gl_particles CVAR_ARCHIVE 2000-04-30 03:26:29 +00:00
Joseph Carter
1e6abc2b65 cheap hack of a -nodga - this is ESSENTIAL for debugging! 2000-04-29 19:53:47 +00:00
Bill Currie
145475d624 apply svgalib input shutdown bugfix patch from ds/XoXus/David Symonds.
Thanks, man!
2000-04-29 11:57:13 +00:00
Thad Ward
8cefba82e2 removed the #ifdef GLOBAL_CFG_FILE from host.c that someone put in, and added
a #define GLOBAL_CFG_FILE to win32/config.h
2000-04-29 05:49:07 +00:00
Loring Holden
a95091b3c2 Changes to compile on systems w/out DGA support 2000-04-29 05:43:05 +00:00
Joseph Carter
15488dd27e cleaned up the DGA stuff a little 2000-04-29 02:41:54 +00:00
Bill Currie
a3c55ff7f1 completly disable debug output for command execution. hurts fps too much 2000-04-29 02:34:56 +00:00
Joseph Carter
2d6b0867e7 Loring is gonna kill me because I paid no attention to systems without DGA
here..  I'll fix it later if you don't first.
2000-04-29 00:32:41 +00:00
Loring Holden
d2bede4383 Cast isspace() parameter to int in order to avoid error under Irix 2000-04-28 21:14:52 +00:00
Loring Holden
45ca17ab62 Only define hasdga if compiled w/ DGA (#ifdef HAS_DGA), so that we avoid
defined but not used error
2000-04-28 21:14:13 +00:00
Joseph Carter
d01388261c Undid all the disabling of DGA. All of the sudden it works just fine. It
begs the question: What the HELL was wrong with it before and who fixed it
without telling me?!  =D
2000-04-28 20:37:25 +00:00
Tony Tyson
3e10387288 Changed crosshairalpha to gl_crosshairalpha and made it floating point.
(1.0 = opaque, 0.0 = clear).
2000-04-28 04:43:21 +00:00
Tony Tyson
ae2ab25a34 Added cvar "crosshairalpha" for crosshair 2 & 3. Defaults to 255 which is opaque (0 is clear). 2000-04-28 03:38:01 +00:00
Tony Tyson
341eacbc53 Replace alloca with malloc for win32 builds. 2000-04-28 02:52:00 +00:00
Tony Tyson
3d58770b4e Trivial fix for WIN32 version when GLOBAL_CFG_FILE is not defined. 2000-04-28 02:46:02 +00:00
Dan Olson
4771585877 prevent an annoying and unecessary warning message on uquake shutdown under
certain conditions
2000-04-27 23:09:42 +00:00
Dan Olson
52588a41ba More cvar descriptions. I think I'm done for now. 2000-04-27 21:49:19 +00:00
Dan Olson
3a4bb0d831 Added some cvar descriptions 2000-04-27 21:37:00 +00:00
Bill Currie
1970ba1b43 just added a comment 2000-04-27 11:55:22 +00:00
Bill Currie
2e61dac258 casue autoexec.cfg to be executed in the new gamedir (after frontend.cfg)
also, clean up quakefs.c a little (minor)
2000-04-27 10:56:31 +00:00
Bill Currie
e94c1488ac shuffle things around so gamedir works early on in the piece. Also put it into qw-client in the first place. grr Unfortunatly, doesn't fix our class change problem :( 2000-04-27 09:25:38 +00:00
Bill Currie
3c8ff479a3 oop, forgot this for avoiding win32 problems 2000-04-27 07:15:51 +00:00
Bill Currie
9afa18b5f8 !lart taniwha for forgetting to make clean after changing headers 2000-04-27 04:55:43 +00:00
Bill Currie
578532766f oops :/ 2000-04-27 04:38:48 +00:00
Bill Currie
439c26b18b developer 1 will cause +... output when things are executed
Also, move the developer cvar to it's new home in cvar.c and cvars.h
2000-04-27 04:33:30 +00:00
Joseph Carter
b1e18056eb gl_particles moved out of gl_vid* since it is common.
new cvar, gl_fires.  Default to 1, set to 0 if you hate the fire effect on
the lavaball and coming off the rocket trail.
2000-04-27 04:30:37 +00:00
Bill Currie
e0d55e9c19 fix knghtbrd's segfault. Make two passes at the config file just like the command line. 2000-04-27 02:07:29 +00:00
Bill Currie
ede51b8e01 hopefully, this will allow the windows targets to build 2000-04-27 01:25:20 +00:00
Bill Currie
0142fc1a24 expand ~ for spefifying data directories.
Note: still needs to be autoconfiscated, but I'm not sure what direction to take there.
2000-04-27 00:37:57 +00:00
Bill Currie
af8f5e501b execute all commands in quakeforge.conf, not just set 2000-04-26 23:43:46 +00:00
Joseph Carter
a79a491b96 Stephen Hocking reported a bug in the OSS sound code under FreeBSD. This
is the extremely long and complex (ie, single line) change to fix it.
2000-04-26 16:41:12 +00:00
Joseph Carter
5ce33303ac slight cleanup of taniwha's global config stuff.. YES another -D on the
cmdline to gcc.  *sigh*  This is the "proper"(?) way to do what we're
doing.  Shouldn't affect anything for win32.
2000-04-26 16:12:03 +00:00
Bill Currie
b7b9937dcb Add global config file loading. Fully autoconfiscated (Coderjoe: you'll need to add onother #define to wins/config.h). Currently, only set commands are executed (easy enough to change). if ${prefix} is /usr, the global config file is /etc/quakeforge.conf, otherwise it will be ${prefix}/etc/quakeforge.conf. The full path to the config file can be specified with (eg) --with-global-cfg-file=/usr/etc/quakeforge.rc. 2000-04-26 13:24:13 +00:00
Joseph Carter
a842501f0d You can now save 1000 screenshots, they'll be named qf000 to qf999...
Why you'd want 1000 screenshots I have no idea, but I did hit the limit of
100 when I was trying to get good screenshots of the rocket stuff..
2000-04-25 15:25:33 +00:00
Bill Currie
e605302b38 autoconfiscate fs_basepath
--enable-basepath causes qf to look in ${prefix}/gqmes/quakeforge for the files
--with-basepath=path gives you more control
2000-04-25 12:31:03 +00:00
Bill Currie
0e44ae7475 Rockets and lavaballs now have dlights (same color as their fireballs) attached to them. 2000-04-25 10:58:47 +00:00
Bill Currie
6d9d7b6197 Make R_RocketTrail take an entity_t * parameter (the one the trail is for) so that various things can be done, including using the entity as a key for R_AllocFire.
Also, rocket/lavaball trails now work beautifly. They have to be seen to be believed.
2000-04-25 09:35:07 +00:00
Bill Currie
2d4091ffa0 reformat a couple of lines 2000-04-25 04:15:49 +00:00
Bill Currie
9fd7079be9 cleanup the r_fog/r_volfog/r_wateralpha code a little, removing the #if 0ed code 2000-04-25 04:08:12 +00:00
Bill Currie
98e7670d66 forgot to disable the stensil buffer for r_volfog 2000-04-25 03:35:30 +00:00
Bill Currie
32b012dda0 allow r_fog, r_volfog and r_wateralpha to be independent of each other. Interesting effects on entities (eg zombies on walls): they wind up full white (1,1,1, I guess). 2000-04-24 09:48:48 +00:00
Bill Currie
451b4056a4 fix the r_wateralpha not working without r_volfog bug. Unfortunatly, this doesn'
t do anything for the r_wateralpha bug that allows cheating (no diff what so eve
r).
2000-04-24 08:59:09 +00:00
Thad Ward
bc7c094a33 uncommented some code that was removed in ver 1.2 of this file to correct some sound problems many people were reporting 2000-04-22 23:12:04 +00:00
Bill Currie
95393325ad add a comment giving a little info on what's going on with the command line commands. 2000-04-20 08:58:07 +00:00
Bill Currie
f29bffb2ff move +set handling as early as possible 2000-04-20 08:52:59 +00:00
Joseph Carter
8a65ae8ca9 If we treat MOVETYPE_WALK as MOVETYPE_PUSH the catapult in df42 seems to
behave itself a little more often.  I can find no explanation why and it
seems like it should possibly do nothing, but it SEEMS to help.

Thanks for the suggestion Tim.
2000-04-20 02:55:02 +00:00
Pontus Lidman
8cef444f8d KAME/NetBSD142 compatibility patch from Itojun <itojun@iijlab.net> applied 2000-04-18 20:49:26 +00:00
Joseph Carter
171b4c407d minor sbar fix 2000-04-18 11:11:17 +00:00
Bill Currie
09183d0628 cmd.c:
Add Cbuf_Execute_Sets to execute /only/ +set commands.
	Break out common code from Cbuf_Execute and Cbuf_Execute_Sets into
	a local function.
cmd.h:
	add prototype for Cbuf_Execute_Sets
host.c:
	use it
2000-04-18 10:13:17 +00:00
Bill Currie
6cdc6a95a9 fix a missing ) from debug output 2000-04-18 09:33:53 +00:00
Bill Currie
499c3c20bd qargs.h:
"share the software ..." put in an extern for com_cmdline
qargs.c:
	no longer include the program name (argv[0]) in com_cmdline
cmd.c:
	remove redundant code from Cmd_StuffCmds_f and use com_cmdline in it's place.
2000-04-18 09:30:45 +00:00
Joseph Carter
3a8f38c217 New cvar fs_basepath replaces -basedir param. It's a CVAR_ROM so you can
only set it from the cmdline (you now CAN set it from the cmdline BTW!),
it defaults to the current directory if you don't.

New cvar fs_sharepath.  Defaults to fs_basepath->string and is changed in
the same manner.  If you do change it, files in gamedirs under it will be
used first with basepath's files overriding them.

This allows you to keep your paks in a read-only location (cdrom or unix
/usr/share) and still be able to override those files and save configs.
2000-04-18 09:24:29 +00:00
Pontus Lidman
168d480ed5 Correct check for IPv6 local addresses 2000-04-17 19:47:59 +00:00
Pontus Lidman
80632a5210 BSD portability and code cleanups/improvements; basically the patches from the viagenie people and itojun (see AUTHORS) 2000-04-17 19:43:28 +00:00
Pontus Lidman
5162359857 pad field renamed in preparation for multiple address families. Also, don't rely on int being 32 bits. 2000-04-17 19:36:55 +00:00
Pontus Lidman
ded6ff6045 IPv6 support enabled by configure instead of manually 2000-04-17 19:28:42 +00:00
Joseph Carter
46972d9429 No longer tries to VID_Shutdown if VID_Init didn't, prevents a sig11. 2000-04-17 14:49:32 +00:00
Bill Currie
9cd517debc slight optimisation 2000-04-17 12:36:25 +00:00