Commit graph

369 commits

Author SHA1 Message Date
Jeff Teunissen
d41da03640 glquake.h: Whitespace, a new convenience check #define for multitexturing.
qfgl_ext.h:
Add protection against multiple includes of extensions from different files.
Add defs for GL_EXT_paletted_texture.
Change the #ifndef conditional for shared palettes to
GL_EXT_shared_texture_palette.
2001-01-09 00:25:31 +00:00
Bill Currie
b66c22d0e5 flickering rocket/lava lights are dead and cvars now support vectors (archiving
broken atm).
2001-01-08 07:07:48 +00:00
Dabb
127b5e4610 Added GL_SHARED_TEXTURE_PALETTE_EXT. 2001-01-06 08:12:42 +00:00
Jeff Teunissen
fc005fc215 Cleanup of extensions, they are no longer defined in glquake.h. In
addition, removed support (for now) for SGIS and EXT multitexture. It
allowed me to enhance support for ARB multitexture, which is better anyway
(especially for Radeon, but that won't get special support yet until we
need a third texture pass).

Updated the Unix 8-bit GL code to be more like the Windows version, which
may work better. It still defaults off, because many drivers have bugs in
their handling of the shared texture palette extension.
2001-01-06 07:29:17 +00:00
Jeff Teunissen
20784c33fd Include qtypes.h, caused a problem here 2001-01-06 07:21:52 +00:00
Bill Currie
8706ada7c6 some compile fixes for vc (hopefully) 2001-01-05 21:10:41 +00:00
Dabb
a8c5bf0812 Added #define ZERO_ARRAY_LENGTH 2001-01-05 15:25:20 +00:00
Bill Currie
dd5363cdb5 commands and aliases now use hash tables 2001-01-04 20:51:35 +00:00
Ragnvald Maartmann-Moe IV
9099a7175e Whitespace, and header sort. 2001-01-04 19:57:26 +00:00
Bill Currie
68dfbd6729 forgot to add hash.h for make dist 2001-01-04 19:11:18 +00:00
Bill Currie
381f5b6df4 cvars and cvar alias now use a hash table for lookups. commands and aliases
coming soon :)
2001-01-04 19:10:38 +00:00
Bill Currie
e2798548a8 make mingw compatable 2001-01-04 18:25:57 +00:00
Bill Currie
8b78d845df add sv_pr_cmds.h to extra-dist 2001-01-04 15:46:00 +00:00
Bill Currie
c3a0e96c46 forgot the fscking header file, didn't I? 2001-01-04 05:59:51 +00:00
Bill Currie
81620d5245 fix a crash in progs code caused by a bad prototype 2001-01-04 05:44:53 +00:00
Bill Currie
5e86c729fa now progs and server really are separated :) 2001-01-03 07:08:28 +00:00
Bill Currie
0192ed40c3 the progs engine and the server are now completely independent paving the way
for CSQC.
2001-01-03 05:54:35 +00:00
Bill Currie
2debf6f669 now only svs is reverenced where it shouldn't be, and that's to set info
strings (skybox and *progs). skybox is easy to take care of (aditional parse
functions), but I haven't yet decided what to do with *progs. Also, progs code
needs a bit of a cleanup, but that will come later.
2001-01-02 03:22:46 +00:00
Dabb
5ba9c66816 Nuked unused "texture_mode" - probably leftovers from old stuffs. 2000-12-31 13:59:19 +00:00
Bill Currie
b6c832d900 while not 100% complete (sv is still referred to as well as r_skyname), the
progs engine no longer refers to any global vars. This alows for multiple progs
being loaded (NOTE: NOT multiple mods, but (eg) for various protocol
extensions) and, once the last couple of issues are taken care of, CSQC.
2000-12-31 07:43:09 +00:00
Dabb
2bd3c73d0c Added HAVE_STRING_H 2000-12-30 18:45:03 +00:00
Dabb
ed7e9b001f Some more defs. 2000-12-30 11:48:54 +00:00
Bill Currie
1e9779f1ca die, borland, die 2000-12-30 05:40:39 +00:00
Bill Currie
886c1d10bc too early to do that :/ 2000-12-30 05:21:56 +00:00
Bill Currie
ee47b4d568 a start on a #include audit for the header files and misc fixups for win32 2000-12-30 05:18:48 +00:00
Bill Currie
5f21837c33 cleanup the includes in host.h 2000-12-30 03:23:31 +00:00
Bill Currie
f29ea7f1d3 fix up <> vs "" in #includes 2000-12-30 03:07:15 +00:00
Bill Currie
60fe4aea40 forgot these 2000-12-30 02:25:58 +00:00
Dabb
477bcf51b0 Win32 sound cleanups - phase1 2000-12-29 15:20:12 +00:00
Bill Currie
73980fe852 make qf-server REALY sleep when there are no clients currently connected 2000-12-29 05:32:24 +00:00
Bill Currie
c71fc78360 it was decided the menu code should return until release. here it is with the
gettimeofday -> Sys_DoubleTime change (though I'm having some operational
issues (non-critial) with the server list).
2000-12-29 03:14:53 +00:00
Dabb
0e3072728f Mingw support for ppl without configure :-) 2000-12-27 15:18:27 +00:00
Zephaniah E. Hull
01238243c1 Due to snax's ping stuff not compiling under windows, I did a little
cleaning.

