Commit graph

834 commits

Author SHA1 Message Date
Bill Currie
4f2f686834 r_netgraph_alpha works again 2001-11-30 03:51:43 +00:00
Bill Currie
12a0a10d33 more alpha portability fixes 2001-11-29 19:35:25 +00:00
Bill Currie
72e2e871f8 goodbye PARANOID :P 2001-11-29 06:58:15 +00:00
Bill Currie
4689350283 fix qport 2001-11-27 04:50:41 +00:00
Bill Currie
67fde0c492 remove some debug code I accidently committed 2001-11-26 17:25:16 +00:00
Ragnvald Maartmann-Moe IV
dea0a2c08d Whitespace. 2001-11-25 08:00:16 +00:00
Bill Currie
1cdf7fa55f clean up the math for id skys a little. doesn't fix the sillyness, but that's
caused by the deliberate texuture wrapping and I think gl isn't coping well
with that when the texture coords wind up getting swapped due to the wrap.
2001-11-25 07:41:17 +00:00
Bill Currie
e99b422628 extinguish gl_fires. it's semi-broken, generally nasty (code wise) and
kinda tacky. also results in a slight speed boost:)
2001-11-25 06:24:26 +00:00
Adam Olsen
82095df9cf - make Cache_Flush catch errors before Cache_Flush, and hopefully
print useful debugging info
2001-11-25 03:16:15 +00:00
Adam Olsen
b7cbc15508 - remove the unused DYNAMIC_SIZE define 2001-11-24 16:32:39 +00:00
Ragnvald Maartmann-Moe IV
4d406337b6 Move gl_fires into gl, where it belongs.
Also some small cleanups in particles.
Brighten grenade smoke a tiny bit, so it's not so invisible in the typically dark quake areas.
And some minor cleanups to water rendering.
2001-11-24 08:21:07 +00:00
Ragnvald Maartmann-Moe IV
405e8fffc9 Whitespace. 2001-11-24 08:16:43 +00:00
Ragnvald Maartmann-Moe IV
2c8d802935 Whitespace. 2001-11-24 08:08:44 +00:00
Ragnvald Maartmann-Moe IV
eabfbd6c98 Remove ugly ifdef (and coincidentally support for early ALSA 0.9). 2001-11-24 08:05:44 +00:00
Bill Currie
bd0ac4a38a merge Mod_LoadSpriteFrame from gl and sw back into the common sprite loader
pulling the gl specific code (the loading of the texture into GL) into
a separate function (Mod_SpriteLoadTexture), which is just a stub in sw
2001-11-22 05:31:44 +00:00
Bill Currie
8826bdd9dc nuke the d_subdiv16 cvar as its sole user got nuked in the previous commit 2001-11-21 19:24:57 +00:00
Bill Currie
0be2a31f2e lots of code cleanup. Merge Mod_LoadAllSkins, merge the sw32 model loading
code into the sw model loading code, remove all refs to r_pixbytes from the
sw renderer (it was never anything but 1), kill libQFmodels_sw32, remove
all the 16 bit code from the 8 bit sw renderer.
2001-11-21 19:13:53 +00:00
Bill Currie
61382f4967 make absolutely certain skin->fb_texture is 0 if there are no fb pixels in
the skin texture.
2001-11-21 08:26:21 +00:00
Bill Currie
7d14013041 fix many, many bugs in the alias skin loading, transforming and rendering
code. This fixes blather's `melted models' (sw), the nq alt player model
skins (gl), the arbitrary limits on skins and skin groups in gl, and the
incorrect timing of group skins (animated) in gl.
2001-11-21 08:14:05 +00:00
Chris Ison
3e34fc83e4 -3dfx re-enabled 2001-11-21 02:36:48 +00:00
Bill Currie
bc95116825 fix a defined but not used warning 2001-11-20 23:22:19 +00:00
Chris Ison
5e05df417d fix \n order in alias expansion 2001-11-20 20:07:15 +00:00
Bill Currie
712aecb1a2 use the Hash_*Element functions for opcodes to avoid the silliness of trying
to use strings for numeric keys
2001-11-20 18:54:15 +00:00
Ragnvald Maartmann-Moe IV
3f79367865 Minor rendering cleanup, also may help rendering speed when r_wateralpha = 1, by playing with draw order. 2001-11-20 09:41:15 +00:00
Bill Currie
ec75b71711 don't bother with fullbright skins for models that are allways fullbright and
clean up a misplaced function prototype
2001-11-20 08:45:26 +00:00
Ragnvald Maartmann-Moe IV
b836566a3d Fix particle physics bug with blob2 particles.
(thanks to taniwha for pointing out half of the fix I was missing)
2001-11-20 08:31:27 +00:00
Bill Currie
5dab7ccaf7 precalculate smoe model specific info (wether the whole model is fullbright,
if it should have shadows, whether it should be scaled/translated (gl eyes),
and the minimum lighting (player)). give a 1.9% speedup in null renderer.
2001-11-20 08:02:35 +00:00
Ragnvald Maartmann-Moe IV
b69e372589 Whitespace. 2001-11-20 06:57:31 +00:00
Bill Currie
025d520522 remove some dead code 2001-11-20 04:48:04 +00:00
Bill Currie
4c628d0c04 fbdev stuff is now warnings clean, so all -Werror for it 2001-11-20 03:40:57 +00:00
Bill Currie
8d208ac3aa make float != 0 tests work on alpha for when the value is actually an integer
(works fine on intel, but on alpha the denormals either produce an exception
or true zero: not quite desirable:)
2001-11-19 17:51:31 +00:00
Bill Currie
9d0320cc89 various portability improvements 2001-11-18 23:40:01 +00:00
Bill Currie
f0c03f8331 minor cleanups of Sys_ConsoleInput. Cleaning it up properly will take more
work, but this removes most of the redundant instantces. nq-sdl (or -sgl)
-dedicated won't have console input, nor will dedicated servers that don't
load a console plugin.
2001-11-18 22:08:24 +00:00
Bill Currie
46835e79fe more quakeforge compiling on alpha patches 2001-11-17 05:26:30 +00:00
Bill Currie
cda6923ffa this seems to be all that's needed to make progs 64 bit clean (minus issues
with sizeof (int) != 4, but that's not the case on alpha)
2001-11-17 04:32:00 +00:00
Bill Currie
cc66577f1c fixes for building on alpha (linux) 2001-11-16 01:09:17 +00:00
Chris Ison
5c26b54697 remove smoke I added thismorning 2001-11-15 23:36:14 +00:00
Chris Ison
0e5262c2ea colored explosion smoke 2001-11-15 20:53:23 +00:00
Bill Currie
288ec4251c various fractional speedups 2001-11-15 19:37:29 +00:00
Bill Currie
598c82352f fix printing of op_c for storeb 2001-11-15 19:36:40 +00:00
Bill Currie
267e51eaaf while cute, cl_surprise is just way too expensive when gains are measured in
fractions of a percent, and a loss is 3%.

