Commit graph

1809 commits

Author SHA1 Message Date
Bill Currie
e937fecdc1 move the riff reading code into libQFutil 2003-04-10 16:52:39 +00:00
Bill Currie
39886ebb18 handle short files more robustly 2003-04-10 16:11:09 +00:00
Bill Currie
ff577f1175 add a \n to the grab failed message 2003-04-09 16:38:17 +00:00
Bill Currie
c9f0652a95 start of split-out wav loader. not done yet (probably doesn't compile) but
easier to keep track of here :)
2003-04-09 07:30:49 +00:00
Bill Currie
b80357afda change _FOpenFile to take a dstring for foundname plugging a potential
buffer overflow.
2003-04-09 05:55:41 +00:00
Bill Currie
dd297bc12a start work on support for stereo samples 2003-04-08 22:23:16 +00:00
Bill Currie
d3b6fcbd61 revert the inappropriately complicated event code for the simpler version.
even that's not likely to be final
2003-04-08 19:20:48 +00:00
Bill Currie
255a7522bd merge IN_SendKeyEvents and IN_Commands into IN_ProcessEvents 2003-04-08 18:45:12 +00:00
Bill Currie
35eb866603 kill VID_HandlePause and IN_HandlePause as they never did anything and
IN_ModeChanged as it's a dead prototype
2003-04-08 17:55:32 +00:00
Bill Currie
fcc069d216 more unused files 2003-04-08 17:47:43 +00:00
Bill Currie
40a73ea5c1 don't need this 2003-04-08 17:32:55 +00:00
Bill Currie
7f31f05684 alpha compile fixes 2003-04-08 05:33:49 +00:00
Bill Currie
01bff9c79e WildCode's alias model VA prepatory patch 2003-04-08 04:13:49 +00:00
Bill Currie
8fc721a2bb plug another overflow 2003-04-08 04:01:20 +00:00
Bill Currie
d4a4cde83c fix a buffer overflow (oops, not paying attention) 2003-04-08 02:56:36 +00:00
Bill Currie
0b0dfcc38e nuke the string api (never really liked it) 2003-04-08 02:35:09 +00:00
Bill Currie
13fd0b8533 nuke the string hash api as it's been obsoleted 2003-04-07 22:34:39 +00:00
Bill Currie
72036d76b0 hmm, forgot a chunk :P 2003-04-07 20:15:38 +00:00
Bill Currie
7001f1d851 plist api (hope it works:) 2003-04-07 20:02:06 +00:00
Bill Currie
d5003f363d make plist arrays unlimited in size 2003-04-07 19:29:52 +00:00
Bill Currie
33c9ce0f7b add hash table api 2003-04-07 16:38:34 +00:00
Bill Currie
a72d3f6844 fix a segfault causing typo :P 2003-04-06 01:04:37 +00:00
Bill Currie
e483333bbe beat the skydome bugs to a pulp. no more seam (and probably a bunch faster
on slow cards)
2003-04-05 07:59:29 +00:00
Bill Currie
6cc7d43b53 make the texture coords in skyvec always 1/2 pixel in from the edge 2003-04-04 07:00:51 +00:00
Bill Currie
e00966b319 speed up 16 bit vertex lerping by getting GL to do the 1/256 scaling for us 2003-04-03 23:09:43 +00:00
Bill Currie
58541b6855 support printing a couple more types (especially for edicts) 2003-03-26 18:45:44 +00:00
Bill Currie
fafc578440 correct a comment and ws 2003-03-25 17:40:02 +00:00
Ragnvald Maartmann-Moe IV
8db859b77c Minor bit of neatening, remove CHAIN_SURF alias, so it's clearer what is being used where. 2003-03-25 07:25:22 +00:00
Ragnvald Maartmann-Moe IV
6c7701a38b Prevent bad gl_max_size settings from causing buggy drivers to freak out. 2003-03-24 20:21:24 +00:00
Bill Currie
bd08b03791 don't assuming 32 bpp in setup_pixrow_span 2003-03-21 22:18:20 +00:00
Ragnvald Maartmann-Moe IV
91bebf1bfa Don't need LA for greyscale textures, switch to luminance-only. 2003-03-21 22:08:46 +00:00
Ragnvald Maartmann-Moe IV
3bfdf0aea3 Test for gl errors every frame. 2003-03-21 21:28:09 +00:00
Bill Currie
16eac174e6 correct the scaling of the 5 bit color map types 2003-03-21 16:18:51 +00:00
Bill Currie
fa775c6e30 oops, missed a case 2003-03-21 06:08:57 +00:00
Bill Currie
7e0ce3d3df skip over any present colormap for non-colormap types 2003-03-21 06:08:17 +00:00
Bill Currie
3e349ee52c we now theoreticly support greyscale tga files too :) 2003-03-21 05:03:32 +00:00
Bill Currie
6c850c5528 seriously clean up LoadTGA by using a decoder table and implement colormap
support (8 bpp only)
2003-03-21 04:23:16 +00:00
Ragnvald Maartmann-Moe IV
bf18436ad5 Whitespace. 2003-03-21 00:51:57 +00:00
Bill Currie
c525bc4925 call the correct read functions for 32 bit rle expansion 2003-03-20 23:11:58 +00:00
Bill Currie
32257923a5 cleanup unused vars 2003-03-20 23:02:53 +00:00
Bill Currie
b2bc3f13ea support RLE tga files for all 4 directions 2003-03-20 22:54:44 +00:00
Bill Currie
abdb21eadc however, don't need read_rgb and read_rgba 2003-03-20 21:25:56 +00:00
Bill Currie
4222c501a0 darn, broke the reverse direction and fixing it produces horrid code 2003-03-20 21:24:04 +00:00
Bill Currie
1a18044b31 merge the forward and reverse blitters/readers using a direction flag which
gets optimized out
2003-03-20 21:08:47 +00:00
Bill Currie
a01456f851 allocate space for the texture correctly 2003-03-20 21:08:04 +00:00
Ragnvald Maartmann-Moe IV
88c2735d9c Make sprite rendering use vertex arrays, as a test for detection of vertex array support (tests only for OpenGL 1.1 or better, at the moment, no driver blacklist yet). 2003-03-20 19:58:18 +00:00
Bill Currie
3423ed59d5 expand the plist api to make plist creation easier 2003-03-18 19:15:31 +00:00
Bill Currie
aa345faf12 use the window size for the fullscreen view 2003-03-17 05:39:10 +00:00
Bill Currie
a8a8792a76 support vid_conwidth cvar (for -conwidth). while present in all targets, it
will only work in gl
2003-03-17 05:17:58 +00:00
Bill Currie
548d3b68f8 pr_load.c:
PR_RelocateBuiltins must be called before PR_InitRuntime
pr_obj.c:
	don't segfault on broken classes