Specificly, the entire menu system has been completely and utterly
removed.

Flame me AFTER writing a replacement. <=:]
2000-12-26 17:41:26 +00:00
Brian Koropoff
0210465303 This update changes the server list layout and adds server pinging and querying support. Use 'p' to update pings, 's' to update status information, and 'u' to do both at once. Feel free to abuse this and report any bugs that you find. 2000-12-25 02:36:36 +00:00
Dabb
dae1954eaf "Unused" code for startup dialog now has #ifdef SPLASH_SCREEN. 2000-12-20 18:18:27 +00:00
Bill Currie
f4c300676f forgot to commit this 2000-12-20 06:56:08 +00:00
Bill Currie
dd3ea544ce cl_visedict re-write. lerping works MUCH better now, and lerping of torches
should be possible. client should also be microscopicly faster.
2000-12-20 06:18:55 +00:00
Bill Currie
0e268f9ca7 This is what I have done with this patch
Added editloc to change the description of the closest location
Added delloc to remove closest location
Added dumploc to place locs in memory into a .loc file (required for
editloc and delloc)
Added zdumploc to place locs in memory into a .loc.gz file (requred for
markloc, editloc and delloc)
Added loc.gz saving support to markloc, editloc and delloc (via
zdumploc)

Altered locs_load to use _Com_FOpenFile instead of Com_FOpenFile
Fixed potentual bug in locs_markloc
Fixed bug in Team_ParseSay that cause wierd behaviour if $ or % was last
charactor in line.

patch created from a development tree via diff -ur ../newtree ./
newtree and development tree were up-to-date at time of creating the
patch


Please let me know what you change so I may learn from it

Chris Ison (WildCode)
2000-12-19 19:47:15 +00:00
Ragnvald Maartmann-Moe IV
ea76f45bc6 Merge phase separated mixing from nuq. Still has bugs, but defaults off. 2000-12-19 19:02:37 +00:00
Bill Currie
8c90357234 subdivided skys are back. it seems some cards don't like big polys.
gl_sky_divide (default 1) controls this.
2000-12-17 22:07:06 +00:00
Anton E. Gavrilov
32910a1b5f This fixes an ugly bug caused by a bug in the ugly netquake step up smoothing code :) 2000-12-15 12:18:54 +00:00
Jeff Teunissen
de55871d32 Overhaul of parts of the polyblend system. Contrast in GL no longer uses
another alpha blend, it's set up exactly as another factor in determining
the final blend. This should help speed up framerates a little.

New cvars:
cl_cshift_bonus: Set to 0 to disable bonus flashes.
cl_cshift_contents: Set to 0 to disable content blends.
cl_cshift_damage: Set to 0 to disable damage blends.
cl_cshift_powerup: Set to 0 to disable powerup (quad, pent, etc) blends.

All of these cvars work for both GL and software, and all of them check
the value of the "cshifts" serverinfo. cshifts is a bit field, with the
following bits defined:

bonus: 1
contents: 2
damage: 4
powerup: 8

An admin can force any of these to be respected by choosing the numbers of
the cshifts to be enforced, and adding them up.

examples:

serverinfo cshifts 15

turns them all on.

serverinfo cshifts 10

turns on powerup and contents shifts.