I hate doing this sort of thing :(
2001-11-15 01:37:57 +00:00
Chris Ison
8d50c8ea47 added cl_surprise cvar for easter eggs 2001-11-14 21:46:50 +00:00
Chris Ison
c72e2ef324 re-enable 8bit textures 2001-11-14 21:01:10 +00:00
Bill Currie
39401592d4 use malloc/free instead of Hunk_TempAlloc in Cmd_Exec_File so it can be called before Memory_Init 2001-11-14 20:16:57 +00:00
Bill Currie
e91180cccf this should take care of wildcode's 8 bit issues 2001-11-14 16:36:42 +00:00
Bill Currie
42b5a5d150 reformat the output of "alias" so that capturing it is useful for config
scripts
2001-11-13 23:51:21 +00:00
Bill Currie
7888f1cb93 fix a couple of branch offset bugs 2001-11-13 19:52:03 +00:00
Bill Currie
4af2b18703 support printing uinteger values 2001-11-13 18:04:55 +00:00
Bill Currie
07b59d2f07 pr_comp.h:
o	add OP_JUMPB
	o	OP_JUMPB renumberd some opcodes, so up PROG_VERSION
pr_edict.c:
	o	make the version error reporting more informative
pr_exec.c:
	o	implement OP_JUMPB (goto *(ptr + index))
pr_opcode.c: (libs/gamecode/engine)
	o	add OP_JUMPB to the table
expr.h:
	o	ex_uinteger support
	o	some const correctness
	o	prototype new_label_expr
qfcc.h:
	o	uinteger ussport
	o	add pointers for op_jump and op_jumpb
	o	prototype PR_GetArray
emit.c:
	o	general uinteger support
	o	new reference/reloc type 3: absolute statement address
	o	jumpb support (binary goto)
expr.c:
	o	uinteger support
	o	break the label name creation out of new_label_expr into
		new_label_name
	o	some const correctness
pr_def.c:
	o	add PR_GetArray to allocate an array in global space
	o	factor out some code common to PR_GetDef and PR_GetArray that would
		otherwise be duplicated
pr_imm.c:
	o	some const correctness
	o	uinteger support
pr_lex.c:
	o	uinteger support
pr_opcode.c: (tools/qfcc/source)
	o	support jump and jumpb
switch.c:
	o	rewrite the binary search code to support ranges.
2001-11-13 08:58:54 +00:00
Bill Currie
d27cd9cc21 s/type_size/pr_type_size/
remove the redundant type_size from qfcc
2001-11-12 23:56:46 +00:00