Bill Currie
37024a4419
final (?) cleanup of center printing. turns out there's no reason to keep
...
it in the renderer and every reason to pull it out (ok, some might
disagree:)
2004-03-02 03:55:18 +00:00
Bill Currie
39fc0fe721
more centerprint cleanup.
2004-03-02 00:58:13 +00:00
Bill Currie
2955fac550
first step of centerprint/finale cleanup. fixes the misplaced text for
...
end-of-episode text
2004-03-01 23:47:39 +00:00
Ragnvald Maartmann-Moe IV
d2a2ac036e
Slightly ugly fix for an optimization bug.
2004-03-01 21:09:56 +00:00
Ragnvald Maartmann-Moe IV
08de21404f
Space, the final frontier...
2004-03-01 11:51:34 +00:00
Ragnvald Maartmann-Moe IV
2342dfcd8f
A couple of small optimizations. If you are exiting early, avoid some stuff
...
only needed later. And reduce worst-case number of if tests in a few places.
2004-03-01 11:51:01 +00:00
Bill Currie
7f3d5164e6
fix Qgets for when zlib isn't available
2004-02-29 07:12:05 +00:00
Ragnvald Maartmann-Moe IV
7b5535cb8f
Less surprising default.
2004-02-29 05:32:23 +00:00
Ragnvald Maartmann-Moe IV
58d67f9a75
Lighting init fixes.
2004-02-29 04:50:01 +00:00
Bill Currie
beb22957db
do some sanity checking on the header lumps in case of truncated file
2004-02-29 04:24:42 +00:00
Ragnvald Maartmann-Moe IV
fde6e5bf61
Reduce ifs a bit, clean up init a bit. Minor problem with gl_doublebright. LIH.
2004-02-29 01:49:41 +00:00
Ragnvald Maartmann-Moe IV
e29e469646
Multitexture state fix. Harmless so far, but testing carefully helps us avoid
...
state leak horrors.
2004-02-27 21:42:52 +00:00
Ragnvald Maartmann-Moe IV
8c6cc34f83
Fix overzealous optimization which did interesting things to lightmapping when
...
not using multitexture.
2004-02-27 21:36:41 +00:00
Ragnvald Maartmann-Moe IV
28fda91e8c
If (!var) checking for a cvar setup. Can't believe that one slipped by for so
...
long... Also set a few globals static.
2004-02-27 20:40:26 +00:00
Ragnvald Maartmann-Moe IV
cdb02edc88
Make whitespace consistent. yay.
2004-02-27 15:49:15 +00:00
Ragnvald Maartmann-Moe IV
6059c7b4df
...space
2004-02-27 08:51:26 +00:00
Ragnvald Maartmann-Moe IV
997f5feabe
Tiny bit of loop unrolling.
2004-02-27 08:29:56 +00:00
Bill Currie
3855a8e40c
seem to have the itterative world rendering working now (fingers crossed:)
2004-02-26 22:53:30 +00:00
Bill Currie
228c5a0ecf
don't bother binding unmodified lightmaps
2004-02-26 00:33:24 +00:00
Ragnvald Maartmann-Moe IV
beeb1822b3
Fix multipass skydome rendering. Not sure layer speeds are right, but at least
...
they move at different speeds like they are supposed to.
2004-02-24 20:53:09 +00:00
Ragnvald Maartmann-Moe IV
44c89c1904
Optimize fullbright testing for brushes, assorted other cleanups, test for
...
functions built into current GL drivers, as well as the old extensions, and
add incorrectly rendering BGRA support.
Whee!
2004-02-24 20:50:55 +00:00
Bill Currie
f9b95cee92
some micro-optimisations
2004-02-23 07:17:41 +00:00
Bill Currie
680c246e22
the inline went wandering by mistake. gives a tiny (< 0.5%) gain, but a
...
gain none the less
2004-02-23 04:46:55 +00:00
Ragnvald Maartmann-Moe IV
496025473c
Remove no-longer needed parameters from function calls.
2004-02-23 04:25:53 +00:00
Ragnvald Maartmann-Moe IV
872498a1f0
Reorder a lot of code, removing tons of ifs. multitexture paths are a bit more
...
sane now. Also optimize QSG2 color handling, and fix some QSG2 bugs. Not that
anyone cares, nobody uses it anyways.
Should be faster, but isn't here. *grmbl*
2004-02-22 06:00:15 +00:00
Bill Currie
b502cfc3ce
move ClientReliable* from sv_nchan to MSG_Reliabe* in msg_backbuf so the
...
backbuffer code can be shared between qw-server and qtv
2004-02-22 05:40:08 +00:00
Chris Ison
e9d57e0401
Grievres' non-mtex FB being brighter than mtex FB fix. Note: it breaks non-RGBA replacement textures
2004-02-21 10:33:43 +00:00
Chris Ison
ca6112767c
Grievres' water HOM and mtex FB only rendering FB texture fix
2004-02-21 09:04:52 +00:00
Ragnvald Maartmann-Moe IV
5157f668ad
Fix a bunch of state leaks that made multitextured fullbrights smear the world.
...
Now just have one (known) issue with bmodels with fullbright textures not
rendering their base texture. Floating fullbrights are nifty!
Also a number of optimizations, which need wider performance testing.
2004-02-21 05:36:19 +00:00
Bill Currie
6e6df349e4
move the ucmd message code into a common qw lib (more will likely follow)
2004-02-21 05:09:02 +00:00
Bill Currie
551c7ee89a
Grievre's patch to makes R_MarkLights and R_RecursiveMarkLights use the
...
same function for actual marking.. which reduces code redundancy and fixes
the fact that world submodels
2004-02-21 04:23:00 +00:00
Ragnvald Maartmann-Moe IV
1cd0ba3f8f
Pale void.
2004-02-20 22:50:47 +00:00
Bill Currie
ac67a50a9a
handle x % 0 by giving a 0 result
2004-02-20 00:25:08 +00:00
Bill Currie
0e1a9e5082
a bit more netchan cleanup
2004-02-19 23:06:47 +00:00
Bill Currie
029257f5d0
nuke an is_server
2004-02-19 22:29:50 +00:00
Bill Currie
fa58b795f2
except for packet logging, netchan is much cleaner (no more cls in the
...
server!)
2004-02-19 08:58:42 +00:00
Bill Currie
e5ae0b4979
needed EXPORT in both ends if the #if/#else/#endif
2004-02-18 03:19:57 +00:00
Ragnvald Maartmann-Moe IV
79689baa83
Grievre's crash fix.
2004-02-15 19:56:28 +00:00
Ragnvald Maartmann-Moe IV
e43129316b
Slightly reorder cases for legibility. (decreasing order instead of random).
2004-02-15 19:55:59 +00:00
Bill Currie
2d2173dc4e
make R_RecursiveWorldNode non-recursive (needs a new name, now :). 0.4%
...
speedup in null-renderer gl: unknown for sw and sw32 (could be slightly
slower, left recursive version in but #if 0ed out jic)
2004-02-15 03:46:55 +00:00
Chris Ison
6642686e33
removal of legacy MGL block_drawing variable. Fixed window restore bug that prevented the screen from being updated.
2004-02-15 03:40:50 +00:00
Ragnvald Maartmann-Moe IV
fef9b30bd7
QF, now complete with underbrights, thanks to Grievre.
...
Play with gl_overbright and gl_doublebright. That's an order.
2004-02-15 00:02:04 +00:00
Ragnvald Maartmann-Moe IV
0dae958a5a
Grievre's fix for texture state leak.
2004-02-14 19:17:51 +00:00
Timothy C. McGrath
b5b61d056f
Grievre passed a one line patch to me which according to his description:
...
"Fixes a bug in dynamic lights (lightstyles weren't being rendered correctly
due to bad assumptions about dlightbits)"
It compiles fine, and seems to work, so, here it is.
Hikaru
2004-02-14 08:36:08 +00:00
Bill Currie
d1904fe7c4
hopefully fix nq segging on windows
2004-02-14 08:05:54 +00:00
Bill Currie
64c156653f
should fix the seg on ^C early in the startup
2004-02-14 07:53:49 +00:00
Bill Currie
d35f027757
undo my incorrect commit
2004-02-14 07:39:43 +00:00
Bill Currie
0e8ba7cc12
oops, committed the wrong file
2004-02-14 07:38:01 +00:00
Bill Currie
2cdf12cd50
if a leaf isn't in the frustum, don't bother lighting it
2004-02-14 07:32:26 +00:00
Bill Currie
85a268c62f
Grievre's lightmap/fullbright multitexture patch (fbs not tested due to
...
lack of drivers supporting 3 tmus)
2004-02-14 05:10:29 +00:00
Bill Currie
103299e7e4
rename Cvar_GetCvarString to Cvar_GetString and add
...
Cvar_Set{String,Float,Integer,Vector} and
Cvar_Get{String,Float,Integer,Vector}. use them in the menus
2004-02-14 02:56:29 +00:00
Bill Currie
a97b722d7b
get the placement of the nice crosshairs right. make cs_data a square to
...
avoid weird mapping effects
2004-02-14 00:18:22 +00:00
Bill Currie
f34335a0c9
provide a builtin to draw a crosshair.
2004-02-13 23:16:33 +00:00
Bill Currie
4cabb40303
break the crosshair draw code into separate functions and give sw and sw32
...
crosshair 3
2004-02-13 22:16:53 +00:00
Bill Currie
a821f048a0
change FNC to FN and fnc to fn for function based opcodes
2004-02-11 06:52:19 +00:00
Bill Currie
c3f41e3e69
new opcode: state.f. same as state, but takes a 3rd float operand to
...
specify the step for calculating nextthink. accessed using
[frame, think, step] (state is [frame, think])
2004-02-11 01:43:33 +00:00
Bill Currie
5c9ffad6a1
oops, fix the line number doubling the /right/ way
2004-02-10 04:42:17 +00:00
Bill Currie
a371af75ab
don't double the source line number when on the function's first line
2004-02-10 01:54:33 +00:00
Ragnvald Maartmann-Moe IV
88c5d21ece
Whitespace, slight code reorder in gl_rmain.c
2004-02-09 04:13:44 +00:00
Ragnvald Maartmann-Moe IV
372b763704
Inconsequential changes.
2004-02-09 04:11:13 +00:00
Ragnvald Maartmann-Moe IV
654cc35482
Mysteriously uncommitted. Fixed.
2004-02-09 04:02:08 +00:00
Ragnvald Maartmann-Moe IV
c4402e07bd
Working towards merging q2 model, sprite, and map support. Check back in a few
...
years, might be finished. ;)
2004-02-08 02:49:38 +00:00
Ragnvald Maartmann-Moe IV
6880b42182
More improvements from ashridah.
2004-02-08 02:39:44 +00:00
Bill Currie
8ea7690530
serious cleanup of refdef calculations.
2004-02-08 00:37:11 +00:00
Bill Currie
f6cac11478
another tidy-up patch from ashridah
2004-02-07 07:50:11 +00:00
Bill Currie
893d3ec290
hash.[ch]:
...
add Hash_NumElements to get the number of elements in the hash table
qfplist.[ch]:
add PL_A_NumObjects and PL_D_NumKeys, to get the number of objects or
number of keys in the array or dictionary, respectively
2004-02-07 07:47:23 +00:00
Bill Currie
85cd891d8c
loop cleanup patch from ashridah
2004-02-07 07:00:25 +00:00
Bill Currie
6342a9bdd7
comment fixups
2004-02-07 06:21:57 +00:00
Bill Currie
6b2d5b6d64
implement pause properly. works for me, hopefully for others
2004-02-07 06:18:56 +00:00
Bill Currie
9038ae2be9
correct a couple function calls
2004-02-07 06:09:06 +00:00
Ragnvald Maartmann-Moe IV
e4410cd914
Grr.
2004-02-07 05:56:49 +00:00
Bill Currie
eee61d261c
ashridah's cd info patch with some whitespace and string handling tweaks
2004-02-07 05:46:43 +00:00
Ragnvald Maartmann-Moe IV
7ae804b8cf
Whitespace, codingstyle, clean out dead comments, redundant returns, and
...
generally sanitize the cd plugins.
2004-02-07 05:35:15 +00:00
Jeff Teunissen
5e3ea6c00c
strip a couple of unnecessary braces
2004-02-07 04:48:36 +00:00
Jeff Teunissen
8811dd520e
Misc. cleanups.
2004-02-07 04:47:38 +00:00
Bill Currie
432ae86cca
don't seg if the field def can't be found
2004-02-07 01:57:31 +00:00
Bill Currie
d1bf75d218
add Cvar_Toggle
2004-02-07 00:08:46 +00:00
Bill Currie
ecf4eabe9d
check return value... prevents segfault in menu code if menu.dat has issues
2004-02-07 00:04:00 +00:00
Jeff Teunissen
cad6fedad8
Whitespace and coding style.
2004-02-06 15:16:50 +00:00
Jeff Teunissen
950a5b34c4
Updates from ashridah.
2004-02-06 14:59:29 +00:00
Bill Currie
080b973479
make globals without a def a lot easier to read (don't need to print the
...
address twice:)
2004-02-06 08:03:22 +00:00
Bill Currie
50f83f7701
cleanup patch from ashridah
...
basically, moves all the tracklist work into a single function, moves a few
functions around, cleans up a few issues with things like reset, and whatnot
2004-02-06 05:44:54 +00:00
Bill Currie
a45981bc6a
don't look up the gl functions until after the context has been setup, just
...
incase it affects which functions glGetProcAddress actually returns.
2004-02-06 00:58:35 +00:00
Bill Currie
9784ba5954
Grievre's gamedir callback patch to fix mangled sounds on gamedir change
...
plus a couple minor tweaks I notcied needed doing.
2004-02-03 03:01:06 +00:00
Bill Currie
4472f943c5
minor cleanups and use escapes when printing strings
2004-01-31 08:34:01 +00:00
Bill Currie
2ac0f40f7a
fix an uninitialized variable
2004-01-31 07:29:11 +00:00
Bill Currie
24294c8778
make printing of global contents in PR_PrintStatement optional so
...
disassembly output is cleaner
2004-01-31 04:26:01 +00:00
Bill Currie
718c708cec
make global printing a little more robust
2004-01-30 08:46:14 +00:00
Bill Currie
e1afa3221c
minor cleanup
2004-01-30 07:55:32 +00:00
Timothy C. McGrath
74404b229d
Another patch from Grievre, this prevents a bad ogg tracklist.cfg from crashing
...
the game, since that event is already handled correctly.
Timothy C. McGrath
(Hikaru)
2004-01-28 10:25:49 +00:00
Timothy C. McGrath
53f8424912
Patch from Grievre to fix cd_file so it does not cause the game to segmentation
...
fault when snd_output is set to null. Also some debugging stuff added just in
case.
This was tested only with making sure that it works when snd_output is null and
non null. Whoever authored this might want to go test this and make sure it
still works :)
Timothy C. McGrath
(Hikaru)
2004-01-28 10:07:31 +00:00
Ragnvald Maartmann-Moe IV
0e6681a069
Add QFGL_WANT, and ability to handle non-required extensions.
2004-01-28 02:49:57 +00:00
Bill Currie
7ff1534e9d
bah, fix one, create another...
2004-01-27 05:23:36 +00:00
Ragnvald Maartmann-Moe IV
31aca31d17
Warn users if their system doesn't support GL_ATI_pn_triangles.
2004-01-26 03:58:19 +00:00
Bill Currie
e763507c71
segfault fix from ashridah
2004-01-26 01:21:06 +00:00
Ragnvald Maartmann-Moe IV
767b0c61db
Fix help for gl_tessellate cvar.
2004-01-26 00:40:31 +00:00
Ragnvald Maartmann-Moe IV
e1146a541c
TruForm support. Controlled by gl_tessellate
2004-01-26 00:13:47 +00:00
Bill Currie
c376982588
this should fix thuglife's segfault
2004-01-25 19:59:49 +00:00
Bill Currie
43f68ba10c
d'oh
2004-01-22 06:27:56 +00:00
Bill Currie
4843d0adde
implement the invers hyper trig functions locally because they're not
...
available everywhere.
2004-01-22 06:26:55 +00:00