also, the gl_cshiftpercent Cvar no longer does anything. I'll remove it
entirely soon.
2000-12-13 09:01:11 +00:00
Jeff Teunissen
0c662b0e6a cl_ents.c: misc. tweaks to CL_ParsePacketEntities ()
rest: Myriad stuff.

r_netgraph now recognizes and abides by the cl_hudswap Cvar.
show_fps and show_time are on the same line now, and stay out of each
others' way.

New Draw_ function: Draw_TextBox(). It's like M_DrawTextBox(), except it
doesn't screw around with the screen coordinates.
2000-12-12 02:46:46 +00:00
Bill Currie
d0b1fc7816 remove un-needed #define _attribute__(x) (there's one in gcc_attr.h) 2000-12-11 19:40:34 +00:00
Forest Hale
2a2b468090 WIN32 now uses %WINDIR% as the home dir (this basically means c:\windows\quakeforge.conf) 2000-12-11 19:14:51 +00:00
Jeff Teunissen
b7bb19e57a minor opt in the #define 2000-12-11 18:20:51 +00:00
Jeff Teunissen
1b139d3378 Fix Dabb's fix, which killed every compiler that wasn't Borland. :) 2000-12-11 16:52:07 +00:00
Dabb
ac50b14d36 #pragma pack for Borland C++ 2000-12-11 15:37:48 +00:00
Forest Hale
ac3c854708 struct packing for MSVC 2000-12-11 14:59:01 +00:00
Jeff Teunissen
d8e1f27d4b pr_edict.c: whitespace
rest: Implement model animation interpolation for alias models. Trying to
implement this has been an annoyance for some time, but IT WORKS NOW. set
gl_lerp_anims to zero to disable.
2000-12-11 09:59:27 +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
808b676eaa Fix up make dist 2000-12-09 18:48:11 +00:00
Jeff Teunissen
329d51b4e8 context_x11.h -- didn't mean to commit my local changes
rest: Apply patches from Michael Weiser <michael@weiser.saale-net.de>
2000-12-08 07:46:40 +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
a7b6d2df88 Brought over pr_exec.c and pals from darkplaces.
Improvements include bounds checking, 40% less instructions per
opcode, support for 65535 globals. Might even break something.
2000-12-06 13:23:44 +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
9554be96f9 clean up screen.c and gl_screen.c includes
remove scr_allowsnap from screen.c
move crosshair related cvars to *screen.c
2000-12-05 05:55:16 +00:00
Bill Currie
ae290926c4 WildCode's location marking code (with a little touchup). 2000-12-03 23:52:54 +00:00
Jeff Teunissen
7b82e44ca1 Fix PCX loading on big-endian systems 2000-12-01 08:59:44 +00:00
Jeff Teunissen
03ca6e6da3 Logos for the X11 clients. 2000-11-29 05:00:57 +00:00
Jeff Teunissen
377655df11 Get the makefiles to link the new extension system in. 2000-11-29 04:56:23 +00:00
Jeff Teunissen
732dc94090 New functionality: QuakeForge now has a general OpenGL extension-loading
interface. To detect an extension, call QFGL_ExtensionPresent(). To get
the address of an extension function, call QFGL_ExtensionAddress(). This
function uses the preferred method for finding a function, based on
whatever OS and windowing system you use.
2000-11-29 04:55:24 +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
Dabb
462138e983 More fun missed by Havoc, SV_Init(void) 2000-11-27 15:30:09 +00:00
Dabb
186bba720c Removed Host_Init quakeparam. Havoc missed this one ;-) 2000-11-27 15:25:00 +00:00
Forest Hale
18a411916b no longer used (or was it ever used in the first place?) 2000-11-27 11:58:17 +00:00
Jeff Teunissen
8465917ed1 Stole a proper version comparison function from dpkg. Version strings
(for sv_minqfversion) are no longer compared as floats, so a server admin
can require client versions with a lot more granularity. (e.g. 0.2.99beta5
is greater than 0.2.99beta4, but lower than 0.3.0)
2000-11-26 09:48:01 +00:00
Bill Currie
e03e707272 new cvar: cl_sbar_separator defaulting to 0. That ugly white vertical line to
the right of the status bar is now GONE (unless you actually /want/ it: if so,
set cl_sbar_separator to 1)
2000-11-21 05:08:12 +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
293d2bcc13 split gl_sky.c into gl_sky.c and gl_sky_clip.c (should have done this in the
first place, but I didn't realise how much code would go into sky clipping).
2000-11-15 17:20:54 +00:00
Dabb
cae9df7689 MGRAPH_H def moved to makefile 2000-11-15 14:40:58 +00:00
Bill Currie
39635d52a2 whitespace 2000-11-15 00:35:30 +00:00
Bill Currie
352740a194 goofed on this one 2000-11-09 00:53:18 +00:00
Bill Currie
2f9292f3e4 do some fixups for make dist before going beta5 :) 2000-11-07 20:15:57 +00:00
Jeff Teunissen
f5a77e3441 Add resources to dist 2000-11-06 03:48:52 +00:00
Jeff Teunissen
ba11d00aba compat.h: Add str*equal () convenience macros
cl_main.c: Clean up version string a little
cmd.c: Add setrom parsing to first init phase, clean up includes a little
cvar.c: setrom command now uses set's semantics. Cvar_Set, Cvar_Set_f,
Cvar_Setrom_f now do a Con_DPrintf to report attempts to set CVAR_ROM
cvars.
sv_main.c: Clean up version string a little
vid.c: -winsize, -width, and -height no longer use Cvar_SetROM. The code
looks a little uglier, but it's more correct.
2000-11-04 07:42:43 +00:00
Dabb
1e8ff659f1 Merged two resource.h files into one. This one got whacked. 2000-11-02 19:18:13 +00:00
Dabb
408bbd6a51 Merged two resource.h files into one. 2000-11-02 19:16:57 +00:00
Dabb
5e30af41b3 Added that HAVE_FNMATCH_PROTO thingy 2000-11-02 17:57:41 +00:00
Dabb
f9556db838 BC compile fix. 2000-11-02 17:53:36 +00:00
Thad Ward
28c972a3fd get vc projects building again 2000-11-02 07:38:41 +00:00
Thad Ward
98adca1e34 add win32 icon files 2000-11-02 07:37:47 +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
Bill Currie
ce700bb36c forgot the changes to glquake.h
also, my brighten cvar changes somehow got lost
2000-10-29 22:21:53 +00:00
Bill Currie
09dbb0670d seems config.h.in is needed as well 2000-10-29 21:29:46 +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
c60c3892e5 add some missing headers 2000-10-28 20:00:42 +00:00
Bill Currie
06e50ba0c9 chop up gl_warp into gl_sky, pcx and tga. also break out pcx stuff from client.h 2000-10-28 19:58:22 +00:00
Zephaniah E. Hull
5d07b61d7a The big particle rework!
Lots of changes, more then I can cover quickly.
Things now look, different, and probally much better!