2003-03-13 18:45:45 +00:00
Bill Currie
eeb2439eb6 need a specific entry for "qw:qw" since servers set the gamedir to "qw"
explicitly
2003-03-13 05:43:45 +00:00
Bill Currie
e105198f48 ensure the path passed to Sys_DebugLog is expanded 2003-03-13 05:41:55 +00:00
Bill Currie
2858bc4922 d'oh 2003-03-12 22:38:02 +00:00
Bill Currie
71a60717d9 make pr_source_path a ; separated list of dirs and make it controllable in
qfprogs
2003-03-12 22:31:44 +00:00
Bill Currie
c186266f06 whitespace 2003-03-12 02:21:51 +00:00
Bill Currie
ff2a40a7c6 WildCode's dx cleanups 2003-03-11 06:31:30 +00:00
Bill Currie
cf3aeadb42 more error checking ala WildCode 2003-03-10 21:28:18 +00:00
Bill Currie
cbd2c42178 WildCode's win32 sound fixes 2003-03-10 21:21:22 +00:00
Bill Currie
72d1343735 add some comments about the coordinate systems used in AngleVectors 2003-03-10 20:44:50 +00:00
Bill Currie
57a470a88a alpha compile fixes (unused functions) 2003-03-08 07:17:32 +00:00
Bill Currie
a8c989969d hopefully better input grabbing state tracking 2003-03-07 22:30:15 +00:00
Bill Currie
c731afa957 hopefully fix the input grabbing (and evem more hopefully, without driving
Despair to ... um... ;)
2003-03-07 03:55:51 +00:00
Bill Currie
bfaef7747b the first fielddef isn't always null (esp with qfcc), so check to see if it
needs printing too
2003-03-05 18:18:42 +00:00
Ragnvald Maartmann-Moe IV
f57eb911cc Another little FIXME. (Cleanup I'll do soon, hopefully) 2003-03-03 19:32:56 +00:00
Ragnvald Maartmann-Moe IV
2000954a2c Whitespace, and a workaround for show_* misplacement. 2003-03-03 19:20:44 +00:00
Bill Currie
beecb5580f use %g instead of %f and the 0s hack 2003-03-03 17:52:11 +00:00
Brian Koropoff
3b99b7366f Fixed two bugs in complex variable substitution. 2003-03-02 05:11:22 +00:00
Brian Koropoff
cd3fc3569b Fixed a bug on out-of-bounds array access attempts and enhanced the now-
functioning infobot.gib.
2003-03-01 07:24:58 +00:00
Brian Koropoff
2be8a851d5 Oops, make 'return' GIB builtin actually end the current function. 2003-03-01 02:44:58 +00:00
Bill Currie
7f37260a9c this bit shouldn't know about windows 2003-02-28 16:22:42 +00:00
Bill Currie
a9a169e820 make the more relevant parts of qfs available to progs. bi_file.c will
eventually be moving into bi_qfs.c
2003-02-28 05:35:27 +00:00
Bill Currie
6ef4770adb make the menu load when the gamedir hasn't been set 2003-02-28 05:28:35 +00:00
Brian Koropoff
7f72596ab5 Fix a bug with embedded commands and make the parser more anal about what
can be embedded.
2003-02-28 05:07:15 +00:00
Brian Koropoff
11596e4b42 Fixed a bug with parse trees being freed early. 2003-02-28 04:03:45 +00:00
Brian Koropoff
ce80fffe69 Massive bug and memory leak fixing. 2003-02-26 07:44:34 +00:00
Brian Koropoff
61d315755a Fix a braino that most likely broke concatenation. 2003-02-26 02:51:40 +00:00
Bill Currie
32ed283122 don't need that FIXME 2003-02-25 18:13:56 +00:00
Bill Currie
be728c7b7c Initialize p_mouse_x and p_mouse_y from the EnterNotify event so that the
first mouse move of the game doesn't screw up your view. Also does resonable
behaviour when entering and leaving the window.
2003-02-25 17:19:47 +00:00
Ragnvald Maartmann-Moe IV
5fc069753a Warning fix (c might be used before initialization).
Too tired to check if there's an actual bug there. Goodnight...
2003-02-25 08:35:31 +00:00
Brian Koropoff
020a9262f7 Made the parser anal about concatenation usage and fixed several bugs by
running /dev/urandom through carne to catch problems.
2003-02-25 08:04:48 +00:00
Brian Koropoff
c9fbb334f1 Cleaned up the GIB parser and GIB_Execute() a lot. Made aliases work in
GIB.  Added some breakpoint GIB builtins for debugging script/intepreter
interactions.  Made carne work properly again (local variables don't
disappear in interactive mode)
2003-02-25 06:52:27 +00:00
Ragnvald Maartmann-Moe IV
1201f615ee Move a test inside function, rather than repeated all over the place. 2003-02-25 06:04:42 +00:00
Ragnvald Maartmann-Moe IV
a9c61bb6bf Updated for OpenGL 1.4, plus whitespace. 2003-02-25 05:45:11 +00:00
Bill Currie
93834f2694 better source line tracking 2003-02-24 16:01:52 +00:00
Bill Currie
38d5c8c41a better line search algorithm (not perfect yet, though) 2003-02-24 03:34:11 +00:00
Bill Currie
5c3892cbb2 make sure the string is valid before attempting to print it 2003-02-24 03:07:26 +00:00
Brian Koropoff
71a4ff6379 Use floor() or ceil() based on sign for 'trunc' GIB math function. 2003-02-23 22:53:36 +00:00
Brian Koropoff
6141bc35d0 Removed the 'random' GIB builtin and replaced it with the rand() math
function in the math evaluator.  Added the trunc() math function as well.
2003-02-23 22:14:07 +00:00
Brian Koropoff
36774a612d Use atof when checking truth values. 2003-02-23 21:14:33 +00:00
Ragnvald Maartmann-Moe IV
d9ed34a5fb More video mode selection robustness improvements. 2003-02-23 20:21:06 +00:00
Ragnvald Maartmann-Moe IV
59c4290563 Fix handling of all non-RLE-compressed tga formats we supposedly support. Now
we work even if the first pixel isn't in lower left. ;)
Handling the RLE-compressed oddball cases would require a lot more code
duplication, will brute force that later if nobody beats me to it with a clean
solution.
2003-02-23 17:39:23 +00:00
Bill Currie
c026e61d22 make LittleLong and co defines rather than function pointers 2003-02-22 23:23:16 +00:00
Brian Koropoff
5acf0bbeda Fixed a bug in the 'contains' GIB builtin and added more to the GIB docs. 2003-02-22 07:19:51 +00:00
Bill Currie
72e5221f06 minor debugging tweaks 2003-02-21 15:09:02 +00:00
Bill Currie
152538bf90 zap the Cmd_Return stuff as that's dead and burried 2003-02-20 20:33:03 +00:00
Bill Currie
bb5f5e0a0c fix a couple of gcc 2.95 warnings 2003-02-19 21:41:37 +00:00
Ragnvald Maartmann-Moe IV
e3ea39e67b QuakeForge now supports map specific textures in textures/mapname/. 2003-02-19 17:41:16 +00:00
Bill Currie
d93fceea38 fix a snafu in SVC_DirectConnect related to info strings, make
Info_ParseString take (and pass on to Info_SetValueForStarKey) a flags arg
and simplify the flags handing in Info_SetValueForStarKey.
2003-02-19 17:39:21 +00:00
Bill Currie
b6a3bc8d1c try to give line numbers in the traceback 2003-02-19 06:26:49 +00:00
Brian Koropoff
a9fa6c06d5 Remove some stupid hacks so that negation works again. 2003-02-17 20:33:56 +00:00