Note, SOFTWARE RENDERING IS BROKEN with this commit!
2000-10-28 08:02:08 +00:00
Jeff Teunissen
111274c12e Rev for beta 4 2000-10-28 07:35:42 +00:00
Jeff Teunissen
5bb2a9002c Change fires to a more visually-appealing red-orange color. Looks *killer*
Add -brighten arg to GL targets, to replace -gamma but still look nice.
"-brighten 2.5" brightens the palette by 2.5 times, to give a similar
effect to the brightness cvar, but without the dithering brightness
gives. This is a palette hack, which means it _can't_ be a cvar.
2000-10-28 07:11:37 +00:00
Bill Currie
a3dbf0f9da fix the screen offset caused by moving the mouse at just the wrong moment 2000-10-28 05:08:11 +00:00
Jeff Teunissen
e678502641 Mostly whitespace 2000-10-27 10:16:18 +00:00
Bill Currie
426aa7ff77 use the correct include delimitiers 2000-10-27 01:50:04 +00:00
Bill Currie
27465bc765 bring in Despair's (Ragnvald Maartmann-Moe IV, rmmiv@earthlink.net) clean up
of the gl setup code.
2000-10-26 06:08:09 +00:00
Zephaniah E. Hull
b9c0c95729 Misc cleanups. 2000-10-24 17:03:09 +00:00
Bill Currie
d295f183ba remove va from commdef.h and fix the consequences 2000-10-21 07:34:56 +00:00
Bill Currie
63fc732758 clean up the includes ov vid.c and bring over va.h from nuq 2000-10-21 07:20:57 +00:00
Bill Currie
dcd1201131 create VID_GetWindowSize in vid.c and use it elsewhere for window size
selection.  in_x11.c just had refs to scr_width and scr_height removed.
2000-10-21 07:15:30 +00:00