2005-04-20 04:16  havoc

	* gl_rsurf.c, portals.c, portals.h, r_shadow.c, r_shadow.h:
	reimplemented rtlight portal culling (used for compiled rtlights,
	and can be used for dlights but that is often a major speed loss)
	added additional bounding box and triangle facing checks to rtlight
	compilation, triangles outside the box are no longer drawn

2005-04-20 01:49  havoc

	* client.h, gl_rsurf.c, model_brush.c, model_shared.h, r_shadow.c:
	changed rtlight compiled cluster list/pvs to leaf list/pvs to
	enable slightly more accurate culling

2005-04-19 23:02  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h, portals.c: enabled
	portals on q3bsp for a small (occasionally huge) fps increase

2005-04-19 22:33  havoc

	* client.h, gl_models.c, gl_rmain.c, gl_rsurf.c, model_alias.c,
	model_brush.c, model_shared.h, r_shadow.c, r_shadow.h:
	r_shadow_staticworldlights has mutated into
	r_shadow_realtime_world_compile,
	r_shadow_realtime_world_compilelight,
	r_shadow_realtime_world_compileshadow added
	r_shadow_visiblelighting

2005-04-19 18:12  havoc

	* sv_phys.c: fixed a stupid bug in SV_PushMove that made it ignore
	the first entity in the move box fixed a rotation check in
	SV_PushMove so that it would detect roll rotations without
	pitch/yaw

2005-04-19 01:00  havoc

	* model_brush.c: cleaned up transparency handling in q3 shaders,
	should fix many glitched jumppads and such

2005-04-18 14:22  havoc

	* gl_backend.c: now clears view to fog color if fog is enabled,
	this should cure fogging of sky in hlbsp

2005-04-18 14:21  havoc

	* host.c: clean up script init a bit, now starts nexuiz logo video
	and such only if there's nothing to do

2005-04-18 13:50  havoc

	* gl_rsurf.c: reenabled hlbsp sky polygon rendering so that fogging
	works

2005-04-17 23:48  havoc

	* r_crosshairs.c: changed crosshair_static default to 1

2005-04-17 23:47  havoc

	* vid_shared.c: changed in_pitch_min and in_pitch_max defaults to
	-90 and 90 respectively

2005-04-17 19:21  havoc

	* cl_parse.c: fixed the SU_ITEMS fix so that it doesn't trash the
	PROTOCOL_DARKPLACES6 parsing

2005-04-17 14:15  havoc

	* cl_parse.c: fixed a bug in CL_ParseClientdata that was breaking
	on hipnotic demos

2005-04-17 02:08  havoc

	* gl_textures.c: gl_texture_anisotropy now only affects TEXF_MIPMAP
	textures which should fix a number of 'wandering off the lightmap'
	issues (as well as similar issues with model skins, as they are not
	mipmapped)

2005-04-17 02:05  havoc

	* gl_textures.c: texture images now take on the TEXF_FORCENEAREST
	and TEXF_FORCELINEAR flags from the textures placed in them (as was
	intended), so gl_texturemode changes should no longer affect them

2005-04-17 01:37  havoc

	* keys.c: default to insert mode instead of replace mode in console
	get rid of stupid cursor right at end of line behavior in console,
	repeating characters from the previous edit line is annoying allow
	typing characters > 126 in console

2005-04-17 01:33  havoc

	* r_shadow.c: fix rtlighting on textureless surfaces (uses
	r_texture_white instead of no texture)

2005-04-17 01:32  havoc

	* gl_models.c: don't draw glow twice when gl_combine is on

2005-04-16 14:30  havoc

	* protocol.c: fixed a stupid bug in Entityframe5_ExpandEdicts

2005-04-16 02:15  havoc

	* protocol.c, protocol.h, sv_user.c: fix a crash when s->tag_entity
	is higher than current d->maxedicts

2005-04-15 01:37  havoc

	* gl_models.c, gl_rsurf.c, r_shadow.c, r_shadow.h: changed
	R_Shadow_RenderLighting to do full base+pants+shirt+gloss rendering
	in one call (will optimize the rendering itself later to merge some
	of the passes)

2005-04-15 01:30  havoc

	* gl_rsurf.c: fix a bug in the early out case of R_Q1BSP_DrawLight

2005-04-15 01:21  havoc

	* gl_rsurf.c: R_Q1BSP_GetLightInfo now uses BSP tree recursion as
	an optimization for a small speed gain

2005-04-15 01:18  havoc

	* sv_phys.c: made dland2.wav not play in GAME_NEXUIZ no longer runs
	physics on disconnected clients (quake did not run them), fixing
	the physics problems with frikbots, thanks to FrikaC for
	explanation of this problem

2005-04-14 13:45  black

	* cl_screen.c, draw.h, gl_backend.c, gl_draw.c, menu.c, netconn.h,
	prvm_cmds.c, r_crosshairs.c, r_shadow.c, sbar.c: -Added the
	parameter 'persistent'(naming?) to Draw_CachePic, which decides 
	whether the texture is loaded in texture memory directly or only on
	demand.  -Adapted all Draw_CachePic calls (I'll do some
	corrections, atm most of them  pass persistent := false)

2005-04-14 01:27  havoc

	* image.c: LoadTGA is now more compliant with the TGA spec
	regarding colormaps (they can be present even on a truecolor image,
	just not used by it) and attributebits (alpha is now ignored if
	attributebits is not 8 which fixes a number of malformed TGA files
	(though they still waste disk space) - note that attributebits is
	part of the attributes header byte)

2005-04-11 12:37  havoc

	* r_shadow.c: renamed r_shadow_cursor cvars to actually have the
	word cursor in their name like they were supposed to

2005-04-11 12:06  havoc

	* world.c: remove unused variable

2005-04-11 09:53  black

	* dpvsimpledecode.c: -Changed the dpv buffer to 1 MB.

2005-04-10 19:27  havoc

	* bspfile.h, model_brush.c, world.c: implemented playerclip and
	monsterclip brush support for q3bsp levels

2005-04-10 19:23  havoc

	* console.c: changed color codes to match Quake3 changed chat
	coloring in Nexuiz to use yellow, instead of shifting to upper 128
	characters, this should open up the possibility of 8bit fonts in
	Nexuiz (for multilingual chat)

2005-04-10 09:53  havoc

	* cl_particles.c: smoke no longer expands over time (eats fillrate
	and isn't very realistic)

2005-04-10 08:46  havoc

	* cl_particles.c: fixed ut2003-style smoke ring effect on
	explosions (not that anyone uses this I assume)

2005-04-10 08:36  havoc

	* cl_particles.c: reimplemented particle lighting, however it is
	not used (too slow) fixed a stupid bug in fogging of alpha blend
	and modulation blend

2005-04-10 08:29  havoc

	* cl_collision.c, cl_collision.h, cl_particles.c: fixed a crash if
	decals are stuck to submodels when cl_entities expands

2005-04-10 07:01  havoc

	* r_light.c, r_light.h, r_sprites.c: removed unused leaf parameter
	on CompleteLightPoint

2005-04-09 13:11  black

	* todo: Umm, I think this todo item (netconn) has been done some
	time ago.

2005-04-07 02:59  molivier

	* pr_cmds.c, todo: Added the DP_HALFLIFE_SPRITE QC extension

2005-04-06 13:30  havoc

	* sv_main.c: fix 256 frame limit (stupid legacy bug in
	entity_state_t building code)

2005-04-06 04:12  havoc

	* cl_collision.c, cl_main.c, client.h, gl_rsurf.c: changed
	cl_brushmodel_entities array from entity_render_t * to int, to fix
	a crash when cl_entities array expands

2005-04-06 03:06  havoc

	* protocol.c: fixed a stupid typo in EntityFrame5_ExpandEdicts that
	caused a double free error

2005-04-05 15:23  havoc

	* snd_main.c: fixed an error case in S_StartSound

2005-04-05 13:28  havoc

	* gl_rsurf.c: fix some crashes with fogged surfaces

2005-04-05 13:01  havoc

	* cl_main.c: made CL_ExpandEntities cause an error if called before
	cl_entities is initialized

2005-04-05 11:23  havoc

	* cl_main.c, cl_parse.c, cl_particles.c, cl_video.c, client.h,
	common.c, common.h, console.c, fs.c, gl_backend.c, gl_textures.c,
	host.c, host_cmd.c, image.c, menu.c, meshqueue.c, netconn.c,
	pr_cmds.c, pr_edict.c, progs.h, progsvm.h, protocol.c, protocol.h,
	prvm_edict.c, r_shadow.c, server.h, sv_main.c, ui.c, wad.c:
	consolidated many mempools to make memlist more readable (and very
	slightly reduce memory usage) changed gltexture_t->identifier from
	a pointer to an array to reduce the number of allocations per
	texture (now 2-3 rather than 3-4) made all MAX_EDICTS arrays in
	entityframe5_database_t adaptive size to reduce server memory usage

2005-04-05 10:31  havoc

	* cmd.c: no longer uses SZ_Alloc for cmd_text buffer

2005-04-05 04:15  havoc

	* cl_collision.c, cl_main.c, cl_parse.c, client.h, host.c,
	protocol.c, r_shadow.c, snd_main.c, view.c: reduced client memory
	usage by 29MB by making cl_max_entities dynamic (starts out at 256)
	cleaned up cl_num_entities to be more generally useful, it is only
	increased by network entities, this should speed up some code (by
	using cl_num_entities instead of MAX_EDICTS or cl_max_entities)

2005-04-04 12:33  havoc

	* gl_rsurf.c: fixed a unintended-water-scroll bug on transparent
	fullbright surfaces

2005-04-04 11:46  havoc

	* r_shadow.c: fix gl_combine 0 crashes (it was indexing the color
	vector as if it was a vertex property... wrong!)

2005-04-04 09:01  havoc

	* curves.c, curves.h, gl_models.c, gl_rsurf.c, model_alias.c,
	model_brush.c, model_shared.c, model_shared.h, portals.c,
	pr_cmds.c, r_shadow.c, r_shadow.h: optimized surface rendering to
	surface->groupmesh->data_* array pointers directly instead of
	indexing them with surface->num_firstvertex, this allows fewer
	pointer changes (a small speed gain) fixed stupid bug in q1bsp
	texture loading which was making all missing textures invisible
	changed portal generation to not break when a portal is clipped
	away, this fixes a crash at render time with bogus portals changed
	r_drawportals to only draw portals surrounding the visible leafs
	(speed gain, but also useful for debugging vis glitches)

2005-04-04 07:51  molivier

	* netconn.c: Fixed getserversResponse parsing: * serverquerycount
	was incremented even when it didn't query this server * if the list
	contained a server that was already queried, the remaining servers
	were ignored

2005-04-04 06:03  black

	* netconn.c, prvm_cmds.c: -ServerList: Changed some if-else-chains
	to switch constructs.  -Added a pointer check (!= NULL) to
	VM_strunzone.

2005-04-04 01:26  molivier

	* image.c, image.h, menu.c: Removed LoadLMPAs8Bit; the menu now
	uses LoadLMP directly

2005-04-03 22:40  molivier

	* image.c, image.h, jpeg.c, jpeg.h: Factorized LoadLMP and
	LoadLMPAs8Bit. Made a bunch of buffers const

2005-04-03 03:12  black

	* menu.c, netconn.c, netconn.h, prvm_cmds.c: -Changed HostCache to
	ServerList (and a few other pure name changes)

2005-04-03 00:26  molivier

	* model_shared.c, model_sprite.c, model_sprite.h, pr_cmds.c,
	spritegn.h, todo: Added Quake 2 sprite support (.sp2 files). Added
	the corresponding QC extension (DP_QUAKE2_SPRITE)

2005-04-02 10:25  havoc

	* host.c: rewrote parts of Host_ServerFrame to make host_framerate
	cvar work again for The Ascension Of Vigil

2005-04-02 09:38  havoc

	* model_sprite.c, spritegn.h: fix hl sprite types again

2005-04-02 08:49  havoc

	* model_sprite.c: fixed hl sprite types to properly handle the
	palette in each mode

2005-04-02 08:20  havoc

	* cl_main.c, model_sprite.c: fixed hl sprite additive mode

2005-04-02 08:04  havoc

	* model_sprite.c: fix hl sprite loading (stupid typo in handling
	sprite types)

2005-04-02 04:05  black

	* console.c, netconn.c: -Now a server is never pinged more than
	once.  -Fixed the color code function.

2005-03-31 08:08  molivier

	* todo: Updated a few entries in the todo file

2005-03-31 01:50  havoc

	* gl_backend.c: fix incompatible types warnings (and change
	pointer_* fields back to void *)

2005-03-30 21:41  molivier

	* vid.h, vid_glx.c, vid_null.c, vid_wgl.c: Removed GL_OpenLibrary
	and GL_CloseLibrary from "vid.h" and "vid_null.c"

2005-03-30 15:23  havoc

	* gl_backend.c: changed array pointer state to const float *
	instead of const void *

2005-03-28 04:33  havoc

	* cl_particles.c, gl_backend.c, gl_backend.h, gl_draw.c,
	gl_models.c, gl_rmain.c, gl_rsurf.c, r_explosion.c, r_lightning.c,
	r_shadow.c, r_sky.c: added a firstvertex parameter to
	R_Mesh_DrawMesh

2005-03-28 04:16  havoc

	* model_brush.c, model_shared.c, model_shared.h: save some memory
	by not allocating neighbors for q1bsp and q3bsp meshlists

2005-03-28 03:32  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, model_shared.h,
	portals.c, pr_cmds.c: changed surface->mesh to surface->groupmesh
	and added num_firsttriangle and num_firstvertex fields to
	msurface_t, this cuts the msurface_t size from 120 bytes to 88
	bytes, causing a 3.5% speed gain in a 37000 surface benchmark scene

2005-03-27 22:54  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, model_shared.c,
	model_shared.h: moved a number of msurface_t fields to a separate
	msurface_lightmapinfo_t structure which is allocated only for q1bsp
	maps, to save some memory and save some memory bandwidth (as these
	fields are not often accessed) moved collision triangles/vertices
	information out of surfmesh_t and into msurface_t

2005-03-27 17:46  havoc

	* gl_rsurf.c, model_brush.h: slight optimizations to bsp renderer

2005-03-27 17:43  havoc

	* gl_backend.c: removed an unneeded CHECKGLERROR

2005-03-27 01:15  havoc

	* r_shadow.c: fixed backwards bumps in r_shadow_glsl 1 mode

2005-03-27 00:22  havoc

	* cl_main.c, model_alias.c, model_alias.h, model_shared.h,
	pr_cmds.c: implemented tag attachments on skeletal .zym models and
	centralized the code dealing with tags in model_alias.c

2005-03-25 03:35  havoc

	* gl_rmain.c: added comments to the bloom code in R_BlendView to
	try to explain how it works

2005-03-24 06:49  havoc

	* model_brush.c, model_shared.c, model_shared.h: rearranged stale
	worldmodel removal a bit so that trying to load a level that
	doesn't exist doesn't mess up things on a server due to a partial
	reload

2005-03-24 06:48  havoc

	* r_sky.c: fixed skybox texture leak on level changes

2005-03-22 23:10  havoc

	* cl_main.c: disabled item bobbing by default

2005-03-22 16:16  havoc

	* view.c: view_ofs now affects intermission cameras, mods usually
	set view_ofs to '0 0 0' when going to intermission so this won't
	break anything, but allows Nexuiz to freeze frame the final moment
	with players still standing where they were

2005-03-22 16:15  havoc

	* cl_particles.c: fix decal fading so they really DO disappear
	eventually now, rather than hogging particle slots for all time

2005-03-21 12:47  havoc

	* gl_backend.c: fixed two more signed/unsigned mismatches

2005-03-21 01:58  havoc

	* gl_rsurf.c: fix 3 NULL vertex pointer crashes (caused by
	R_Mesh_State lingering where it shouldn't)

2005-03-21 01:57  havoc

	* gl_backend.c: fix a bug in R_Mesh_Finish introduced by the
	unsigned int i fix

2005-03-21 01:14  havoc

	* gl_backend.c: fix two runaway loops caused by unsigned int i

2005-03-21 00:44  molivier

	* makefile, makefile.inc: Added Mac OS X support to the makefiles.
	Note that the client doesn't compile yet since some files are still
	missing (vid_agl.c mainly)

2005-03-21 00:42  molivier

	* cl_particles.c: Moved some particles texture initialization loops
	in a separate function to work around an optimization bug in Mac OS
	X's GCC

2005-03-20 20:23  havoc

	* gl_backend.c: more unsigned (i/j/size variables)

2005-03-20 20:21  havoc

	* gl_backend.c, gl_backend.h: less unsigned

2005-03-20 20:18  havoc

	* gl_backend.c: more unsigned

2005-03-20 20:17  havoc

	* gl_backend.c, gl_backend.h: changed ActiveTexture and
	ClientActiveTexture to take unsigned

2005-03-20 20:12  havoc

	* gl_backend.c: changed a few things to unsigned

2005-03-20 18:05  havoc

	* gl_rsurf.c: surface renderer now does less R_Mesh_State calls,
	opting instead to change only individual pieces of state

2005-03-20 18:03  havoc

	* gl_backend.c, gl_backend.h: added R_Mesh_ functions for setting
	individual parts of state, to allow faster state changes in surface
	renderer

2005-03-20 18:02  havoc

	* glquake.h, vid_shared.c: added 1f and 4f
	glTexCoord/glMultiTexCoord function declarations

2005-03-20 16:52  havoc

	* cl_particles.c: fix PBLEND_MOD in fog

2005-03-18 21:45  havoc

	* cl_particles.c: reduced particle struct size (now 32768 particles
	is 3MB instead of about 3.8MB) by merging/removing some fields (and
	adding type structs to define rendering properties based on type to
	save a little space) removed 11 parameters to particle() function

2005-03-18 18:14  havoc

	* fs.c: fix a warning

2005-03-18 18:11  havoc

	* gl_rsurf.c: made detailtextures check r_detailtextures again

2005-03-18 18:10  havoc

	* common.c, common.h: added GAME_THEHUNTED

2005-03-17 18:04  havoc

	* gl_rsurf.c: removed r_floatbuildlightmaps cvar and related code
	(since it was only useful to dlights)

2005-03-17 17:58  havoc

	* gl_models.c, model_alias.c, model_alias.h: got rid of
	aliasskin/aliaslayer system for rendering models, now uses
	texture_t like maps do

2005-03-17 10:57  black

	* fs.c: Well, you might not like this change, but I dont like it
	the way it is, so it's up to you to fix it in a convenient way.  I
	certainly dont want to have my config files and qconsole.log (and
	possibly all other files DP creates) in some linux-style
	.darkplaces folder(!) somewhere hidden in my CVS home directory.

2005-03-17 02:17  havoc

	* model_brush.c: q3 shader parsing now sets more materialflags
	(such as transparency)

2005-03-16 23:21  havoc

	* gl_rsurf.c, model_brush.h, r_light.c, r_light.h: removed a lot of
	renderer cruft (such as 48% of gl_rsurf.c) as a result of the
	previous commit

2005-03-16 23:11  havoc

	* gl_draw.c, gl_models.c, gl_rmain.c, gl_rsurf.c, model_alias.c,
	model_brush.c, model_brush.h, model_shared.c, model_shared.h,
	r_light.c, r_light.h, r_shadow.c, render.h: merged q1bsp and q3bsp
	surface rendering disabled MarkLights based dlights (lightmap
	dlights, etc) because they're just too hard to maintain (broken
	AGAIN), and the code for them will be removed soon renamed
	r_shadow_whitetexture and related textures to r_texture_white and
	such, and moved them to gl_rmain for more general use

2005-03-15 10:42  havoc

	* host.c: Host_SaveConfig_f now refuses to save if Host_Frame
	hasn't completed the first frame yet (this means if it crashes
	during the first frame it won't save a config)

2005-03-15 10:12  havoc

	* menu.c: Willis updated map list in GAME_TRANSFUSION menus

2005-03-14 16:12  havoc

	* netconn.c: now searchs LAN for servers (using a broadcast message
	to port 26000) like Quake did

2005-03-14 16:09  havoc

	* lhnet.c: LHNET now enables broadcast send/receive on any UDP
	ports it opens

2005-03-14 13:16  black

	* cl_video.h, prvm_cmds.c, r_shadow.c: -Beautified a function just
	for fun (better variable names).  -Added the prvm builtin
	altstr_ins which inserts a new item into an  altstring.

2005-03-11 16:48  havoc

	* pr_edict.c: Willis disabled entity filtering based on
	skill/deathmatch in GAME_TRANSFUSION because it does the filtering
	in qc

2005-03-11 16:47  havoc

	* menu.c: Willis changed skill level numbers in GAME_TRANSFUSION
	menus

2005-03-11 05:13  molivier

	* fs.c, fs.h: Several fixes related to files opened in write or
	append mode, and to the ungetc character. Added FS_Purge (discard
	all buffered data, including the ungetc character)

2005-03-10 14:11  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, r_light.c: added
	basematerialflags/currentmaterialflags to texture_t which
	completely replace the SURF_* flags and SURFRENDER_* flags
	eliminated the flags and plane fields from q1bsp surfaces q1bsp
	texture_t generation now sets supercontents (eliminating need for
	the SURF_SOLIDCLIP surface flag) split R_UpdateTextureInfo into two
	versions for updating a single texture and updating a whole
	entity's textures respectively, so transparency rendering can now
	call R_UpdateTextureInfo instead of having duplicate code

2005-03-09 19:15  havoc

	* fs.c: disabled O_NONBLOCKING flag on win32

2005-03-09 15:42  havoc

	* gl_models.c, gl_rsurf.c, model_alias.c, model_brush.c,
	model_shared.h, r_shadow.c, r_shadow.h: slight code reduction to
	DrawShadowVolume functions

2005-03-09 15:41  havoc

	* collision.c: removed some unused code

2005-03-09 15:04  havoc

	* model_brush.c: merged some more q3bsp functions, now only loading
	and LightPoint/TraceBox differ

2005-03-09 15:01  havoc

	* collision.c: corrected an error message

2005-03-09 09:36  havoc

	* cl_demo.c, cl_screen.c, console.c, dpvsimpledecode.c, fs.c, fs.h,
	host.c, host_cmd.c, jpeg.c, menu.c, pr_cmds.c, prvm_cmds.c, wad.c:
	cl_capturevideo_raw* modes now use O_NONBLOCKING file access for
	more performance

2005-03-09 05:09  molivier

	* host.c, vid_shared.c: Moved audio CD initialization /
	finalization out of the video code so the CD music doesn't stop
	playing when doing a vid_restart.

2005-03-09 05:05  molivier

	* menu.c: We didn't exit the "Reset to defaults" menu when
	answering "yes". Moved the "vertical sync" line a bit lower in the
	video options menu

2005-03-09 05:03  molivier

	* cd_win.c: Fixed and updated a few error messages

2005-03-08 16:35  havoc

	* gl_rsurf.c: fixed bugs in q1bsp multitexture surface rendering
	(and singletexture detail rendering as well)

2005-03-08 16:24  havoc

	* gl_rmain.c, model_brush.c, model_shared.h, render.h: removed
	R_BoxVisible and added model->brush.BoxTouchingVisibleLeafs for
	more flexibility

2005-03-08 16:22  havoc

	* cl_screen.c: fixed gamma support in video saving (don't know why
	it was disabled before)

2005-03-08 16:22  havoc

	* snd_mix.c: removed the 1/4th volume scaledown on video capture

2005-03-08 09:56  havoc

	* fs.c: made FS_Tell and FS_Seek work when writing files

2005-03-08 07:20  havoc

	* gl_rmain.c, render.h: added R_BoxVisible (used instead of
	VIS_CullBox) rewrote portions of R_MarkEntities to be more
	efficient and more sane (and to use R_BoxVisible obviously)

2005-03-08 07:18  havoc

	* r_shadow.c: fixed a mistake regarding clusterlist

2005-03-08 06:09  havoc

	* model_brush.c: renamed Mod_Q1BSP_BoxTouchingPVS to
	Mod_Brush_BoxTouchingPVS and removed the Q3BSP version (which is no
	longer different)

2005-03-08 06:02  havoc

	* gl_rmain.c, gl_rsurf.c, r_shadow.c, render.h: added
	r_worldleafvisible flags array for more exact visibility checking
	(VIS_CullBox does not use this yet however, only rtlights do) moved
	r_pvsbits, r_worldsurfacevisible, r_worldleafvisible to gl_rsurf.c
	migrated r_pvsbits FatPVS call from just above R_WorldVisibility to
	inside it

2005-03-08 05:49  havoc

	* gl_rsurf.c: further cleaning of R_WorldVisibility, which now
	works the same on q1bsp and q3bsp (except that q3bsp always uses
	the pvs method since the loader doesn't generate portals yet, and
	doesn't provide a PointInLeaf function)

2005-03-08 05:48  havoc

	* model_brush.c, model_shared.c, portals.c: removed/changed a few
	mod_brushq1 checks

2005-03-08 05:16  havoc

	* model_brush.c, model_brush.h, model_shared.h: eliminated
	q3meffect_t (now uses q3deffect_t)

2005-03-08 05:10  havoc

	* model_brush.c, model_brush.h, model_shared.h: changed uses of
	q3mmodel_t to q3dmodel_t because there are no actual differences
	anymore

2005-03-08 05:05  havoc

	* model_brush.c, model_brush.h: changed brushq3 submodel
	firstsurface and firstbrush from pointers to integers

2005-03-08 04:51  havoc

	* cl_parse.c, cl_particles.c: reenabled CL_TeleportSplash (and
	removed a bogus parameter), reduced teleport light radius to
	improve performance

2005-03-07 18:48  havoc

	* host.c: fix continual setting of sys_ticrate to 0.01 due to float
	rounding errors (now has a slight error tolerance)

2005-03-07 17:50  havoc

	* gl_rsurf.c: slight optimization to q1bsp rtlight surface
	visibility checking, added surface visibility checking to q3bsp
	rtlight rendering (should now be on par with q1bsp rtlight
	rendering speed)

2005-03-07 17:39  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: added
	firstmodelbrush/nummodelbrushes fields to model struct, and moved
	brushes from brushq3 to brush, this eliminated all uses of the
	submodel structures in q3bsp (except during loading)

2005-03-07 17:27  havoc

	* gl_rsurf.c: another C99 lazy variable fixed

2005-03-07 15:28  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, model_shared.c,
	model_shared.h, portals.c, pr_cmds.c, r_light.c: merged
	q3msurface_t into msurface_t renamed brushq1./brushq3. surface
	stuff to brush.  surface->texinfo->texture is now also copied into
	surface->texture for convenient access (and consistency with q3bsp)
	the qc surface info extension has been made q3bsp friendly (however
	querying a surface's points won't give very sane results on q3bsp
	surfaces!) a little cruft removal in some structures

2005-03-07 12:55  havoc

	* model_brush.c: fixed q3bsp bug where firstmodelsurface was not
	being set (caused bmodels to render world surfaces instead of their
	own)

2005-03-07 05:07  molivier

	* cd_sdl.c, vid_sdl.c: Removed a couple of warnings when compiling
	with MSVC6

2005-03-06 13:26  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, model_shared.c,
	model_shared.h, portals.c, pr_cmds.c, r_light.c: a major rename -
	instead of q1bsp code having surf, and q3bsp code having face, both
	now use surface

2005-03-06 12:37  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, portals.c, pr_cmds.c:
	eliminated surf->poly_* fields and cleaned up Mod_LoadFaces a great
	deal

2005-03-06 11:47  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, model_shared.h: merged
	q3mtexture_t into texture_t, note that only the name and skin
	fields are shared, merging the rest is more difficult

2005-03-06 11:20  havoc

	* model_brush.c, model_brush.h: removed texture_t->number and
	q3mtexture_t->number

2005-03-06 11:16  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: moved brushq3.submodel
	to brush, removed brushq3.data_thismodel (instead looking it up
	using submodel), other minor cleanups

2005-03-06 11:00  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h, portals.c, r_light.c:
	moved brushq1 nodes/leafs/leaffaces/planes/portals fields to brush,
	along with brushq3 leafbrushes to make things even more consistent

2005-03-06 09:09  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, model_shared.h,
	portals.c, r_light.c: renamed q1bsp marksurfaces to leaffaces for
	consistency with q2bsp and q3bsp naming replaced q3mnode_t and
	q3mleaf_t with mnode_t and mleaf_t (which now contain supersets of
	the fields between the two bsp versions)

2005-03-06 08:22  havoc

	* model_brush.c, model_brush.h, model_shared.h: changed leafbrushes
	from pointers to ints to be consistent with leaffaces moved q3m*
	structs and stuff to model_brush.h

2005-03-06 08:12  havoc

	* gl_rsurf.c: moved pvs handling from R_Q3BSP_DrawFaces to
	R_WorldVisibility (now handles q1bsp and q3bsp), made
	R_Q3BSP_DrawFaces more similar to R_DrawSurfaces

2005-03-06 07:31  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: changed leafface
	references to ints (making leaffacenum obslete) for more
	consistency between q1bsp and q3bsp leaf structures

2005-03-06 06:58  havoc

	* gl_rmain.c, gl_rsurf.c, model_brush.c, model_brush.h,
	model_shared.h, portals.c, r_light.c, render.h: got rid of
	node->contents, leaf->contents kept (only needed temporarily during
	loading to generate collision hull 0), now checks node->plane to
	know if it is a node (leaf has a NULL plane pointer) fixed the very
	messed up contents translation in Q3BSP various other cleanups

2005-03-06 06:56  havoc

	* sv_phys.c: changed waterlevel checking to use SUPERCONTENTS
	instead of CONTENTS, this might be a slight speedup (hasn't
	completely gotten rid of use of CONTENTS though, because that still
	must be reported to the QC)

2005-03-06 06:50  havoc

	* collision.c: removed the commented out RecursiveHullCheckPoint
	function

2005-03-06 06:49  havoc

	* cl_particles.c: changed all uses of CL_PointQ1Contents to
	CL_PointSuperContents in particle system (except with WORKINGLQUAKE
	defined)

2005-03-06 06:48  havoc

	* bspfile.h: added SUPERCONTENTS_NODROP

2005-03-06 03:42  havoc

	* gl_rsurf.c: lazy variable declarations strike again

2005-03-06 03:35  havoc

	* gl_rsurf.c: variable declaration after function call...  oops

2005-03-05 08:13  havoc

	* gl_rsurf.c, model_shared.h: tweaked the order of checks in an if,
	and removed the previously mentioned pvs texture chain stuff from
	the header (forgot to commit this before)

2005-03-05 07:18  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, r_light.c: eliminated
	brushq1.pvs* variables, pvstexture surface chain stuff, and cleaned
	up related code

2005-03-05 02:40  havoc

	* gl_rsurf.c, mathlib.c, mathlib.h, model_brush.c, model_brush.h:
	more refactoring of q1bsp rendering

2005-03-03 06:21  havoc

	* model_shared.c: fixed Mod_AllocSurfMesh (doesn't crash now)

2005-03-03 06:20  havoc

	* gl_rsurf.c: cleaned up q1bsp surface rendering a bit more

2005-03-03 06:11  molivier

	* darkplaces-dedicated.dev, darkplaces.dev, makefile.inc,
	snd_ogg.c: - Toggled "strip executable" in the Dev-C++ project file
	and updated the version info - Added a Dev-C++ project file for the
	dedicated server - In Makefile.inc, some libs were listed twice in
	the command line while compiling a dedicated server on Win32 - A
	few very minor changes in snd_ogg.c

2005-03-03 05:45  havoc

	* gl_rsurf.c: cleaned surface drawing in q1bsp and q3bsp a bit

2005-03-03 04:50  havoc

	* gl_rsurf.c: some optimizations to q3bsp surface rendering

2005-03-03 01:23  havoc

	* menu.c, menu.h: Willis improved the Transfusion menu to support
	singleplayer

2005-03-02 22:02  havoc

	* model_brush.c, model_shared.h: q1bsp and q3bsp loaders now use
	model->meshlist for storing all the geometry of the surfaces (q1bsp
	loader does not yet enforce the 65536 vertex limit however)

2005-03-02 03:24  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: modified q3msurface_t
	to use a surfmesh (although not cleanly)

2005-03-02 03:03  havoc

	* model_brush.c, model_brush.h, model_shared.c, model_shared.h:
	improved/modified q1bsp surfmesh stuff for more general use (to
	make q3bsp able to use it)

2005-03-01 21:44  havoc

	* gl_textures.c, zone.c: improved r_texturestats output (now gives
	a total for each pool) and merged some similar code in it

2005-03-01 21:36  havoc

	* netconn.c: default sv_public to 1

2005-02-11 14:22  havoc

	* console.c: changed color prefix character to ^ (@ is not
	acceptable)

2005-02-11 14:20  havoc

	* keys.c: removed key-below-escape forced toggleconsole, so that
	german keyboards can type ^

2005-02-10 21:38  havoc

	* r_lerpanim.c: slight safety improvement in frameblend generation,
	may fix a crash Willis reported in Nexuiz

2005-02-07 09:46  havoc

	* host.c: now does a togglemenu if there were no demos started and
	not connecting to a server and not starting a server

2005-02-06 08:52  havoc

	* todo: 342

2005-02-06 08:47  havoc

	* cl_particles.c: rain drops now make rain splashes

2005-02-06 02:21  havoc

	* netconn.c: added Venim's dpmaster server (now up to 3 masters)

2005-02-05 12:39  black

	* netconn.c: -Only print queried servers once to the console.

2005-02-04 05:48  havoc

	* host.c, menu.c, pr_cmds.c: implemented DP_CON_STARTMAP extension
	which defines two configurable aliases to choose a start map

2005-02-04 03:50  havoc

	* cl_main.c, cl_parse.c, client.h: now lerps punchangle and
	punchvector

2005-02-04 03:04  havoc

	* vid_sdl.c: enable key repeat

2005-02-04 02:30  havoc

	* gl_rmain.c, r_light.c, render.h: realtime dlights are now
	overridden by gl_flashblend (as was intended)

2005-02-04 02:19  havoc

	* r_shadow.c: fixed r_editlights_edit cubemap (it was calling
	strlcpy with the wrong length limit)

2005-02-04 01:54  havoc

	* cl_particles.c: cl_particles_size works again

2005-02-04 01:23  havoc

	* r_shadow.c: changed 3 clamp calls in the GLSL fragment shader to
	max calls instead, for a small speed gain (at least on ATI)

2005-02-04 01:15  havoc

	* vid_glx.c: vid_vsync 0 now causes a warning due to the fact
	GLX_SGI_swap_control has no way to turn off vsync, and suggests
	vid_restart

2005-02-03 23:29  havoc

	* vid_glx.c, vid_wgl.c: vid_usingvsync now set to false after a
	vid_restart (so that vsync will be set again if it's on)

2005-02-03 23:19  havoc

	* cl_collision.c, cl_collision.h, cl_input.c: no longer hits
	triangles of your own player model when tracing the prydoncursor
	from first person view

2005-02-03 23:18  havoc

	* sbar.c: removed unused variable font_size

2005-02-03 04:17  molivier

	* cl_parse.c, common.c, common.h, console.c, fs.c, host.c,
	host_cmd.c, keys.c, model_brush.c, netconn.c, pr_edict.c,
	prvm_edict.c, r_shadow.c, r_sky.c, sbar.c, snd_mem.c, sv_main.c,
	sys_linux.c, sys_sdl.c, sys_shared.c, sys_win.c: Replaced snprintf
	and vnsprintf calls by dpsnprintf and dpvsnprintf calls, to ensure
	coherence among the various platforms (the Win32 versions of those
	functions aren't C99 compatible). dp(v)snprintf functions return -1
	when the buffer is too small to contain all the data, and insure
	null termination.

2005-02-02 13:14  black

	* sbar.c: Commented out the printing of the weapon number in the
	weapon selection.

2005-02-02 12:54  black

	* menu.c, sbar.c: FCVS:
	-------------------------------------------------------------------
	--- -Changed the scoreboard for nexuiz (only).	-Fixed a bug in the
	old quake menu.

2005-02-02 12:25  black

	* console.c: Fixed a bug and also added support color support to
	the chat messages.

2005-02-02 11:30  black

	* console.c: Added support for color tags to the console. Use the @
	char followed by a number to switch the color. Currently I have
	only the color indices 0-7 are valid.

2005-02-02 01:12  molivier

	* snd_win.c: Fixed Win32 wav sound driver (thanks to fuh for the
	bug report). Cleaned up some code in the process

2005-01-28 18:21  havoc

	* r_shadow.c: reduced offsetmapping from 4 sample to 3 sample to
	make it work within Radeon 9500-9800/X300 limits

2005-01-27 14:15  havoc

	* model_brush.c: disabled snapping of render patch vertices
	(collision patch vertices are still snapped)

2005-01-26 14:15  havoc

	* menu.c, pr_edict.c, sv_main.c: added support for skill values
	outside the range 0-3 GAME_TRANSFUSION now uses skill range 0-4

2005-01-26 14:11  havoc

	* gl_backend.c, gl_draw.c: fixed fov calculations so viewzoom isn't
	so weird anymore, this also fixes the 'double zoom' bug (viewzoom
	was being applied twice)

2005-01-26 01:12  havoc

	* r_shadow.c: fix permutation failed warning to print the right
	thing

2005-01-25 19:39  havoc

	* gl_backend.c: fix a stupid reverse bug (was using ! where I
	shouldn't)

2005-01-25 19:38  havoc

	* r_shadow.c: print glsl/light as the shader that failed

2005-01-25 17:40  havoc

	* gl_backend.c, r_shadow.c: disable shader permutations that fell
	back to software fragment shader (software vertex shader is ok)

2005-01-25 15:59  havoc

	* r_shadow.c: fixed the embedded fragment and vertex shaders
	(somehow mispasted fragment shader into both, and the fragment
	shader was the old NVIDIA-only one)

2005-01-25 12:11  havoc

	* host_cmd.c, pr_cmds.c, prvm_cmds.c: removed obsolete FS_Close
	call in LoadGame fixed two int -> unsigned char conversion warnings

2005-01-25 12:05  havoc

	* cmd.c, common.c, console.c, fs.c, fs.h, host.c, host_cmd.c,
	menu.c, model_brush.c, pr_cmds.c, pr_edict.c, prvm_cmds.c,
	r_shadow.c: now supports Mac and Windows newlines everywhere all
	text files are now saved in UNIX format removed FS_Gets and
	FS_Getline (they were only used by the loadgame code along with
	sscanf...  bad) added FS_UnGetc (needed for Windows newline support
	in FRIK_FILE fgets)

2005-01-24 17:32  havoc

	* r_shadow.c: fix stupid typo in GLSL shader

2005-01-24 15:36  havoc

	* r_shadow.c: made GLSL lighting work on ATI (NVIDIA was letting me
	use sloppier code) added more CHECKGLERROR calls during GLSL
	lighting rendering

2005-01-24 14:05  havoc

	* r_shadow.c: changed offsetmapping bias to -0.04 so that it never
	samples off the model skins

2005-01-24 13:51  havoc

	* r_shadow.c: added hacky workaround for nvidia GLSL bug (state
	screwups after switching back to program 0 which go away if I draw
	something (even an empty Begin...End) after the switch)

2005-01-24 13:49  havoc

	* model_brush.c, model_shared.h: added surfaceparm pointlight to
	known surfaceparm list

2005-01-24 12:27  havoc

	* r_shadow.c: changed the flat bump texture (for no bumpmap
	textures) to have a 128 height instead of 255 so it's not affected
	by offset mapping

2005-01-24 10:32  havoc

	* r_shadow.c: switch back to program 0 when done setting up GLSL
	shaders

2005-01-23 14:19  havoc

	* r_shadow.c: added documentation on glsl cvars to r_shadow_help

2005-01-23 14:16  havoc

	* r_shadow.c: GLSL shader per pixel lighting implemented (with
	optimized permutations) offset mapping implemented in GLSL lighting
	shader (looks really cool if a little slow, enabled by default)
	cleaned up some internal handling
	ambientscale/diffusescale/specularscale/gloss mode design issues in
	R_Shadow_RenderLighting

2005-01-23 14:12  havoc

	* gl_backend.c, gl_backend.h: rearchitected renderer backend to
	have support for independent number of texture image units, texture
	coord array units, and texture env blend units added
	GL_Backend_CompileProgram and GL_Backend_FreeProgram for GLSL
	support

2005-01-23 14:10  havoc

	* image.c: fixed backwards normalmaps generated from bumpmaps (...
	weird!), and now stores bumpmap into alpha channel of normalmap for
	use by shaders

2005-01-22 22:39  havoc

	* r_shadow.c: fixed blendfunc issues with single pass lighting
	(such as ambient pass) which were using GL_DST_ALPHA when they
	shouldn't have been (fixes the 'bright shadows' issue which
	occurred from multiple lights in some cases) added a usestencil
	variable in rtlight rendering just to make it a little more clear
	in the code

2005-01-22 22:36  havoc

	* lhnet.c: fixed scaling of cl_netlocalping cvar (it was
	multiplying by 1000 instead of dividing)

2005-01-20 23:30  havoc

	* vid_shared.c: disable vid_vsync by default

2005-01-20 19:34  havoc

	* vid_shared.c: if hardware gamma setting fails, try to restore
	system gamma anyway (Windows stupidity)

2005-01-20 19:22  havoc

	* common.c, common.h, fs.c: changed GAME_ init data to have a
	separate user config directory for each game type (~/.darkplaces
	for most), and two game dirs rather than an implied id1 (so now
	nexuiz doesn't look for id1 for example)

2005-01-19 01:09  molivier

	* cl_demo.c, console.c, console.h, fs.c, fs.h, host_cmd.c,
	snd_null.c, sound.h: - Got rid of all the FILE* stuff in the FS
	code, relying on low-level functions exclusively. It now manages
	its own per-file 2KB read buffers.  Writes are no longer buffered. 
	- Removed function "FS_Flush" and cvar "log_sync", since they're no
	longer relevant - Package's file descriptors are now duplicated
	when opening a new file inside a package, to make package
	substitution at run time impossible on non-Win32 systems. Added a
	couple of "lseek" when necessary (before "read" calls in
	"FS_Read").  - Removed unused functions "FS_Eof", "Log_Print" and
	"S_ClearBuffer" - Several other minor changes and fixes in the FS
	code - Changed log open mode to "a" from "at" since 't' seems a
	Win32-only extension

2005-01-18 02:02  molivier

	* darkplaces-dedicated.dsp, darkplaces-sdl.dsp: DSP files must be
	treated as binary files

2005-01-17 17:38  havoc

	* netconn.c: disabled HostCache_Test code because it's wrecking the
	server browser in each release build

2005-01-17 15:30  havoc

	* sv_phys.c: now adapts sv.num_edicts according to how many edicts
	are found by SV_Physics, so if a lot of temporary stuff spawns and
	removes itself it will knock the num_edicts back down

2005-01-17 15:17  havoc

	* sv_phys.c: implemented the 'don't move projectiles on first
	frame' hack a different way

2005-01-17 14:52  havoc

	* sv_phys.c: reverted back to per-entity
	prethink-think-move-postthink process to fix mods

2005-01-17 14:11  havoc

	* sv_phys.c: now supports nextthink < 0 again... sigh

2005-01-16 21:35  havoc

	* cl_collision.c: hush fraction out of bounds warnings in
	CL_SelectTraceline

2005-01-14 18:23  havoc

	* cl_particles.c: added saving of particles/nexbeam.tga (commented
	out like the particles/particlefont.tga saver is)

2005-01-14 18:11  havoc

	* cl_particles.c: fixed a bug in texture generator that made all
	the particles too large in the particle font by one pixel (now
	they're smaller than their frame, like they were supposed to be),
	this fixes all the sharp edges on particles changed nexbeam to be
	quite a bit brighter in the center than the sides (as I really
	wanted it all along) nexbeam no longer scrolls its texture (looked
	odd)

2005-01-14 18:09  havoc

	* cl_parse.c: nexbeam is now white and 8 units wide (rather than
	two beams, one 12 units and one 5 units and each a different color)

2005-01-14 18:08  havoc

	* r_lightning.c: normalize after the CrossProduct

2005-01-14 17:53  havoc

	* gl_rmain.c: fix the odd distortion on beam polygons that tends to
	make their end kind of vanish to a point

2005-01-14 15:39  havoc

	* r_shadow.c: fixed a crash with lights that have no clusters (a
	light outside the level) by allocating the clusterpvs even if there
	are no clusters

2005-01-13 10:26  havoc

	* r_shadow.c: now skips entire rtlight rendering process if light
	is too dark or does not emit any surface light - another 30% speed
	gain

2005-01-13 00:14  havoc

	* sv_phys.c: migrated push thinks back to SV_Physics_Pusher to fix
	a qc crash when touching a door

2005-01-12 23:06  havoc

	* darkplaces.txt: added Ludwig Nussel to Thanks to section

2005-01-12 23:02  havoc

	* collision.c: cloned and rewrote Collision_TraceLineTriangleFloat
	to optimize it slightly

2005-01-12 22:45  havoc

	* snd_main.c: forgot a parameter to S_FreeSfx

2005-01-12 22:40  havoc

	* snd_main.c: no longer calls S_StopAllSounds when sound system
	restarts, and cleaned up a sound freeing loop (just nicer code)

2005-01-12 22:36  havoc

	* cl_parse.c, host_cmd.c, sv_main.c: shuffled around some
	SCR_BeginLoadingPlaque calls so now SV_SpawnServer causes a loading
	plaque and ParseServerinfo only draws a loading plaque if there's
	no local server (which already did one), this cleans up the loading
	plaque management a great deal

2005-01-12 22:32  havoc

	* world.c: bound fractions after trace code

2005-01-12 22:31  havoc

	* snd_null.c, sound.h: added S_ClearBuffer to sound.h and
	snd_null.c

2005-01-12 22:29  havoc

	* netconn.c: NetConn_Read no longer runs cl_packetloss rejection
	code if there is no packet (slight optimization/sanity improvement)
	removed another SCR_BeginLoadingPlaque call

2005-01-12 22:23  havoc

	* cl_screen.c, screen.h: changed scr_conlines to be a local
	variable named conlines now draws fullscreen console (between
	levels) without altering scr_con_current

2005-01-12 22:21  havoc

	* cl_demo.c: removed a SCR_BeginLoadingPlaque when starting to play
	a demo removed clearing of scr_conlines (useless)

2005-01-12 22:17  havoc

	* keys.c: use vid.conheight instead of scr_conlines in history
	scrolling don't call SCR_UpdateScreen twice

2005-01-12 22:13  havoc

	* gl_backend.c: remove a silly scr_conlines check

2005-01-12 22:11  havoc

	* cl_collision.c: bound the fractions in CL_TraceLine instead of
	posting a warning, as out of bounds fractions have no harmful
	effects during a trace (to allow the bounds in the trace code to be
	removed)

2005-01-12 22:07  havoc

	* sv_phys.c: rearranged entire SV_Physics process (which may break
	mods but I hope not!): each operation (move, prethink, think,
	postthink) is now a separate stage (as an optimization mainly)
	moves are now done before prethinks, thinks, and postthinks so that
	think-spawned entities do not move on their first frame (this fixes
	the issue that all projectiles appeared some distance from the
	player, dependent on server framerate, so rocket trails and other
	things look correct) added a relink of any entity that moves for
	any reason (just an origin compare), not sure if this is a good
	idea but it is more consistent

2005-01-12 22:01  havoc

	* model_brush.c: changed numskins to 1 on q1bsp and q3bsp and
	numframes to 2 on q3bsp, to suppress some network warnings about
	non-existent frames/skins

2005-01-12 22:00  havoc

	* cl_parse.c: no longer kicks off client if it got signon 1 twice
	during a reconnect (not sure why this happens occasionally though)

2005-01-12 21:58  havoc

	* cl_main.c: slight optimization to CL_RelinkNetworkEntities to
	scan entities faster

2005-01-12 21:57  havoc

	* cl_collision.c: optimizations to CL_SelectTraceLine to scan
	entity list faster

2005-01-12 21:55  havoc

	* gl_models.c: don't generate vertex/normal/tangents until they are
	needed by lighting passes, this greatly improved framerates in
	nexuiz because a lot of models were having nothing to draw
	(apparently), perhaps their light color was black (odd...)

2005-01-11 06:47  black

	* sbar.c: -Now the Nex weapon list works correctly again.

2005-01-11 06:33  black

	* host_cmd.c, sbar.c: -The NEXUIZ_PLAYERMODEL is not game specific
	anymore.  -A small cosmetic change to the Nex weapon list code.

2005-01-09 01:07  molivier

	* common.h, filematch.c, fs.c, host.c, jpeg.c, prvm_cmds.c,
	snd_ogg.c, sys.h, sys_shared.c: - Sys_LoadLibrary now accepts
	several possible names for a DLL (it fixes the PK3 and Vorbis
	supports on NetBSD) - Added a check for absolute paths in
	FS_CheckNastyPath - Moved "COM_Shutdown" after "Log_Close" in the
	shutdown process to make sure the FS code is still active when we
	close the log file - Factorized some code in the FS module - Made
	the "listdirectory" parameter "const" - Fixed a warning in
	"prvm_cmds.c" when compiling with GCC

2005-01-07 04:20  havoc

	* snd_alsa.c: added #include "snd_main.h" to make this compile
	again (thanks to Ludwig Nussel for the patch)

2005-01-07 04:19  havoc

	* fs.c, snd_ogg.c: changed libz.so to libz.so.1, libvorbis.so to
	libvorbis.so.0, and libvorbisfile.so to libvorbisfile.so.3 (thanks
	to Ludwig Nussel for the patch)

2005-01-07 03:52  havoc

	* fs.c: thanks to Ludwig Nussel for this patch to add ~/.darkplaces
	support for non-Windows users

2005-01-06 05:31  havoc

	* r_shadow.c: swapped order of incr/decr renders for static shadow
	volumes (for some reason I had decr first, then incr, doesn't
	matter since they don't clamp but looks odd in the code) remove
	quotes on cubemap names in .rtlights file loader (forgot to commit
	this previously)

2005-01-03 07:47  tomaz

	* cgamevm.c, cgamevm.h, cl_main.c, cl_parse.c, cl_particles.c,
	client.h, cmd.c, cmd.h, common.c, common.h, fs.c, host.c, menu.c,
	pr_cmds.c, pr_edict.c, progs.h, zone.c, zone.h: Cleaned up alot
	more memory leaks. (still get 720 leaks just running demo1.dem)

2005-01-03 06:22  molivier

	* netconn.c: Fixed a warning about an uninitialized variable

2005-01-03 06:20  molivier

	* host.c, snd_main.c, snd_null.c, sound.h: Added S_Terminate to
	free all sound resources at shutdown

2005-01-01 13:52  tomaz

	* cl_main.c, client.h, host.c: Added CL_Shutdown which took care of
	14 memory leaks totaling over 30mb. (needs more added to it)

2005-01-01 11:00  black

	* cmd.c, cmd.h, host.c, prvm_cmds.c: -Added 2 builtins to make the
	hostcache stuff easier extensible.   More to follow soon.  -Cmd now
	has a shutdown function so it doesnt leak anything (hopefully).

2004-12-28 14:29  black

	* netconn.c: -Changed the name of PingTest to Test (it now also
	adds a name to the entry) -Now the test function is enabled by
	default (just so Vermeulen can play around  with it) - there
	shouldnt be any conflicts with real servers since I shift the  ping
	of all emulated servers by 250 ms.

2004-12-28 08:27  black

	* netconn.c: -Fixed a minor bug in ResetMasks.

2004-12-27 08:54  black

	* netconn.c, netconn.h, prvm_cmds.c: -Added support for 10
	hostcache masks, which will be at the same time.   5 will be
	concatenated with AND and the other 5 with OR, so you'll have  
	plenty of possibilities to mask whatever you want.  -Changed the
	mask structure and function to be a bit more generic.  -Added 3 new
	comparison operators (NOTEQUAL, CONTAINS and NOTCONTAIN - the 
	latter two for strings) -Adapted the builtins to work with multiple
	masks.

2004-12-26 07:39  black

	* client.h, keys.c, netconn.c, prvm_cmds.c: -Added a couple of VM
	builtins.

2004-12-25 15:53  havoc

	* darkplaces.txt: Updated email address in readme. (thanks to
	zarquon for pointing out that it was outdated)

2004-12-22 16:18  havoc

	* gl_rmain.c: changed r_bloom_resolution behavior to have a
	non-square texture to match the view width/height aspect changed
	default r_bloom_resolution from 256 to 320 changed r_bloom_blur to
	adapt to resolutions (using 320 as a base value - blur 8 is 8 pixel
	blur at resolution 320, 16 pixel blur at 640, etc)

2004-12-22 15:10  black

	* netconn.c, netconn.h, prvm_cmds.c: -Fixed a wrong parameter type
	in netconn.  -Made hostcache_cachecount public again.  -Added
	altstr_set to the new VM.  -Started work on the new hostcache
	interface for the menu qc.

2004-12-22 10:19  havoc

	* sv_main.c: don't send a bunch of svc_precache messages in the
	serverinfo packet (no longer produces svc_precache messages if
	server state is ss_loading)

2004-12-22 07:43  black

	* menu.c, netconn.c: -Fixed the binary insert in the hostcache. 
	-Fixed a bug in the old menu's serverlist.

2004-12-21 16:12  havoc

	* netconn.c: some cleaning of the hostcache code made the binary
	search insert loop actually do something

2004-12-21 14:26  havoc

	* todo: 334

2004-12-21 13:53  black

	* netconn.c: -Fixed a minor bug in the mask function

2004-12-21 13:41  black

	* menu.c, netconn.c, netconn.h, prvm_cmds.c: -Added a new hostcache
	interface:  * Ascending und descending sorting by various fields is
	supported.   * Its possible to mask entries (substrings or
	comparisons for numbers).

2004-12-21 08:51  havoc

	* collision.c: fixed up a number of nudging bugs in
	Collision_TraceLineTriangleFloat

2004-12-21 08:48  havoc

	* collision.c: some cleanup and hopefully improved accuracy

2004-12-20 12:50  havoc

	* sv_main.c: colormod now works

2004-12-20 12:00  havoc

	* cvar.c: save seta cvars with the seta command, and normal ones
	without it

2004-12-20 01:58  molivier

	* jpeg.c, model_alias.c, snd_ogg.c: - Fixed JPEG support on Mac OS
	X - Fixed Ogg Vorbis support on Mac OS X (the vorbis DLL is now
	also loaded manually since some OSes don't do that for us) - Fixed
	loading of MD3 models on big-endian CPUs

2004-12-19 14:55  black

	* prvm_cmds.c: -Fixed a "bug" in PRVM_iscachedpic - it always
	returned true and thus no  images were precached (now it always
	returns false and the menu halts for  ~4 seconds after starting)

2004-12-19 06:40  black

	* pr_edict.c, progs.h, sv_main.c, todo: -Added the cvar sv_progs,
	which allows you to set the name of the server	progs file.

2004-12-18 18:12  tomaz

	* todo: 332

2004-12-18 18:10  havoc

	* todo: 334

2004-12-18 18:03  tomaz

	* darkplaces-dedicated.dsp, darkplaces-sdl.dsp, darkplaces.dsp,
	darkplaces.dsw: Projects for win32 dedicated and win32 SDL builds.

2004-12-18 17:27  tomaz

	* dedicated.dsp: Remove this file

2004-12-18 17:09  havoc

	* darkplaces.txt, vid.h, vid_glx.c, vid_shared.c: GLX mode now
	supports GLX_SGI_swap_control for vid_vsync

2004-12-18 17:08  tomaz

	* darkplaces.dsw, dedicated.dsp: Adding a MSVC6 project file to
	build the win32 darkplaces-dedicated.

2004-12-18 17:02  havoc

	* vid_wgl.c: fixed misnamed variables

2004-12-18 16:48  havoc

	* cl_demo.c: removed videosync code from timedemo

2004-12-18 16:47  havoc

	* vid_wgl.c: VID_Finish in WGL now turns off videosync during
	timedemos

2004-12-18 15:59  black

	* cl_main.c, cl_video.c, cl_video.h, host.c: -CL_Video now allows
	multiple streams again. It is registered as a r_module	now and
	automatically restores the textures on r_restart.

2004-12-18 13:31  tomaz

	* todo: 338

2004-12-18 13:20  tomaz

	* todo: 338

2004-12-18 13:17  tomaz

	* host.c: Fixed the sys_ticrate bounds checking, it was constantly
	setting it to 0.1 when it is already 0.1

2004-12-18 12:18  tomaz

	* cl_demo.c: Disabled vsync when doing a timedemo.

2004-12-18 03:22  black

	* cl_video.c, cl_video.h: -Castrated the new CL_Video subsystem. It
	doesnt allow more than 1 video	stream at a time again. I've moved
	the texture pool stuff into OpenVideo  and CloseVideo, so it should
	work exactly like the old code.

2004-12-18 00:12  molivier

	* fs.c: - Fixed PK3 support for Mac OS X - DP no longer considers
	empty PK3s as invalid

2004-12-17 22:40  havoc

	* vid_shared.c: made sensitivity affect cl_prydoncursor

2004-12-17 20:11  havoc

	* todo: 341

2004-12-17 18:40  havoc

	* cl_screen.c, gl_backend.c, gl_backend.h, gl_rmain.c,
	gl_textures.c, menu.c, r_shadow.c, render.h: added Bloom effect
	(r_bloom* cvars) added Bloom effect cvars to graphics options menu
	cleaned up r_speeds variables (c_*) which were being declared and
	externed and cleared all over the place (that's most of these
	files)

2004-12-17 17:37  havoc

	* cl_main.c, client.h, menu.c, model_shared.c: renamed
	cl_stainmapsclearonload to cl_stainmaps_clearonload to make it
	ignore the setting in old configs

2004-12-17 17:24  havoc

	* cl_main.c: cl_stainmapsclearonload now defaults to 1 (as it was
	meant to), not that this will help anyone with it already saved to
	their config

2004-12-17 07:51  havoc

	* pr_cmds.c, fs.c: removed dangerous filename checks from FRIK_FILE
	code added FS_CheckNastyPath function which is called by FS_Open,
	so now dangerous paths are rejected everywhere

2004-12-17 06:03  black

	* console.c: -Fixed a bug in the centering code.

2004-12-17 05:47  black

	* console.c: -Added centered notify output for GAME_NEXUIZ.

2004-12-16 09:57  black

	* cl_parse.c, client.h: -Now playermodel and playerskin finally
	work correctly (hopefully).

2004-12-15 01:11  molivier

	* console.c, host.c: vsprintf -> vsnprintf

2004-12-14 14:44  havoc

	* todo: 339

2004-12-14 07:01  havoc

	* cl_parse.c: don't warn about svc_precache failing to precache
	sounds if snd_initialized is false (-nosound or -safe was used)

2004-12-14 01:09  molivier

	* makefile.bsd: Oops... Fixed my fix to BSD makefile

2004-12-13 08:51  black

	* prvm_edict.c: -Fixed another bug introduced by me, affecting the
	detection of a valid  time global in the new VM.

2004-12-13 08:20  black

	* host_cmd.c, pr_edict.c, progdefs.h, progs.h, sv_main.c,
	sv_user.c: -Fixed the stupid bug introduced by my
	NEX_PLAYERMODEL/NEX_PLAYERSKIN commit.	-Hopefully playermodel and
	playerskin work still now.

2004-12-13 07:41  molivier

	* makefile.bsd: Fixed BSD makefile for NetBSD

2004-12-13 07:00  molivier

	* prvm_exec.c: Fixed a warning in MSVC6

2004-12-13 02:40  molivier

	* sv_main.c: Fixed model automatic precaching in the new network
	protocol

2004-12-10 10:43  black

	* prvm_cmds.c: -Converted some of the altstring functions to
	builtins -Fixed a bug in the DrawQueue - it was calculating the
	clip area wrongly

2004-12-10 02:55  molivier

	* menu.c: Added BB_Power to the Transfusion map list

2004-12-10 02:55  molivier

	* cl_video.c: Removed a couple of warnings when compiling with GCC

2004-12-08 07:36  molivier

	* snd_main.c: A few minor changes in the sound code

2004-12-06 05:32  black

	* pr_exec.c: -Fixed another signed/unsigned warning after the type
	change of func_t.

2004-12-05 05:58  black

	* cl_video.c, pr_comp.h, pr_execprogram.h: -Fixed a minor bug in
	CL_Video -Changed func_t from int to unsigned int - probably this
	breaks some things  but at least it fixes an annoying crash of the
	DP with the current Nexuiz  build.

2004-12-04 13:08  black

	* cl_video.c, cl_video.h, gl_draw.c, prvm_cmds.c: -Added video
	streaming support to the new VM -Changed again a lot of CL_Video
	(mostly bugs and logical errors) -It doesnt append the prefix now,
	but only checks whether it matches  or not - if it doesnt it doesnt
	load the video.

2004-12-04 08:15  black

	* cl_main.c, cl_video.c, cl_video.h, gl_draw.c, host.c,
	prvm_edict.c, todo: -Added the console command prvm_globalset
	-Rewritten CL_Video to support multiple video streams -Fixed a bug
	in the new VM's epair parser The only problem CL_Video now has, is
	that it doesnt use TEXF_FRAGMENT right now. Ive added a more
	general description of this problem to the todo list.

2004-12-03 11:41  havoc

	* cl_main.c, cl_screen.c, client.h, gl_backend.c, gl_models.c,
	gl_rmain.c, gl_rsurf.c, model_brush.c, r_explosion.c, r_light.c,
	r_lightning.c, r_shadow.c, r_sky.c, render.h, view.c: some
	renderer/client separation cleanup, migrated some things to
	r_refdef to eliminate renderer references to cl. fields

2004-12-03 10:58  havoc

	* sv_main.c: fixed precache problems in non-DARKPLACES6 protocols

2004-12-03 10:57  havoc

	* cl_input.c: fixed a Sys_Error in the client when connected to
	QUAKE protocol servers (it was trying to send an empty message)

2004-12-03 06:15  molivier

	* conproc.c, keys.c, quakedef.h, todo: Added "ctype.h" to the list
	of standard headers in "quakedef.h". Cleaned up the todo file a bit
	(yes, DP works with zipped id1 PAKs)

2004-12-03 00:32  molivier

	* common.h, keys.c, snd_sdl.c, sys_shared.c, vid_sdl.c: - DP now
	defines MACOSX when relevant - added a "Mac OS X" string in
	Sys_Shared_EarlyInit - removed an unused "rcsid" string - fixed SDL
	audio on big endian systems - fixed SDL video initialization on Mac
	OS X

2004-12-02 21:03  havoc

	* sv_user.c: don't let clients kill server with bogus
	cursor_entitynumber values

2004-12-02 06:25  black

	* cl_main.c, common.c, host_cmd.c, pr_cmds.c, pr_edict.c,
	progdefs.h, server.h, sv_main.c, sv_user.c, todo: Ive done three
	todo items: -Added support for ' strings in Com_ParseToken.  -Added
	support for " and ' as end tokens in Com_ParseToken.  -Added the
	NEXUIZ_PLAYERMODEL and NEXUIZ_PLAYERSKIN extensions.  The last
	needs to be tested though. Hopefully it works.

2004-12-02 01:46  molivier

	* cd_sdl.c, common.c, conproc.c, console.c, console.h, fs.c,
	snd_sdl.c, snd_win.c, sys_shared.c, vid_wgl.c: - Removed
	Con_SafePrint and Con_SafePrintf since they now does the same
	things as Con_Print and Con_Printf - Moved log initialization right
	after memory initialization to make the log functions available as
	early as possible - Moved the removal of "qconsole.log" (when
	-condebug is in the command line) in FS_Init - Moved the "Console
	initialized." message so it is actually printed at console -
	Removed the declaration of "con_chars" (it doesn't exist anymore)

2004-12-01 15:19  havoc

	* cl_screen.h, gl_backend.c: implemented scr_screenshot_gamma in
	screenshot saving (previously only implemented in video saving -
	oops)

2004-12-01 15:14  havoc

	* cd_bsd.c, cd_linux.c, cd_sdl.c, cd_shared.c, cd_win.c,
	cl_parse.c, console.c, fs.c, gl_backend.c, host.c, host_cmd.c,
	model_brush.c, snd_alsa.c, snd_mem.c, sv_phys.c, sys.h,
	sys_shared.c, vid_sdl.c, vid_shared.c, world.c: changed a lot of
	Con_DPrint/Con_DPrintf calls to Con_Print/Con_Printf (non-technical
	things like device errors which should be seen even without
	developer on) merged Sys_Print code into Con_Print and changed all
	other Sys_Print/Sys_Printf calls to calling Con_Print/Con_Printf or
	Con_DPrint/Con_DPrintf instead rewrote Con_Print so that timestamps
	are printed only at the start of each line (or just after the 0x01
	or 0x02 characters used for chat messages), not during partial line
	prints, and timestamps now apply to all output destinations (log,
	console, terminal)

2004-12-01 15:13  havoc

	* sv_user.c: fix a typo

2004-12-01 13:49  havoc

	* sv_user.c: modified PRYDON_CLIENTCURSOR extension to reset
	cursor_trace_ent to world if the entity it is referencing is
	currently freed (as requested by FrikaC)

2004-12-01 13:48  havoc

	* cl_input.c: cleaned up CL_SendMove a lot, added notes on number
	of bytes used for different protocols made CL_SendMove never send a
	clc_ackframe for frame 0 in any latestframenums slots made
	CL_SendMove discard only the clc_move portion of the first two
	messages (the ones dropped to avoid input leftover from the
	previous level), still sending the clc_ackframe message changed
	CL_SendMove to not accumulate move messages but just send the
	latest (may improve cursor issues in prydon gate using
	non-clientcursor mode)

2004-12-01 06:03  molivier

	* cl_parse.c: Removed wrong FIXME comment (in-game precached sounds
	don't need SFXFLAG_SERVERSOUND)

2004-12-01 06:00  molivier

	* fs.c, todo: Fixed FS_Seek for unpacked files when FS_USESYSCALLS
	is defined (should fix HalfLife WAD loading)

2004-12-01 00:20  molivier

	* todo: 341

2004-11-30 23:59  havoc

	* sv_main.c: fix annoying warnings about weaponmodel ""

2004-11-30 23:57  havoc

	* todo: 342

2004-11-30 23:45  havoc

	* sv_main.c: changed order of tests in deciding whether to do
	culling on a bmodel entity to fix uninitialized variable warnings
	(thanks Elric)

2004-11-30 23:40  havoc

	* cl_main.c: reset animation interpolation on weaponmodel when
	model changes (thanks Elric)

2004-11-30 23:20  havoc

	* cl_particles.c: decals now render immediately rather than being
	transparency sorted, this generally resolves the issues with decals
	hiding sprites and lightning beams, though it's debatable whether
	the new interaction with water and transparent bmodels is really an
	improvement

2004-11-30 22:12  havoc

	* gl_rmain.c: now clears screen at startup to prevent garbage from
	being seen around loading plaque in windows

2004-11-30 22:07  havoc

	* darkplaces.txt, vid_wgl.c: defaulting to nodinput mode again due
	to problems with dinput mode

2004-11-30 21:39  havoc

	* cl_collision.c, cl_input.c, cl_main.c, cl_parse.c, client.h,
	common.c, gl_draw.c, gl_models.c, gl_rsurf.c, host.c, host_cmd.c,
	input.h, pr_cmds.c, pr_edict.c, progs.h, protocol.c, protocol.h,
	quakedef.h, r_shadow.c, r_sprites.c, sbar.c, server.h, sv_main.c,
	sv_user.c, vid_glx.c, vid_null.c, vid_sdl.c, vid_shared.c,
	vid_wgl.c, view.c: implemented PRYDON_CLIENTCURSOR extension
	(clientside mouse pointer that feeds back information to the
	QuakeC) added DP_BUTTONUSE extension (+use/-use button) added
	DP_BUTTONCHAT extension (true while input is not focused on the
	game) reimplemented DP_ENT_COLORMOD extension due to popular
	request, and changed its definition to allow colors above '1 1 1'
	for brightening effects implemented PROTOCOL_DARKPLACES6 protocol,
	featuring delta compression of ammo counts and other properties
	(using generic svc_updatestat and svc_updatestatubyte messages),
	precaching models and sounds during the game (svc_precache). 
	removed cmd parameter from a lot of input code (now uses cl.cmd.
	instead of cmd->) added sv_gameplayfix_setmodelrealbox to allow
	disabling of the setmodel real model bounding box on alias models
	(may improve mod compatibility if set to 0, thus performing a
	setsize (self, '-16 -16 -16', '16 16 16') instead of the real alias
	model box).  added SV_ModelIndex and SV_SoundIndex functions to
	clean up the server's precaching and model lookup processes (code
	reduction/maintenance reduction).  changed sv.model_precache and
	sv.sound_precache to be real char arrays rather than pointers, so
	precache names no longer need to be constants as they're now
	copied.  added some modelindex bounds checks to a few pieces of
	code.  the dpfields array is now sorted and matches the supported
	fields list (added the missing ones).  client now acknowledges the
	last 3 frames in each input packet to reduce packet loss issues. 
	renamed clc_ackentities to clc_ackframe as it is now used for
	compressing stats as well as entities in PROTOCOL_DARKPLACES6, this
	also means it always produces a packet for every frame even if
	there's no changed entities (or room under the rate limit for that
	matter) PROTOCOL_DARKPLACES5 and 6 now perform a non-harmful
	serverside packetlog reset (marking all packets as lost) if the
	packetlog fills up, this should eliminate choked-to-death cases
	where the client lost everything for a few seconds.  MAX_CL_STATS
	expanded from 32 to 256 (just incase more stats are added, this
	prevents protocol breakage on too many unknown extra stats) fixed a
	bug with the worst case rtlight rendering (the color array was
	disabled, oops).  some cl.* fields converted to cl.stats elements
	(STAT_ITEMS for instance) to accomodate the PROTOCOL_DARKPLACES6
	stats updates

2004-11-30 20:45  havoc

	* cl_collision.c, cl_collision.h: some minor cleanup to
	CL_TraceLine, added CL_SelectTraceLine which is to be used by the
	PRYDON_CLIENTCURSOR extension

2004-11-30 12:33  black

	* cl_screen.c: -Fixed a bug in drawstring - it used maxlen instead
	of len in a validity check

2004-11-29 12:43  black

	* pr_edict.c, prvm_cmds.c, prvm_edict.c: -Fixed an old qc bug
	that's already been existing in the original quake  (- hopefully it
	is a bug): ParseEpair was accessing the globals arrays	instead of
	writing an offset directly into the value.  -Removed the
	VM_CheckEmptyString from VM_drawstring.

2004-11-28 05:10  black

	* keys.c, menu.c, prvm_cmds.c: -Removed the NG Menu part, since it
	isnt used anymore (the old layout  works generally better) -Fixed a
	bug in VM_max - it used one of the old VM's macro.  -Added a memory
	leak output of the "strzone" zone when the menu is shutdown  (only
	displayed if developer >= 2)

2004-11-25 16:57  havoc

	* cl_screen.c, gl_backend.c, gl_backend.h: redesigned drawing of
	loading plaque, it's now a separate refresh function which draws
	over the previous frame, rather than invoking a new render, which
	should fix crashes with level changes with rtlights on (trying to
	render an rtlight while the map the rtlight was for has already
	been unloaded tends to cause a crash)

2004-11-25 12:41  havoc

	* screen.h, sys_win.c, vid_wgl.c: removed some windows cruft (like
	scr_skipupdate, and the SleepUntilInput stuff)

2004-11-25 12:38  havoc

	* cl_parse.c: removed Sys_Sleep call from CL_KeepaliveMessage, as
	it's probably better to load as fast as possible than to yield cpu
	time during loading removed an unnecessary CL_KeepaliveMessage call
	in model purging

2004-11-25 09:36  havoc

	* vid_sdl.c: changed drivername to NULL, as SDL knows best

2004-11-25 09:02  havoc

	* model_brush.c, model_shared.h: added model->brush.submodels[]
	array of pointers to submodels of a world model added unfinished
	Mod_Q1BSP_LoadMapBrushes (will be finished someday)

2004-11-25 08:19  havoc

	* mathlib.h, pr_cmds.c, prvm_cmds.c: changed lhrandom to use the
	full RAND_MAX limit (more random, after all the low bits are the
	most predictable), and made the random() qc builtin use lhrandom

2004-11-25 08:18  havoc

	* r_shadow.c: small beginnings of GLSL support, doesn't do anything
	yet

2004-11-25 08:16  havoc

	* server.h: forgot to commit this with the Host_ServerFrame changes

2004-11-25 08:13  havoc

	* host.c: redesigned Host_ServerFrame timing again, it now never
	runs more than 5 serverframes per host frame as a sanity limit (to
	remain playable in an overloaded game), and is just cleaner

2004-11-25 08:08  havoc

	* cl_parse.c: forgot to commit a bunch of CL_AllocDlight changes
	(to use lightstyle -1)

2004-11-25 08:07  havoc

	* cl_screen.c: added cl_capturevideo_rawyv12 mode, and
	cl_screenshot_gamma (defaults to 2.2)

2004-11-25 01:04  molivier

	* snd_main.c: Fixed ambient sound volume (it was reset each frame,
	and cannot change by more than the value of the "ambient_fade" cvar
	each frame... you do the math). Thanks to Tomaz and Urre for the
	bug report

2004-11-24 17:24  havoc

	* sys_win.c: changed Sys_Error to not put up a messagebox if in
	dedicated mode, and cleaned it up a bit

2004-11-24 05:39  havoc

	* cgamevm.c, cl_main.c, r_shadow.c: fixed a critical bug with Vile
	and other midnight mods (dlights were being controlled by style 0,
	this meant they didn't appear in these mods, added style -1 as a
	special case)

2004-11-22 12:24  havoc

	* host_cmd.c: fixed an uninitialized variable warning

2004-11-22 06:38  molivier

	* cd_shared.c, cl_main.c, cl_parse.c, fs.c, host.c, qtypes.h,
	render.h, snd_main.c, snd_main.h, snd_null.c, sound.h: Several
	changes to the SFX lock code in the sound engine, mainly to make
	sure SFXs are automatically freed only at level change Moved call
	to CL_InitTEnts after S_Startup so the tent sounds get properly
	precached Added a developer warning when trying to play a
	non-precached SFX Made the soundlist command more verbose Added the
	ssize_t type for Win32 systems Some comments and dead code removal

2004-11-22 02:01  molivier

	* fs.c: A few very minor changes to the FS code

2004-11-21 04:16  havoc

	* r_sky.c: fix skybox loading, _ft and _bk were swapped (and all
	others had to be flipped accordingly), it now matches quake2 as it
	was supposed to all along

2004-11-20 10:07  havoc

	* todo: 327

2004-11-20 10:05  havoc

	* snd_main.c, snd_main.h: fixed bug with engine sounds (for TE_
	effects) and local sounds (menu, etc) being unloaded on level
	change (they are supposed to stay indefinitely) keep
	play/play2/playvol sounds around until level change (so they're not
	being constantly unloaded and reloaded when used repeatedly)

2004-11-20 03:49  havoc

	* snd_main.c: changed S_StartSound to start a sound even if it has
	no fetcher, as the fetcher isn't set until it is loaded... and it
	isn't loaded until it is played if it was not precached...  and
	it's being unprecached by the S_ServerSounds function even if it's
	an engine sound...

2004-11-20 03:20  havoc

	* cl_input.c, cl_parse.c, protocol.c: added support for
	PROTOCOL_NEHAHRAMOVIE in more places, so now nehahra works again,
	and added some more Host_Error's for unknown cl.protocol values

2004-11-20 01:25  havoc

	* cl_main.c: fix the unintentional framegroup timing reset that
	happened when the .frame field changed after more than 100ms since
	the previous change (this was causing corpses to suddenly stand up
	and then fall down quickly in Nexuiz)

2004-11-19 04:42  havoc

	* todo: 326

2004-11-18 06:08  molivier

	* fs.c: Quick hack to fix the calls to "open" on Win32

2004-11-18 05:03  havoc

	* todo: 326

2004-11-17 08:36  havoc

	* host.c: minimize cpu use when framerate limited

2004-11-17 08:34  havoc

	* sbar.c: improved how showfps 1 measures framerate, it's now a bit
	more accurate, still reads a bit low though with millisecond timers

2004-11-17 08:33  havoc

	* fs.c: FS now uses open/read/write/lseek/close instead of
	fopen/fread/fwrite/fseek/fclose to get a little more performance
	from less unnecessary buffering (helps video recording keep up a
	steady rate)

2004-11-17 08:31  havoc

	* host_cmd.c: remove the only use of FS_Eof

2004-11-17 07:42  havoc

	* host.c: made dedicated servers hog a whole lot less CPU time

2004-11-17 01:58  havoc

	* todo: 325

2004-11-17 00:40  molivier

	* fs.c, todo: Give priority to unpacked files over packed files
	(the old AKVERSION behaviour)

2004-11-17 00:11  havoc

	* makefile.inc: fixed windows SDL linking (now uses sdl-config like
	it should)

2004-11-16 21:58  havoc

	* r_shadow.c: forgot a very important else in rtlights saving

2004-11-16 04:18  havoc

	* model_shared.c: now unloads all stale submodels and the old world
	model before loading the new one (this relies on the world model
	being the first precache to trigger this code at the appropriate
	time)

2004-11-16 04:17  havoc

	* model_shared.c, model_shared.h: renamed mod->needload to
	mod->loaded as a minor cleanup (safer default) removed now unused
	Mod_TouchModel

2004-11-16 04:15  havoc

	* cl_parse.c: call Mod_FindName directly instead of Mod_TouchModel
	because one just wraps the other

2004-11-16 04:14  havoc

	* gl_rsurf.c: now checks that a lightmap surfacechain is not NULL
	before dereferencing it

2004-11-15 15:09  havoc

	* sv_phys.c: fixed bug that called PlayerPreThink and
	PlayerPostThink on unspawned clients

2004-11-15 05:13  havoc

	* todo: 328 (a lot of new items)

2004-11-14 18:48  havoc

	* cl_main.c: forgot to commit this file

2004-11-14 15:31  havoc

	* cgamevm.c, cl_parse.c, client.h, gl_models.c, gl_rmain.c,
	gl_rsurf.c, model_alias.c, model_brush.c, model_shared.h,
	r_light.c, r_shadow.c, r_shadow.h: upgraded rtlights format to have
	separate ambient, diffuse, and specular intensity scales, and also
	coronasize, this also allows corona-only lights by setting all
	scales to 0, and added normalmode/realtimemode flags so that lights
	can appear in normal mode, not just realtime mode (primarily useful
	for adding corona effects to a normal level) added ambient light
	support to RenderLighting (non-bumpmapped diffuse) some dlights now
	use ambientscale (this has not been exposed as a qc extension yet,
	qc lights remain the same)

2004-11-14 15:23  havoc

	* server.h: remove unused sv_player extern

2004-11-14 10:34  black

	* progsvm.h, prvm_cmds.c: -Fixed a stupid bug in the VM_findchain*
	functions.

2004-11-13 18:16  havoc

	* keys.c: someone removed the quotes around binds in
	Key_WriteBindings...  added back so that bind ";" whatever doesn't
	wreck the config

2004-11-13 03:14  havoc

	* host.c, host_cmd.c, netconn.c, sv_main.c, sv_phys.c, sv_user.c:
	replaced all uses of sv_player with host_client->edict (because
	sv_player was often invalid after a level change) fixed a number of
	botclient crashes relating to invalid client->edict pointers after
	a level change now sets client->spawned = true on botclients when
	freshly spawned (they were already being set correctly on level
	change) DP_SV_BOTCLIENT now works properly

2004-11-13 03:11  havoc

	* model_brush.c: no longer warns about q3bsp surfaces with
	lightmapindex -3 (or any other negative values below -1), as q3map2
	seems to use these values intentionally it's rather pointless to
	warn about them now warns about missing textures in q3bsp texture
	loading

2004-11-12 15:18  havoc

	* pr_cmds.c, sv_main.c: added DP_SV_BOTCLIENT extension

2004-11-12 14:50  havoc

	* netconn.c, server.h: moved the extern prototype for
	SV_ConnectClient from netconn.c to server.h since the
	DP_SV_BOTCLIENT builtins will be calling it

2004-11-12 14:42  havoc

	* netconn.c, pr_cmds.c, prvm_cmds.c, sv_main.c: more preparation
	for DP_SV_BOTCLIENT, removed a number of unneeded netconnection
	checks and changed some others to check active, and made player
	info queries reply "botclient" for clients with no netconnection

2004-11-12 14:09  havoc

	* host_cmd.c: print botclient as address in status reports for
	clients with no netconnection

2004-11-12 14:08  havoc

	* host.c: cleaned up SV_DropClient code a bit

2004-11-12 13:48  havoc

	* host_cmd.c, netconn.c, netconn.h, server.h, sv_main.c: moved rate
	and connecttime from netconn structure to client structure in
	preparation for DP_SV_BOTCLIENT extension

2004-11-09 22:02  havoc

	* model_brush.c, model_shared.h: made q3bsp alphafunc shaders
	render as transparent (quick hack)

2004-11-09 18:32  havoc

	* pr_cmds.c: VorteX has fixed gettaginfo to work as advertised
	(properly handling of attached entities) and cleaned up gettagindex
	by splitting it into two functions

2004-11-04 16:21  havoc

	* host.c: imposed a 20 frames at once limit in Host_ServerFrame

2004-11-04 16:17  havoc

	* host.c: added a host_frametime limit of 1 second, so that it
	never tries to run more than 1 second per frame

2004-11-03 09:13  havoc

	* cl_parse.c, cl_particles.c, client.h, menu.c: internal cleanup:
	split up CL_SparkShower into CL_SparkShower, CL_Smoke, and
	CL_BulletMark so the effects parser can be a little cleaner, also
	added gravityscale to CL_SparkShower

2004-11-03 09:09  havoc

	* makefile.inc: updated cpu optimization choices

2004-11-02 23:20  havoc

	* cl_screen.c: centerprint is no longer limited to 40 characters
	wide, it can now use up to the full vid.conwidth

2004-10-30 12:25  havoc

	* todo: 307

2004-10-30 10:12  havoc

	* todo: 308

2004-10-30 06:50  havoc

	* pr_cmds.c: added DP_SV_CLIENTCOLORS and DP_SV_CLIENTNAME
	extensions (these were already documented and working but not
	listed)

2004-10-30 06:46  havoc

	* pr_cmds.c: added DP_SV_PING, DP_SV_PUNCHVECTOR,
	DP_SND_FAKETRACKS, and DP_FS_SEARCH extensions corrected builtin
	table comments for DP_FS_SEARCH functions removed
	DP_SV_EXTERIORMODELTOCLIENT extension (no such thing, the extension
	is named DP_ENT_EXTERIORMODELTOCLIENT)

2004-10-30 05:03  havoc

	* pr_cmds.c: added DP_CON_SET and DP_CON_SETA extensions

2004-10-29 07:37  black

	* prvm_edict.c: -Moved the entity mem init in the entity load
	functions around a bit to  make it possible for the menu parser to
	support full templates.

2004-10-29 04:39  black

	* common.c, menu.c, prvm_cmds.c, prvm_exec.c: -Minor fix in
	VM_registercvar.  -Added \" support to quoted strings in
	Com_ParseToken.  -Minor change to PRVM_PrintStatus.

2004-10-27 23:38  molivier

	* todo: 303

2004-10-27 11:29  havoc

	* netconn.c: changed net_masterextra1 and 2 back to IP addresses
	(but kept their DNS names as comments), the DNS resolving takes too
	long, and caching it is non-trivial

2004-10-27 11:21  havoc

	* todo: 304

2004-10-27 11:18  havoc

	* cl_screen.c: now aborts video capture if it falls behind by more
	than a second (as the sound is likely hosed in that case)

2004-10-27 11:11  havoc

	* cl_screen.c, glquake.h, host.c, snd_mix.c: greatly improved video
	capture speed by generating the files much more directly (less
	processing) added a raw video .rgb output mode (making only one
	file instead of thousands, for a slight speed gain, assuming you
	have tools that can read it) video capture now maintains sound sync
	by duplicating frames to keep up a consistent video output speed
	(warning: do not attempt higher speeds than your machine is capable
	of, it WILL fall behind and get progressively slower very fast)
	rewrote much of Host_FilterTime to improve video capture and
	simplify timing in general removed host_minfps (now uses
	sys_ticrate instead) renamed host_maxfps to cl_maxfps (as it only
	ever affected the client anyway) now runs multiple server frames if
	host is falling behind, based on sys_ticrate (mainly useful to
	avoid slowing down when client is rendering really slow)

2004-10-27 08:50  molivier

	* cd_bsd.c, cd_linux.c, cd_sdl.c, cd_shared.c, cd_win.c,
	cl_input.c, cl_parse.c, common.c, common.h, crc.c, crc.h,
	darkplaces.dev, darkplaces.dsp, gl_draw.c, gl_warp_sin.h, host.c,
	image.h, jpeg.c, keys.c, makefile.inc, menu.c, model_brush.c,
	prvm_cmds.c, prvm_edict.c, prvm_exec.c, quakedef.h, sv_main.c,
	vid_shared.c, wad.c, wad.h: Pure cleaning commit: removed
	"crc.[ch]" and "gl_warp_sin.h", removed dead functions and dead
	variables, and moved several header includes out of "quakedef.h"

2004-10-26 07:48  molivier

	* snd_win.c: Updated Win32 sound module: the wave output code was
	partially rewritten since the old version was obviously pretty tied
	to Quake original output format; removed a few useless variables
	here and there; and a lot of whitespaces and comment changes, as
	usual

2004-10-26 01:30  havoc

	* cl_screen.c, console.c, screen.h: get rid of the unused
	clearnotify and clearconsole variables

2004-10-26 01:22  havoc

	* host_cmd.c: fix the "newname changed name to newname" bug

2004-10-26 00:50  havoc

	* host.c, host_cmd.c: moved the map startup for -listen and
	-dedicated servers from startdemos to just after the config
	parsing, so that startdemos is no longer required

2004-10-26 00:41  havoc

	* cd_shared.c: fixed 3 digit cdtracks loading (it was improperly
	checking the returned sfx, which is never NULL)

2004-10-26 00:37  havoc

	* cd_shared.c, cl_parse.c, console.c, dpvsimpledecode.c, menu.c,
	prvm_cmds.c, snd_main.c, snd_mem.c, snd_null.c, sound.h:
	S_LoadSound now automatically tries both with and without sound/
	when loading sounds, which allows quake3 maps to work better, since
	their target_speaker entities include sound/ in the filenames, this
	also got rid of the stdpath parameter in the
	S_PrecacheSound/S_FindName/S_LocalSound calls)

2004-10-25 09:09  havoc

	* sbar.c: cruft removal

2004-10-25 09:08  havoc

	* r_shadow.c: now displays light number (and total number of
	lights) in r_editlights mode

2004-10-25 08:55  molivier

	* snd_main.c: Don't allow sound extra updates until the sounds have
	been spatialized (fix the noise at startup). A few whitespaces and
	a couple of minor changes.

2004-10-25 00:35  havoc

	* snd_oss.c: fix a signed/unsigned comparison warning

2004-10-25 00:35  havoc

	* snd_main.c: fix a rare crash when a sound is emitted by an entity
	with a model whose precache pointer is NULL, apparently this
	happens in the Fiend Run Lite demos

2004-10-25 00:33  havoc

	* cl_parse.c: don't warn about missing frames and skins in models
	that failed to load

2004-10-25 00:13  molivier

	* cd_bsd.c, jpeg.c, lhnet.c, makefile, makefile.bsd, makefile.inc,
	quakedef.h, snd_oss.c, sys_shared.c: FreeBSD support

2004-10-23 14:43  tomaz

	* todo: 308

2004-10-23 08:39  havoc

	* pr_execprogram.h: made traceon/traceoff take effect immediately
	(forgot to check for pr_trace change where it mattered - after a
	builtin call)

2004-10-23 03:41  havoc

	* pr_cmds.c: added DP_SV_DROPCLIENT extension

2004-10-23 03:00  havoc

	* host.c, host_cmd.c, pr_cmds.c, server.h, sv_main.c: removed
	number field from client_t struct as it seemed to be behaving
	unreliably in SV_DropClient (resulting in changes to the scoreboard
	entry for client 0, regardless of which client was dropped)

2004-10-23 02:46  havoc

	* darkplaces.txt, vid_wgl.c: now defaults to DirectInput in
	windows, -dinput option changed to -nodinput and readme updated
	accordingly

2004-10-22 17:36  black

	* cd_shared.c: -Added the constant MAXTRACKS which is set to 256.  
	(remap has the type qbyte[256] now)  -CD_Play now also searches for
	fake tracks with 3 digits.   (the old 2 digit search is kept for
	compatibility)

2004-10-22 16:21  tomaz

	* todo: 309

2004-10-22 11:31  tomaz

	* todo: 310

2004-10-22 03:56  havoc

	* r_shadow.c: don't crash on dlights trying to cast shadows from
	world surfaces when there is no world model

2004-10-22 01:29  molivier

	* menu.c: Updated Transfusion map list

2004-10-21 10:44  black

	* prvm_cmds.c, zone.c, zone.h: - Added Mem_IsAllocated.  -
	Decreased the required parameter count of VM_strcat to 1.  - Added
	a check to VM_strunzone so it wont free already freed strings and  
	thus crash the qc (only if developer != 0).

2004-10-21 06:30  havoc

	* pr_cmds.c: VorteX fixed the "circle bug" in his SV_GetTagMatrix
	code

2004-10-21 02:04  molivier

	* menu.c: Several changes for single player support in Transfusion
	(based on a patch by Kazashi)

2004-10-21 01:45  havoc

	* console.c: don't allow Log_ConPrint to recurse into itself, as
	can happen with a memory corruption report -> Log_ConPrint ->
	memory corruption report -> Log_ConPrint -> ...

2004-10-20 06:41  havoc

	* todo: 313

2004-10-20 06:30  havoc

	* model_brush.c: if a (supposedly) quake sky texture is not
	128x256, upload it just as a solid layer

2004-10-20 06:29  havoc

	* r_shadow.c: now loads a .ent file for lights if found

2004-10-20 06:19  havoc

	* vid_glx.c: ignore first mouse move after mouse grab as it's
	generally garbage

2004-10-20 05:58  havoc

	* cmd.c, cmd.h, keys.c: messagemode/messagemode2 now send the
	say/say_team command directly instead of passing through the client
	console, so that typing something like ";quit" as a message does
	not quit the game

2004-10-20 04:58  havoc

	* model_brush.c, model_shared.h, r_sky.c, render.h: fixed r_restart
	skybox crash (as well as incorrect texture bugs related to this),
	and moved alphaskytexture/solidskytexture to q1bsp texture loader,
	now part of the world model instead of separate

2004-10-20 00:18  havoc

	* image.c: Image_WriteTGARGBA now writes 8 as the attributes byte
	(which GIMP seems to need to recognize the alpha channel)

2004-10-19 21:16  havoc

	* host_cmd.c: removed a pmodel reference I forgot to remove

2004-10-19 19:40  havoc

	* host.c, host_cmd.c, pr_cmds.c, pr_edict.c, server.h, sv_main.c:
	fix problems with losing colors on connect and leaving ghosts on
	the scoreboard and other glitches related to edict clearing

2004-10-19 04:32  tomaz

	* cl_particles.c: Enlarged particle font from 256x256 to 512x512
	and added saving of the font to a TGA (#if 0 'd)

2004-10-19 03:58  havoc

	* host_cmd.c: reset nametime at prespawn (before name command is
	sent by client) and spawn (after name command is sent by client)

2004-10-19 02:57  havoc

	* host.c: remove unused variables

2004-10-19 02:54  havoc

	* host.c: instead of sending a scoreboard update in the DropClient
	code, let it happen at the next SV_UpdateToReliableMessages

2004-10-19 02:53  havoc

	* sv_main.c: fixed problem with lost scoreboard messages to a
	client that is still loading

2004-10-19 02:44  havoc

	* host.c, host_cmd.c, sys_shared.c: Host_Shutdown now calls
	CL_Disconnect and Host_ShutdownServer so that quitting without
	using the quit command no longer leaves a player connected to the
	server

2004-10-19 01:14  havoc

	* sbar.c: cleaned up scoreboard printing loops a bit (they don't
	need to check if the name is empty) fixed (I think, after much
	testing) the duplicate names bug in the mini scoreboard by changing
	a bound to a separate max and min (evidently the loop index was
	starting < 0)

2004-10-18 17:48  havoc

	* darkplaces.txt: added mention in credits of romi's rtlights pk3
	being included in dpmod

2004-10-18 08:18  molivier

	* snd_main.c, snd_win.c: Finally removed the Win32 specific code
	from "snd_main.c". Changed a few comments and fixed a typo in the
	process.

2004-10-18 03:16  havoc

	* vid_sdl.c: add support for 32bit color in SDL builds

2004-10-17 12:48  black

	* menu.c, prvm_cmds.c, sbar.c: -Renamed two builtins of the new VM
	-Fixed the hud weapon selection

2004-10-17 04:51  havoc

	* model_brush.c, model_shared.c, model_shared.h: snap curve
	vertices to solve some finicky collision problems and probably also
	makes things look a little better where two curves meet in some
	cases

2004-10-17 04:48  havoc

	* curves.c: fix an incomplete edit on variable naming

2004-10-17 04:40  havoc

	* curves.c, curves.h, model_brush.c: now using all-new Q3 patch
	tesselation code, matching Quake3 pretty well

2004-10-17 04:19  havoc

	* model_shared.c: increased edge hash size from 1024 items to
	16384, cutting down on long q3bsp load times when generating the
	shadow mesh

2004-10-17 04:16  havoc

	* darkplaces.txt: added VorteX to thanks list

2004-10-17 04:15  havoc

	* pr_cmds.c: added DP_QC_GETTAGINFO extension (thanks VorteX!)

2004-10-17 00:42  havoc

	* todo: 314

2004-10-16 19:24  havoc

	* darkplaces.txt: added |Rain| and feh to credits

2004-10-16 14:47  havoc

	* gl_rsurf.c: fixed an unused variable warning

2004-10-16 14:34  havoc

	* todo: 315

2004-10-16 14:33  havoc

	* model_brush.c: don't spew shaders to console on load unless
	developer is 2 or higher

2004-10-16 13:28  havoc

	* gl_rsurf.c: forgot to remove a debugging test that emitted sparks
	from autosprite2 shaders

2004-10-16 04:58  havoc

	* host_cmd.c: hush reconnect command warning about signon 0 because
	it happens all the time

2004-10-16 04:29  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: now parses more of q3
	shaders to guess at proper rendering settings for surfaces, now
	implemented are additive blend, deformvertexes autosprite (and
	autosprite2), nomipmaps, nopicmip, cull twosided/none/disable,
	surfaceparm nomipmap now assumes that a q3 texture is not
	transparent unless it has a shader saying it is (yes shaders are
	now required to enable transparency in q3bsp) now loads the texture
	used in the first pass of the shader if there is no texture of the
	same name as the shader itself what this all means: quake3 maps
	look 99% correct (other than lack of animation and various shader
	effects)

2004-10-16 02:56  black

	* vid_wgl.c: -Added static, global baseDC and baseRC variables to
	avoid having to call  qwglGetCurrent* all the time.

2004-10-16 00:00  havoc

	* gl_rsurf.c: fixed a typo in the numtriangles commit (should have
	been num_triangles)

2004-10-15 23:58  havoc

	* gl_rsurf.c: skip surfaces with no triangles in Q3BSP rendering
	code to avoid a R_Mesh_Draw warning

2004-10-15 22:52  havoc

	* gl_rsurf.c: don't check visframe on q3bsp surfaces, it's not used

2004-10-15 21:50  havoc

	* pr_exec.c: expanded PR_PrintState from 5 statements to 8
	statements printed, to give more chance of seeing the parameters to
	a function in warnings/crashes

2004-10-15 21:49  havoc

	* pr_cmds.c: added reporting of what model is unprecached in no
	precache warning

2004-10-15 21:48  havoc

	* darkplaces.txt: added MoALTz to thanks list

2004-10-15 16:22  havoc

	* host_cmd.c: forgot to give strlcat a size

2004-10-15 16:09  havoc

	* host_cmd.c: added a newline to chat messages

2004-10-15 14:20  havoc

	* makefile.inc: added -lSDL to the windows SDL link flags

2004-10-15 14:18  black

	* progsvm.h, prvm_cmds.c, vid_wgl.c: -Added a more descriptive
	comment for prvm_edict_t::p -Added 3 new builtins to the new VM:
	ftoe, etof, parseentitydata -Changed the Win32 driver to reuse the
	GL hDC if possible instead of  calling GetDC and ReleaseDC every
	frame.

2004-10-15 14:08  havoc

	* sys_linux.c, sys_sdl.c: changed main() argv parameter to
	non-const, and casting it to const on assignment instead, this
	should fix an SDL compilation problem

2004-10-15 13:25  havoc

	* pr_cmds.c: added DP_LITSPRITES extension string

2004-10-15 00:08  havoc

	* todo: 315

2004-10-15 00:08  havoc

	* cl_main.c, menu.c, menu.h, netconn.c, todo: now shows status
	messages in join game menu when a server is typed in manually (it
	was only showing them in the server list, oops), also added
	additional status messages

2004-10-14 23:56  havoc

	* lhnet.c, netconn.c, netconn.h: reduced cl_net* cvars to just
	cl_netlocalping and cl_netpacketloss and removed sv_netpacketloss
	cvars

2004-10-14 23:53  havoc

	* r_shadow.c: revert an optimization to shadow volume generation
	that saved a little cpu time but cost a lot of gpu fillrate, and
	caused shadows to randomly invert sometimes

2004-10-13 16:28  havoc

	* gl_backend.c: thanks much to Moz for fixing the
	r_stereo_separation code, it now has proper eye positioning and
	looks MUCH better

2004-10-13 06:45  molivier

	* snd_mem.c, snd_mix.c: Fixed a couple of comments, and modified
	slightly the developer printing in ResampleSfx

2004-10-13 06:42  molivier

	* darkplaces.dev, darkplaces.dsp, makefile.inc, snd_dma.c,
	snd_main.c: snd_dma.c -> snd_main.c

2004-10-13 00:03  molivier

	* cd_shared.c, cdaudio.h, cl_main.c, cl_parse.c, cl_screen.c,
	darkplaces.dev, darkplaces.dsp, dpvsimpledecode.c, menu.c,
	prvm_cmds.c, quakedef.h, snd_alsa.c, snd_bsd.c, snd_dma.c,
	snd_main.h, snd_mem.c, snd_mix.c, snd_null.c, snd_ogg.c, snd_oss.c,
	snd_sdl.c, snd_wav.c, snd_win.c, sound.h, todo, vid_wgl.c: Lots of
	minor fixes and improvements to the sound engine, plus a few more
	important changes: - moved the internal structures and API into a
	separate file (snd_main.h) - added a lock mecanism on SFXs to free
	them as soon as they're no longer used - simplified the sound API -
	minor fixes and comment changes here and there - independent sound
	volume for fake CD tracks - updated MSVC and Dev-C++ project files
	accordingly - removed unused functions - added a SFX flag to make
	sure the engine complains at most one time for each missing sound
	file - made the SFX list a linked list to remove the hardcoded
	limit for the number of SFX a client can handle - changed the way
	ambient sounds are managed to be more consistent with the new API -
	factorized some code - removed the useless IN_Accumulate in the
	Win32 specific code - removed the table for 8bit sound mixing
	(snd_scaletable)

2004-10-12 12:08  black

	* progsvm.h, prvm_cmds.c, prvm_edict.c: -Its now possible to add
	support for other edict_private structs easily.  (Note: You have to
	derive them by composition from the original one - e.g. struct
	server_edict_private_s { prvm_edict_private_t base; ... }; or just
	copy the elements from prvm_edict_private_t into the new struct -
	and add them to the anonymous union p in prvm_edict_t.)

2004-10-12 10:27  havoc

	* cl_parse.c: allow invalid skin numbers on entities using tenebrae
	dlights (falling back to the model's skin 0 for actual rendering,
	but using the skin number for a dlight cubemap)

2004-10-10 11:51  havoc

	* makefile.inc: enabled SDL sound and CD

2004-10-10 11:51  havoc

	* vid_sdl.c: fixed a signed/unsigned warning

2004-10-10 11:50  havoc

	* vid_wgl.c: made MapKey static since it's not used anywhere else

2004-10-09 20:08  havoc

	* host_cmd.c: remove quotes on say commands at the server end (like
	it used to, this is done a little cleaner though)

2004-10-09 11:30  havoc

	* todo: 315

2004-10-08 19:03  havoc

	* pr_cmds.c, world.c, world.h: added SV_EntitiesInBox function to
	find entities within a box, merging the box testing in the
	trigger/trace code, and also greatly optimized PF_findradius using
	this function

2004-10-08 18:56  havoc

	* host_cmd.c: fixed reconnect command which was being ignored by
	the client (forgot that it doesn't know what came from the client
	console and what came from the server, so disabling it in the
	client console was a bad idea)

2004-10-08 13:15  havoc

	* host_cmd.c, pr_edict.c, sv_phys.c, sv_user.c: added "QC function
	<name> is missing" warnings to more PR_ExecuteProgram calls

2004-10-08 13:12  havoc

	* gl_rmain.c: simplified r_rt* variable setup a little bit

2004-10-08 13:11  havoc

	* cl_input.c, protocol.c, protocol.h, sv_user.c: got rid of
	cl_nodelta cvar (it has never been useful, and rarely worked) got
	rid of ackframenum -1 handling removed ackframenum from
	entityframe4 and entityframe5 databases as they didn't use it for
	anything anyway (it is used only temporarily inside the AckFrame
	functions)

2004-10-08 12:39  havoc

	* cl_main.c, cl_parse.c, gl_rmain.c: fixed constant resetting of
	animation interpolation on entities that just spawned (fixes
	framegroup animation problems on non-static entities that don't
	change much) changed movement interpolation to better handle
	every-other-frame updates which tend to happen with rate limiting

2004-10-08 09:15  havoc

	* pr_edict.c: fix automatic addition of "color" field to be a
	vector

2004-10-07 21:31  havoc

	* host_cmd.c: cleaned up Host_Say to not process the message (MUCH
	simpler and I didn't trust that code anyway), fixed crash with
	fromServer messages (it was not checking teamonly, save is not a
	valid edict)

2004-10-07 11:55  havoc

	* cl_particles.c: fix color problem with glow_trail (the blue trail
	bug)

2004-10-06 19:17  havoc

	* todo: 306

2004-10-06 17:48  havoc

	* protocol.c: fixed lingering entities in quake protocol (off by
	one error in the entity removal loop)

2004-10-06 17:42  havoc

	* menu.c: added cl_beams_* cvars to effects options menu

2004-10-06 12:39  havoc

	* netconn.c: now should be able to connect to another server
	without leaving the current server until the connection is accepted

2004-10-06 12:31  havoc

	* host_cmd.c: now begins loading plaque at all the appropriate
	places, which also means an end to sound during loading

2004-10-06 10:10  havoc

	* common.c: fix nehahra movie support (forgot to handle its
	protocol number in MSG_ReadCoord)

2004-10-05 17:26  havoc

	* r_sprites.c: sprites now work with EF_NODEPTHTEST

2004-10-05 10:52  havoc

	* gl_rsurf.c: only enable watershader on fullbright water

2004-10-05 10:44  havoc

	* gl_rsurf.c, makefile, makefile.bsd, makefile.inc, progs.h,
	progsvm.h, r_shadow.c, sys_sdl.c, vid_sdl.c: now compiles on x86_64
	successfully (still a crash regarding progs strings to fix later)

2004-10-05 08:22  havoc

	* darkplaces.txt: added commandline options section

2004-10-05 08:22  havoc

	* cd_bsd.c, cd_linux.c, cd_shared.c, cl_particles.c, common.c,
	console.c, fs.c, host.c, menu.c, netconn.c, palette.c, snd_alsa.c,
	snd_dma.c, snd_ogg.c, snd_oss.c, snd_sdl.c, snd_win.c,
	sys_shared.c, sys_win.c, vid_glx.c, vid_sdl.c, vid_shared.c,
	vid_wgl.c: revised commandline option comments for better
	categorization when sorted

2004-10-05 07:08  havoc

	* cd_bsd.c, cd_linux.c, cd_shared.c, cl_particles.c, common.c,
	console.c, fs.c, host.c, menu.c, netconn.c, palette.c, snd_alsa.c,
	snd_dma.c, snd_ogg.c, snd_oss.c, snd_sdl.c, snd_win.c,
	sys_shared.c, sys_win.c, vid_glx.c, vid_sdl.c, vid_shared.c,
	vid_wgl.c: added COMMANDLINEOPTION comments for every commandline
	option, these will be listed in the readme

2004-10-04 14:28  havoc

	* cl_parse.c: fix colormap checking in ValidateState, it was
	throwing out RENDER_COLORMAPPED colormaps (which are not client
	numbers)

2004-10-04 14:28  havoc

	* gl_rsurf.c: fix skybox in hlbsp not rendering

2004-10-04 14:13  havoc

	* common.c: MSG_ReadAngle functions now return -180 to +180 range
	instead of 0-360 range which should fix glitches with player model
	pitch when looking down

2004-10-04 13:44  havoc

	* todo: 305

2004-10-04 11:50  havoc

	* cl_parse.c: fix negative frags showing up as 65535 and such

2004-10-04 09:43  havoc

	* todo: 304

2004-10-04 07:15  havoc

	* wad.c: fix a very stupid way of addressing memory which is not
	64bit compatible in the miptex reader

2004-10-04 07:04  havoc

	* progs.h: NUM_FOR_EDICT now casts to int so that it never returns
	a 64bit integer on 64bit compiles which sometimes end up getting
	passed to printf with the wrong format...

2004-10-03 23:58  molivier

	* console.c: Allocated the log queue earlier in Log_Init since
	Cvar_* functions now print developer information

2004-10-03 23:56  molivier

	* snd_mix.c: Moved the clamping of volumes higher in the mixing
	code, so that 16 bit sounds are clamped too

2004-10-03 12:15  havoc

	* todo: 304

2004-10-03 12:08  tomaz

	* todo: 298

2004-10-03 03:27  havoc

	* glquake.h, vid_shared.c: remove support for
	GL_NV_vertex_array_range as it's obsolete and unused

2004-10-03 03:17  havoc

	* vid_wgl.c: added -novideosync disable for WGL swap control

2004-10-02 14:09  havoc

	* pr_cmds.c: fix cvar_string to check if the cvar exists

2004-10-01 07:07  havoc

	* todo: 298

2004-10-01 07:05  havoc

	* todo: 299

2004-10-01 03:43  havoc

	* todo: 323

2004-10-01 01:39  havoc

	* r_shadow.c: save shorter rtlights lines when
	cubemap/corona/angles are not used, saves a bit of space

2004-10-01 00:54  havoc

	* r_shadow.c: fix an accidentally removed variable, and move a
	couple unused variables into the #else block they're used in

2004-09-30 10:23  havoc

	* r_shadow.c: made shadowvolume building about 40% faster by not
	using projectdistance

2004-09-30 09:38  havoc

	* gl_models.c, gl_rsurf.c, r_shadow.c, r_shadow.h: sped up nexuiz
	rtlights benchmark by 4% by optimizing box cull on models to skip
	triangle box cull when surface box is entirely inside light box
	restructured R_Shadow_ConstructShadowVolume loops a bit to make for
	less stalls, this seems to have only netted a 0.5% speed gain or so

2004-09-30 03:05  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: removed a few fields
	from q3msurface_t added a facelist to each q3mtexture_t so that the
	renderer can build a list of faces of the same texture without any
	face->texture comparisons rewrote R_Q3BSP_DrawSky and R_Q3BSP_Draw,
	this improved a nexuiz timedemo with no rtlights by 116%

2004-09-29 03:50  havoc

	* model_brush.c: recalculate model->brushq3.num_leafs during
	loading because some broken q3map/q3map2 compiler versions actually
	count submodels as leafs in the bsp file

2004-09-28 02:15  havoc

	* darkplaces.ico: updated darkplaces icon with 6 sizes of 32bit (XP
	icon) and 4 sizes of 8bit (non-XP icon), thanks de-we

2004-09-27 23:59  havoc

	* todo: 324

2004-09-27 23:38  havoc

	* cl_main.c, gl_models.c, gl_rmain.c, gl_rsurf.c, pr_cmds.c,
	protocol.h, r_shadow.c, r_sprites.c, sv_main.c: implemented
	DP_EF_NODEPTHTEST extension

2004-09-27 22:34  havoc

	* model_brush.c: use a less bizarre method of byte swapping
	q1bsp/q3bsp headers

2004-09-27 15:03  tomaz

	* todo: 325

2004-09-27 15:00  tomaz

	* todo: 326

2004-09-27 06:41  havoc

	* todo: 327

2004-09-27 06:39  havoc

	* cl_particles.c: upgraded particle font texture to 512x512 and
	changed the blood texture, and made blood splats larger (to make
	use of the more detailed texture)

2004-09-27 04:31  havoc

	* menu.c: fixed r_shadow_realtime_world_lightmaps cvar control to
	be a slider, it was a checkbox

2004-09-27 00:09  havoc

	* todo: 325

2004-09-26 23:12  tomaz

	* todo: 326

2004-09-26 18:29  havoc

	* todo: 327 and reformatted notify list to sort by name first

2004-09-26 16:10  tomaz

	* todo: 329

2004-09-26 07:02  havoc

	* todo: fix recently added notifies to say who to notify

2004-09-26 06:47  havoc

	* todo: 336

2004-09-26 06:42  havoc

	* cl_main.c: static entities now light and shadow properly

2004-09-26 06:23  havoc

	* gl_backend.c, gl_rmain.c, host.c: minor cleanup - merged
	R_UpdateWorld into other places

2004-09-26 06:11  havoc

	* cl_main.c, gl_rsurf.c, r_shadow.c: r_fullbright 1 now works
	properly with r_shadow_realtime_world 1 (why anyone would want to
	do this? no idea)

2004-09-26 05:46  havoc

	* cl_input.c, cl_main.c, gl_models.c, gl_rmain.c, gl_rsurf.c,
	model_shared.h, model_sprite.c, protocol.c, protocol.h, r_light.c,
	r_shadow.c, r_sprites.c, render.h, sv_user.c: added r_rtworld,
	r_rtworldshadows, r_rtdlight, r_rtdlightshadows, and
	r_lightmapintensity cvars to greatly clean up the handling of the
	various rtlight/normal rendering modes ifixed lighting problems on
	transparent alias models in r_shadow_realtime_world mode with
	r_shadow_realtime_world_lightmaps < 1 (note: still does not use the
	rtlights entities, just bsp model light queries like lightmap mode
	uses) cleaned up handling regarding RENDER_LIGHT, RENDER_SHADOW,
	EF_ADDITIVE, alpha, r_fullbright, RENDER_EXTERIORMODEL, and
	model->flags (now the EF_ADDITIVE and EF_FULLBRIGHT flags were
	moved to model->flags2) tag children now inherit
	RENDER_EXTERIORMODEL from their parent so you can simply attach an
	external weapon model to the player model and it will
	appear/disappear according to chase_active appropriately

2004-09-26 05:14  havoc

	* sv_main.c: removed some very stale dead code

2004-09-26 04:25  tomaz

	* menu.c, vid_glx.c, vid_shared.c, vid_wgl.c: Fixed some errors in
	the vid_vsync code.

2004-09-25 21:06  havoc

	* gl_models.c: remove unused variable generatenormals

2004-09-25 19:23  havoc

	* r_shadow.c: fix R_Shadow_UpdateWorldLight (used by editing
	commands) to set cubemap even if it's an empty string, otherwise
	it's impossible to remove a cubemap on a light

2004-09-22 18:44  havoc

	* gl_models.c, model_alias.c, model_alias.h, model_shared.c,
	model_shared.h: added a Mod_BuildNormals function to accelerate
	vertex lighting which doesn't need texture vectors moved vertex
	blending function from gl_models.c to model_alias.c and renamed
	accordingly model loader now compiles frame zero into raw arrays
	because most models are not animated, this speeds up non-animated
	models, and anything else idling on frame 0, this eliminates vertex
	processing in many cases

2004-09-21 02:34  havoc

	* cl_parse.c, common.c, common.h, host_cmd.c, pr_cmds.c,
	protocol.c, prvm_cmds.c, sv_main.c: made quakec stuffed quake1
	protocol entities work alongside newer protocols, to attempt to fix
	the ending of Scourge of Armagon (still not working properly yet,
	camera is not taking the angles except in PROTOCOL_QUAKE mode) also
	fixed separator positioning in Com_HexDumpToConsole (used for
	packet dumps)

2004-09-21 02:18  havoc

	* cl_input.c: this should fix a stupid bug with
	PROTOCOL_DARKPLACES4 clc_ackentities (client wasn't using the right
	framenum variable)

2004-09-21 00:03  havoc

	* pr_cmds.c: corrected name of NXQ_GFX_LETTERBOX (it was misnamed
	PXQ_GFX_LETTERBOX, my mistake, sorry)

2004-09-20 20:14  havoc

	* todo: 340

2004-09-20 14:42  havoc

	* todo: 341

2004-09-19 22:51  havoc

	* cl_screen.c, gl_backend.c, pr_cmds.c, r_crosshairs.c, screen.h:
	added PXQ_GFX_LETTERBOX extension

2004-09-19 21:45  havoc

	* netconn.c: changed net_master's to ghdigital.com and
	dpmaster.deathmask.net (names instead of IPs)

2004-09-18 14:25  tomaz

	* todo: 339

2004-09-18 13:46  havoc

	* todo: 340

2004-09-18 10:53  tomaz

	* todo: 341

2004-09-18 10:48  havoc

	* todo: 343 (+1 -2)

2004-09-18 10:44  havoc

	* cvar.c: revert to saving normal cvar commands instead of seta,
	for compatibility with other quake engines

2004-09-18 10:30  tomaz

	* menu.c, menu.h: Added confirm question to "Reset to Defaults"
	option.

2004-09-17 15:16  tomaz

	* todo: 344

2004-09-17 15:16  tomaz

	* model_shared.c: Fixed a missing \n

2004-09-17 15:00  tomaz

	* todo: 344

2004-09-17 14:56  tomaz

	* model_brush.c, model_shared.c, model_shared.h: Renamed mod_brush
	to mod_brushq1.

2004-09-17 14:53  tomaz

	* todo: 344

2004-09-17 14:51  tomaz

	* cl_main.c, client.h, menu.c, model_shared.c: Clears stainmaps on
	map restart/change based on cl_stainmapsclearonload cvar. Also
	added to effects menu.

2004-09-17 14:27  havoc

	* todo: 344

2004-09-17 14:25  havoc

	* cmd.c, cvar.c, cvar.h, host.c, menu.c, menu.h, pr_cmds.c,
	prvm_cmds.c: added set (create/set a cvar) and seta (create/set a
	saved cvar) commands, now config saving uses seta, and this allows
	mods to add their own cvars in default.cfg easily cleaned up some
	of the command/cvar startup sequence, the menu commands and cvars
	were being registered AFTER config loading and video init, now
	they're registered before like they should be cleaned up some cvar
	code and added developer printing of the more important cvar calls

2004-09-17 14:19  havoc

	* cl_parse.c: missing \n on one dprint in ValidateState

2004-09-17 11:41  black

	* prvm_cmds.c: Fixed str_cvar.

2004-09-16 18:13  havoc

	* pr_cmds.c: another round angles to int bug (this time in
	PF_vectoyaw)

2004-09-16 18:03  havoc

	* pr_cmds.c: fix stupid quake precision problem with PF_vectoangles
	(it rounded pitch to integer!)

2004-09-16 17:33  havoc

	* common.c: use double precision for coord and angle conversions...
	 might help with jerky camera in some mods?

2004-09-16 17:32  havoc

	* protocol.c: fix parser bug that read scale into alpha in
	PROTOCOL_DARKPLACES5

2004-09-16 13:41  havoc

	* todo: [no log message]

2004-09-16 13:20  havoc

	* todo: 344

2004-09-16 13:00  havoc

	* model_shared.c: optimized Mod_BuildBumpVectors slightly

2004-09-15 09:06  molivier

	* darkplaces.dev: Fixed project file for Dev-C++, from Kazashi

2004-09-14 16:03  havoc

	* common.c: fix up another quoted commandline issue (this one being
	in commandline reconstruction for the cmdline cvar, not used for
	anything important)

2004-09-14 15:57  havoc

	* sv_main.c: fixed totally mixed up vis culling (as a result of
	botched bmodel vis handling - oops)

2004-09-14 15:41  havoc

	* cgamevm.c, cl_demo.c, cl_input.c, cl_main.c, cl_parse.c,
	cl_particles.c, client.h, common.c, common.h, host.c, host_cmd.c,
	menu.c, model_brush.h, netconn.c, pr_cmds.c, progs.h, protocol.c,
	protocol.h, prvm_cmds.c, quakedef.h, server.h, sv_main.c,
	sv_user.c, view.c: PROTOCOL_DARKPLACES5

2004-09-14 15:15  havoc

	* todo: 344 - minor things

2004-09-13 23:19  molivier

	* lhnet.c: socklen_t is "int" in the Winsocks API

2004-09-13 18:36  havoc

	* r_shadow.c: now saves r_shadow cvars that are available in the
	graphics options menu separated R_Shadow_NewWorldLight into
	R_Shadow_NewWorldLight to allocate light and
	R_Shadow_UpdateWorldLight to assign properties, so that lights can
	be updated in place rather than reallocating them (mainly saves on
	hassles with r_debuglight testing while editing lights, which were
	being renumbered by every edit) R_Shadow_UpdateWorldLight now
	tolerates radius 0, color 0 0 0, and snaps angles to the 0-360
	range

2004-09-13 14:39  havoc

	* todo: 341 - some hud items added

2004-09-12 15:20  tomaz

	* todo: 337

2004-09-12 11:11  tomaz

	* keys.c, keys.h, vid_wgl.c: Added support for 16 joystick buttons.

2004-09-12 10:04  tomaz

	* cl_main.c, cl_particles.c, client.h: Merged CL_RocketTrail2 into
	CL_RocketTrail.

2004-09-12 09:18  tomaz

	* cl_screen.c: Fixed positioning of light editing display, it's was
	not following the console properly.

2004-09-12 09:16  tomaz

	* cl_main.c: Made cl_beams_relative only affect view-attached
	beams.

2004-09-11 15:02  tomaz

	* todo: 343

2004-09-11 15:02  tomaz

	* menu.c, vid.h, vid_shared.c, vid_wgl.c: Added vid_vsync cvar and
	also to put it in the video options menu.

2004-09-11 11:31  tomaz

	* cmd.c: Fixed a bug in the commandline parser when giving it more
	than one + command.

2004-09-11 11:11  tomaz

	* r_shadow.c: Fixed a crash in R_EditLights_PasteInfo_f.

2004-09-11 08:31  havoc

	* cmd.c: rewrote Cmd_StuffCmds_f (commandline parser), it now
	properly handles quoted strings, + and - inside a word, and numbers
	beginning with + or -

2004-09-10 17:57  havoc

	* cl_demo.c: apparently M_ToggleMenu_f is not what to call... 
	Call_MR_ToggleMenu_f is

2004-09-10 17:54  havoc

	* cl_demo.c: fix undefined function warning

2004-09-10 17:47  havoc

	* cl_demo.c: make CL_NextDemo put up menu if there's no demo to
	play (this makes startdemos command put up menu if there are no
	demos, better than staring at console)

2004-09-10 17:46  havoc

	* sv_phys.c: fix very unreliable jumping (it was doing a stepdown
	back onto the floor instantly if framerate was too high or slowmo
	too low)

2004-09-10 17:45  havoc

	* sys_win.c: another attempt to fix quoted strings in windows
	commandline, but more so a cleanup

2004-09-10 17:42  tomaz

	* todo: 345

2004-09-10 11:20  havoc

	* sys_win.c: fixed unterminated character constant in my last fix

2004-09-10 11:19  havoc

	* sys_win.c: fix quoted string parsing

2004-09-09 12:20  havoc

	* lhnet.c: socklen_t is missing on windows...  use size_t there, I
	hope this is right (winxp64 testing needed)

2004-09-09 04:21  havoc

	* todo: two bugs... back to 350

2004-09-08 23:12  tomaz

	* todo: 347

2004-09-07 23:03  tomaz

	* todo: 350 !!!

2004-09-07 16:30  tomaz

	* todo: 351

2004-09-07 16:03  tomaz

	* todo: 352

2004-09-07 11:23  tomaz

	* todo: 356

2004-09-07 11:19  tomaz

	* r_shadow.c: Added r_editlights_copyinfo and
	r_editlights_pasteinfo commands to clone the properties of a light,
	all except for origin.	Also added a check for r_editlights.integer
	in R_Shadow_EditLights_EditAll_f to avoid to spam the console with
	warnings.

2004-09-07 10:48  tomaz

	* pr_cmds.c: Reverting the DP_MOVETYPEWALK_NONCLIENTS commit.  How
	about if we actually remove todo items that are already done?

2004-09-07 10:42  tomaz

	* pr_cmds.c: Added an extension to indicate that MOVETYPE_WALK
	works on non-clients.

2004-09-07 10:13  havoc

	* lhnet.c: fixed STANDALONETEST so it works again

2004-09-07 10:00  tomaz

	* model_brush.c: Made hl map loading halve the lightmap samples, to
	fit hl's 0-1 range into quake's 0-2 range.

2004-09-06 14:19  tomaz

	* todo: 358

2004-09-06 03:36  black

	* pr_cmds.c, prvm_cmds.c: Fixed fgets (before it has been ignoring
	the line that contained the EOF char).

2004-09-06 01:06  black

	* sys_sdl.c: Adding Sys_GetClipboardData to the SDL driver.

2004-09-05 04:25  tomaz

	* todo: 359

2004-09-05 04:18  tomaz

	* menu.c, sbar.c, sbar.h: Added two cvars (sbar_alpha_bg and
	sbar_alpha_fg) to replace sbar_alpha, one controls background as
	0-1, and one controls everything else as 0-1

2004-09-04 20:32  tomaz

	* todo: 360

2004-09-04 07:29  havoc

	* todo: 363 - added an item about replacing sbar_alpha with two
	cvars

2004-09-04 06:16  havoc

	* collision.c: more tolerance to deviations in calculated plane
	distances compared to the stored planes

2004-09-04 02:58  tomaz

	* todo: 362

2004-09-04 02:52  havoc

	* todo: 363 after some cleaning

2004-09-03 08:19  molivier

	* todo: Dpmaster has address mapping now

2004-09-03 07:21  havoc

	* todo: 365

2004-09-03 07:14  havoc

	* cl_main.c, gl_models.c, model_alias.c, model_alias.h,
	model_shared.c, model_shared.h, pr_cmds.c, prvm_cmds.c, render.h:
	zym models are now loaded into the same structs as alias models in
	memory, this reduces code a lot and gives the full feature set
	(rtlights/skins) zym models are now optimized when loading to
	eliminate duplicate vertex data (one of their more significant
	design flaws) mdl/md2/md3 models no longer have stored
	svector/tvector/normal arrays, instead generating them on demand
	like skeletal models (this is slower but saves a *lot* of memory)
	zym collisions are not implemented (yet) zym bones are not reported
	as tags (yet)

2004-09-03 04:03  havoc

	* model_brush.c: converted portal building over to use polygon
	functions instead of winding

2004-09-03 04:02  havoc

	* gl_rmain.c: fixed r_drawportals - the meshqueue was not begun yet

2004-09-03 03:32  havoc

	* collision.c: fixed bugs with collision brush building, and added
	a great deal more error checking on them

2004-09-02 23:26  havoc

	* snd_ogg.c: added -novorbis commandline option to allow disabling
	ogg vorbis support even if the library is present

2004-09-02 19:36  havoc

	* r_shadow.c: use main varray_vertex3f2 array (forgot this in
	previous commit)

2004-09-02 19:24  havoc

	* gl_backend.c, gl_backend.h: added varray_svector3f,
	varray_tvector3f, and varray_normal3f arrays

2004-09-02 18:40  havoc

	* cl_main.c, cl_particles.c, client.h, menu.c: added
	cl_particles_explosions_bubbles/sparks/smoke/shell cvars, got rid
	of cl_explosions cvar (it is equivilant to the shell cvar) and
	updated menu

2004-09-02 18:39  havoc

	* sbar.c: fixed number of displayed scores in the
	minideathmatchoverlay in GAME_TRANSFUSION

2004-09-02 06:46  havoc

	* darkplaces.rc, makefile.inc: now uses de-we's darkplaces icon in
	mingw builds, and has proper file info on the exe's properties
	dialog

2004-09-02 06:16  havoc

	* sv_phys.c: being glued to the floor while swimming = bad

2004-09-01 01:05  havoc

	* pr_cmds.c: added DP_QC_FINDFLAGS and DP_QC_FINDCHAINFLAGS
	extensions

2004-09-01 00:38  havoc

	* todo: 368

2004-09-01 00:37  havoc

	* cl_main.c: cl.viewzoomold/new are now reset in CL_ClearState

2004-09-01 00:02  havoc

	* cl_main.c, menu.c: GAME_NETHERWORLD patch: a bunch of cvars and
	some menu changes

2004-08-31 02:13  havoc

	* todo: 368

2004-08-31 01:29  havoc

	* todo: 367 (+3 todo items)

2004-08-30 09:08  havoc

	* todo: 364

2004-08-30 07:48  tomaz

	* todo: 365

2004-08-30 07:47  tomaz

	* curves.c, curves.h, model_brush.c: Renamed QuadraticSpline code
	in curves.c to QuadraticBSpline.

2004-08-30 05:03  molivier

	* model_shared.c: Fixed the loading of ".skin" files (the skin
	numbers were reversed)

2004-08-30 05:01  molivier

	* model_shared.h: Removed an unused define, and renamed another one

2004-08-30 04:59  molivier

	* lhfont.h, polygon.c: Fixed a couple of warnings

2004-08-30 02:27  havoc

	* polygon.c: fixed severe bugs in QuadForPlane (broken axis
	selection and use of the wrong planenormal components in some math)
	modified Divide to not rotate the point list, this is a minor
	un-optimization of the algorithm but should improve consistency
	(unclipped polygons come out the same as they went in)

2004-08-30 02:12  havoc

	* meshqueue.c: fix crash when transparent meshes were used in first
	frame rendered

2004-08-30 02:11  havoc

	* collision.h: collision.h doesn't need winding.h anymore

2004-08-30 02:10  havoc

	* curves.c: more documentation on B-Splines

2004-08-30 02:09  havoc

	* cl_particles.c: make sure particles are reset on level change by
	clearing the array

2004-08-29 02:08  havoc

	* todo: 367 and all unfinished todo items labeled by category

2004-08-28 15:37  havoc

	* sv_user.qc: how'd this get here?

2004-08-27 15:21  havoc

	* todo: 367

2004-08-27 02:53  havoc

	* common.c, common.h: added GAME_NETHERWORLD

2004-08-27 02:07  havoc

	* todo: 368

2004-08-27 01:42  havoc

	* todo: 369

2004-08-26 14:08  havoc

	* darkplaces.txt: modified Tomaz credits

2004-08-26 01:43  tomaz

	* todo: 369

2004-08-26 00:43  havoc

	* todo: 370

2004-08-25 20:10  havoc

	* pr_cmds.c: fixed te_explosion2 prototype in comment to include
	colorlength (as it already does in dpextensions.qc)

2004-08-25 16:57  havoc

	* todo: md3 skin loading for player models which have no shader
	names works

2004-08-25 16:56  havoc

	* model_alias.c: thanks to Jeff Ford (qbism) for this fix to md3
	player model loading, the base skin now works

2004-08-25 16:05  tomaz

	* cl_screen.c, menu.c: Added Tei's "whack" that adds a drop down
	shadow on all text. r_textshadow 1 to enable.

2004-08-25 13:31  havoc

	* collision.c, collision.h, darkplaces.dev, polygon.c, polygon.h,
	darkplaces.dsp, makefile.inc, model_brush.c: changed
	Collision_NewBrushFromPlanes to use new polygon.c code, this got
	rid of the winding allocations and moved everything onto the stack,
	a little cleaner (and the new polygon.c code is faster than
	winding.c)

2004-08-25 10:00  tomaz

	* todo: 3371 items left.

2004-08-25 03:46  tomaz

	* todo: 373 items left.

2004-08-25 02:42  havoc

	* todo: 3 notifies done

2004-08-25 02:33  havoc

	* todo: a few more things done

2004-08-25 02:32  havoc

	* cl_particles.c: implemented loading of particles/particlefont.tga
	and particles/nexbeam.tga

2004-08-25 01:55  havoc

	* model_brush.c: fixed a couple potential crashes due to nodestack
	overflow, as suggested by Vic

2004-08-25 01:50  havoc

	* cgamevm.c, cl_main.c, cl_parse.c, cl_particles.c, cl_video.c,
	cmd.c, common.c, console.c, fs.c, gl_backend.c, gl_models.c,
	gl_textures.c, host.c, image.c, menu.c, meshqueue.c,
	model_shared.c, netconn.c, pr_cmds.c, pr_edict.c, prvm_cmds.c,
	r_shadow.c, snd_dma.c, snd_ogg.c, snd_wav.c, sv_main.c, ui.c,
	wad.c, zone.c, zone.h: Mem_AllocPool flags and parent parameters
	added, now there can be multiple temporary mempools by using the
	POOLFLAG_TEMP option, and removed Mem_AllocNestedPool

2004-08-25 01:08  havoc

	* todo: +5 notify, +1 done, -6 todo, +3 todo

2004-08-24 23:51  tomaz

	* todo: 376 items left.

2004-08-24 23:48  tomaz

	* cl_particles.c: Slightly tweaked CL_ParticleExplosion2 by VorteX.

2004-08-24 23:11  havoc

	* server.h, sv_main.c, sv_phys.c, view.c: cleaned up all standing
	in a sloped corner and getting hurt glitches by adding an
	SV_SetOnGround function which is called in SV_WalkMove in the right
	places (incase SV_FlyMove does not set it), which also fixed stair
	stepup smoothing (it needs FL_ONGROUND to not be flipping on and
	off during a step up) added stair stepdown (instead of going flying
	off stairs) added stair stepdown smoothing

2004-08-24 19:07  havoc

	* cl_main.c, cl_particles.c: slightly changed color of iceblast in
	prydon

2004-08-24 15:43  havoc

	* todo: one new todo 3 item, one other 3 done

2004-08-24 11:18  tomaz

	* todo: Still 378 items.

2004-08-24 11:17  tomaz

	* cl_main.c, cl_particles.c: Tried to make the vore spike trail to
	be blue under GAME_PRYDON mode. Failed and somehow made it white
	instead.

2004-08-24 11:09  tomaz

	* common.c, common.h, darkplaces.txt: Added GAME_PRYDON.

2004-08-24 09:54  tomaz

	* todo: Somehow the svector bug which was d was readded as -d.
	Fixed that. 378 items left.

2004-08-23 19:10  havoc

	* todo: notified sublim3 of 4 items, categorized more items, added
	2 or 3 items

2004-08-23 01:20  havoc

	* r_shadow.c: broke rtlights, oops  (shadowtest was reversed)

2004-08-23 00:25  havoc

	* glquake.h: missed a uint that should be GLuint

2004-08-22 22:35  havoc

	* glquake.h, vid_shared.c: added GL_ARB_shader_objects,
	GL_ARB_shading_language_100, GL_ARB_vertex_shader,
	GL_ARB_fragment_shader extensions (not used for anything yet)

2004-08-22 22:34  havoc

	* view.c: now only does stair smoothing when onground (thanks to
	Sajt for noticing this bug)

2004-08-22 19:10  havoc

	* r_shadow.c, r_shadow.h: merged R_Shadow_Stage_LightWithShadows
	and R_Shadow_Stage_LightWithoutShadows to make a
	R_Shadow_Stage_Light which takes a shadowtest parameter, just a bit
	of code reduction

2004-08-22 10:15  tomaz

	* todo: 380 items left.

2004-08-22 09:20  tomaz

	* menu.c: Added sv_maxrate cvar to server setup menu.

2004-08-22 08:37  tomaz

	* cl_parse.c: Made ValidateState warn and not error out about
	colormap > maxclients.

2004-08-22 04:45  tomaz

	* todo: 383 items left.

2004-08-22 04:37  tomaz

	* gl_textures.c, model_alias.c, model_brush.c, model_sprite.c: Made
	gl_picmip affect only maps, models, and sprites by setting their
	TEXF_PICMIP flag.

2004-08-22 04:12  tomaz

	* gl_backend.c: Changed 360. to 360.0

2004-08-21 18:58  tomaz

	* todo: 384 items left.

2004-08-21 18:58  tomaz

	* r_textures.h: Added TEXF_PICMIP to the list of TEXF_ flags.

2004-08-21 18:30  tomaz

	* pr_exec.c: Made qc profile command post an error message instead
	of crashing when used during demo playback.

2004-08-21 18:08  tomaz

	* todo: 385 items left.

2004-08-21 15:27  havoc

	* todo: notified Todd about 3 items being done

2004-08-21 09:45  tomaz

	* todo: 389 items.

2004-08-21 09:43  tomaz

	* sys_linux.c, sys_sdl.c, sys_win.c: Made Sys_Error print the error
	message to the console / logfile.

2004-08-21 09:42  tomaz

	* console.h, host.c: Close logfile at shutdown.

2004-08-20 16:57  havoc

	* todo: finished labeling categories of 0 difficulty items

2004-08-20 13:54  tomaz

	* lhfont.h: Forgot this when doing the embedded conchar commit

2004-08-20 13:53  tomaz

	* todo: down to 393

2004-08-20 13:50  tomaz

	* gl_draw.c: embedded a fallback conchars.tga so it can load in an
	empty directory with a visible console (used to use the
	checkerboard texture)

2004-08-20 13:49  tomaz

	* darkplaces.txt: Added de-we to the credits

2004-08-19 23:58  havoc

	* todo: went through most of todo and cleaned things up, not
	finished labeling them by category yet, but todo is now down to 402
	items

2004-08-19 17:00  tomaz

	* keys.c: Enabled tested and verified that the clipboard paste
	works in the console (Win32 only)

2004-08-19 05:34  tomaz

	* todo: [no log message]

2004-08-18 17:09  tomaz

	* todo: [no log message]

2004-08-18 15:23  tomaz

	* todo: [no log message]

2004-08-18 15:22  tomaz

	* cl_collision.c: Fixed collision: client getting fraction out of
	bounds errors when in a map the client does not have

2004-08-17 15:52  tomaz

	* todo: [no log message]

2004-08-17 15:50  tomaz

	* r_light.c: Added lightstyle interpolation.

2004-08-16 16:51  havoc

	* image.c, model_shared.c: fixed normalmap handling (my vectors
	were backwards), and corrected normalmap generator accordingly

2004-08-12 16:31  havoc

	* model_shared.c: now checks tangent vector crossproduct against
	surface normal to see if the tangents came out backwards and flips
	them if so, this fixed all the nasty bumpmapping problems

2004-08-11 10:25  havoc

	* snd_dma.c: fixed sound problems (I had totally messed up the
	panning calcs, oops)

2004-08-09 19:12  havoc

	* host.c, snd_dma.c, snd_null.c, sound.h: converted S_Update to
	take a matrix, and internal snd_dma functions to use that matrix
	where applicable (only spatialization)

2004-08-09 19:10  havoc

	* matrixlib.c, matrixlib.h: added identitymatrix const struct which
	can be used wherever

2004-08-09 14:35  havoc

	* cl_particles.c: fix unused variable k warning

2004-08-09 14:29  havoc

	* r_shadow.c: don't show editlights cursor position when not in
	editlights mode

2004-08-09 06:07  havoc

	* r_shadow.c: now shows cursor location in editlights mode

2004-08-09 05:59  havoc

	* cl_parse.c: rocket glow is now more orange, less pale

2004-08-09 03:12  havoc

	* todo: [no log message]

2004-08-08 15:55  havoc

	* cl_particles.c: redesigned rocket explosion effect, now a simple
	spray of small sparks, nothing else added pt_ember (a spark
	particle which leaves a trail of sparks), not used though (was used
	experimentally) and edited CL_MoveParticles a little bit to make it
	possible to spawn particles during the particle update loop

2004-08-08 15:52  havoc

	* cl_main.c, cl_parse.c: changed rocket explosion color to be more
	redish orange changed rocket trail color to be more redish orange
	doubled brightness of modelflags lights (they weren't very
	noticable)

2004-08-08 15:52  tomaz

	* todo: [no log message]

2004-08-08 14:51  tomaz

	* todo: [no log message]

2004-08-08 14:49  tomaz

	* cl_particles.c: made TE_EXPLOSION2 use a spherical spawn pattern
	rather than cube shape

2004-08-08 14:26  tomaz

	* todo: [no log message]

2004-08-08 14:07  tomaz

	* todo: [no log message]

2004-08-08 14:04  tomaz

	* pr_cmds.c: Fixed the missing colorlength param on te_explosion2

2004-08-08 13:17  havoc

	* todo: [no log message]

2004-08-08 13:06  tomaz

	* todo: [no log message]

2004-08-07 16:21  black

	* menu.c, prvm_cmds.c: -Fixed a bad bugfix in the menu router. 
	-Added read-only support for files outside of data/ to the new vm.

2004-08-07 08:52  havoc

	* cl_main.c: effect dlights weren't casting shadows (oops)

2004-08-07 08:51  havoc

	* gl_backend.c: fixed r_showtris

2004-08-07 06:08  molivier

	* snd_mem.c: Improved sound resampling. It can handle sounds up to
	96KHz stereo at a constant precision, even if they're very long,
	since the algorithm now works second by second.

2004-08-06 06:06  havoc

	* client.h, gl_backend.c, gl_draw.c: rearranged SCR_UpdateScreen,
	now puts 2D graphics in the two views in r_stereo_sidebyside mode
	(but not in any other mode), and 2D graphics are rendered into both
	color planes with the anaglyph modes

2004-08-06 01:01  havoc

	* pr_cmds.c: added DP_QC_MULTIPLETEMPSTRINGS extension (thanks to
	fuh for pointing out I should make this detectable to the QC)

2004-08-05 06:50  havoc

	* client.h, gl_backend.c, gl_rmain.c, gl_rsurf.c, r_shadow.c: this
	patch adds a number of stereo viewing modes (shutter glasses and
	video glasses not supported yet) added r_stereo_redblue and
	r_stereo_redgreen and r_stereo_redcyan (anaglyph 3d glasses) added
	r_stereo_sidebyside (no glasses, recommend using the smallest
	viewsize to get them lined up with your eyes, then stare straight
	ahead...  warning: eye strain) added r_stereo_separation (sets how
	far apart the eyes are in the world, default is 4 units,
	technically this should be 1.33, about 2 inches, but the quake
	player is a midget compared to the world...  so that doesn't look
	right)

2004-08-03 01:39  black

	* snd_dma.c: Changed S_LocalSound to play multiple sounds at a
	time.

2004-08-02 11:00  tomaz

	* sys.h, sys_linux.c, sys_win.c: Added CTRL+V paste into the
	console for win32 users.

2004-08-02 07:18  molivier

	* common.c, common.h: Put all gamemode information (name, game dir,
	...) into an array to ease maintenance.

2004-07-27 02:18  havoc

	* cl_particles.c: removed particle compacting stage, this fixed all
	'disappearing decals' problems, and caused a slight redesign to
	support dead particles in the array (now classified as pt_dead)
	removed pressure particle support (since the freeparticle array it
	reused is gone now), pressure property still exists but is unused
	added friction to a few more particle effects

2004-07-25 23:11  havoc

	* gl_backend.c, menu.c: removed gl_delayfinish cvar as it's now a
	speed loss with gl_finish 0

2004-07-25 23:09  havoc

	* gl_backend.c, glquake.h, vid.h, vid_glx.c, vid_sdl.c,
	vid_shared.c, vid_wgl.c: added gl_finish cvar, defaults to 0, this
	was a noticable speed gain (22.5% on timedemo demo1 if not fillrate
	limited)

2004-07-23 03:29  tomaz

	* todo: [no log message]

2004-07-23 03:01  tomaz

	* todo: [no log message]

2004-07-22 06:35  molivier

	* pr_cmds.c, todo: Added 3 new QuakeC extensions:
	DP_SND_DIRECTIONLESSATTNNONE, DP_SND_OGGVORBIS and DP_SND_STEREOWAV

2004-07-22 04:05  molivier

	* todo: [no log message]

2004-07-21 17:38  havoc

	* todo: [no log message]

2004-07-21 05:46  molivier

	* gl_textures.c: Fixed a warning when compiling with GCC (missing
	type)

2004-07-20 05:26  molivier

	* menu.c: Updated Transfusion map list for version 1.1 beta3

2004-07-20 02:59  molivier

	* menu.c: Fixed the sliders and the toggles in the options menu

2004-07-17 13:25  tomaz

	* menu.c, menu.h: added graphics options menu and put realtime
	lighting stuff in it

2004-07-17 13:17  tomaz

	* r_shadow.c: added r_editlights_editall command, same as _edit but
	affects all lights

2004-07-17 13:15  tomaz

	* gl_textures.c: made gl_texture_anisotropy take effect immediately
	like gl_texturemode rather than needing an r_restart

2004-07-17 13:10  tomaz

	* r_shadow.c: Fixed a color bug that made realtime lights to be
	severly broken.

2004-07-16 08:35  black

	* cd_sdl.c: -Added SDL cd playing support (though not all functions
	are supported).  -Added (in the SDL driver) the console command
	cddrive to handle multiple cd drives.

2004-07-15 13:34  havoc

	* protocol.c, protocol.h, sv_main.c: cleaned up EntityState code
	somewhat, added beginnings of new protocol (not used yet)

2004-07-15 06:01  black

	* snd_sdl.c: -Added SDL sound support (still needs a bit debugging,
	though).

2004-07-14 06:22  black

	* snd_dma.c, sound.h, sys.h, sys_win.c, vid_sdl.c, vid_wgl.c:
	-Added the preprocessor constant USE_DSOUND.  -Moved some
	prototypes around in sys.h a bit.  -Moved Sys_SendKeyEvents from
	sys_win.c to vid_wgl.c.

2004-07-14 05:52  havoc

	* todo: [no log message]

2004-07-14 05:31  havoc

	* todo: [no log message]

2004-07-12 11:54  black

	* vid_sdl.c: -The mouse wheels now work in Windows (now button
	presses are detected event-based) -The left and middle mouse button
	arent switched any more.  -The library SDL version and the linked
	SDL version are displayed now (perhaps change  the outputted text)

2004-07-11 10:58  coderjoe

	* common.c, common.h, menu.c: Add OpenQuartz support, provided by
	Toddd.

2004-07-11 07:56  black

	* host.c, prvm_cmds.c, sys.h, sys_linux.c, sys_sdl.c, sys_shared.c,
	sys_win.c, vid_sdl.c, vid_wgl.c: -Removed Sys_Quit and added
	Sys_Shutdown which will be called by Host_Shutdown.  -The SDL main
	driver is works more or less now.

2004-07-10 05:27  black

	* menu.c, prvm_cmds.c: Fixed a bug in the menu.

2004-07-06 01:38  molivier

	* cl_video.c, snd_dma.c, snd_mix.c, snd_null.c, sound.h: Removed
	the functions "S_RawSamples_*" and "S_ResampleBuffer16Stereo".
	They're useless now that the video code uses the common sound API.

2004-07-06 00:06  havoc

	* r_shadow.c: USETEXMATRIX is now a #ifdef rather than a #if now
	parses tyrlite light types properly (though doesn't do much special
	with them) (this was an update I was sitting on for a month, forgot
	about it, sorry.)

2004-07-05 06:28  molivier

	* snd_dma.c: Fixed a crash when using "-nosound"

2004-07-04 19:19  havoc

	* todo: [no log message]

2004-07-02 08:31  molivier

	* wavefile.c, wavefile.h: Oops. Forgot to remove "wavefile.[ch]"

2004-07-02 08:30  molivier

	* cd_shared.c, cl_parse.c, cl_video.c, console.c, darkplaces.dev,
	darkplaces.dsp, dpvsimpledecode.c, dpvsimpledecode.h, fs.c,
	makefile.inc, menu.c, prvm_cmds.c, snd_dma.c, snd_mem.c,
	snd_null.c, sound.h: Modified the sound code so it can handle
	sounds outside of a "sound" subdirectory.  Changed the video code
	so it uses the common sound code (nice side-effect: DP video
	soundtracks can now be Ogg Vorbis files). Removed "wavefile.[ch]"
	and updated the project files accordingly.  Fixed log timestamps on
	Win32.	Cleaned a bit of code and a few header files inclusions
	here and there.

2004-06-26 07:32  black

	* menu.c: Added support for my experimental ng menu(qc).

2004-06-25 08:13  black

	* prvm_edict.c: Added the cmd prvm_global <program> <global> which
	displays the value of the specific global. This makes debugging
	easier.

2004-06-25 06:38  molivier

	* snd_mix.c, wavefile.c: Fixed partially the sound code for DP
	video captures. It still can't sync with the video stream capture
	itself, but at least it produces a correct WAV file.

2004-06-24 07:49  molivier

	* cl_demo.c, todo: DP now handles correctly demos containing
	"svc_disconnect" messages (fix Quake Done Quick With A Vengeance
	demos)

2004-06-23 07:14  molivier

	* snd_dma.c, snd_null.c, sound.h: Removed unused functions
	S_AmbientOff and S_AmbientOn. Moved S_ClearBuffer declaration into
	"snd_dma.c" so it doesn't need an implementation in "snd_null.c"

2004-06-23 07:11  molivier

	* makefile.inc: Oops. I involuntary changed the default Linux sound
	config from OSS to ALSA 2 months ago. Reverted back that change.

2004-06-23 07:06  molivier

	* cl_screen.c: A couple of minor simplifications in the screenshot
	/ video code

2004-06-16 05:06  molivier

	* .cvsignore, console.c, darkplaces.dev: Added support for Dev-C++,
	a MinGW32 IDE <http://www.bloodshed.net/dev/devcpp.html>

2004-05-26 16:03  havoc

	* gl_textures.c: Tomaz renamed r_picmip to gl_picmip, r_max_size to
	gl_max_size, r_max_scrapsize to gl_max_scrapsize

2004-05-26 04:28  havoc

	* todo: [no log message]

2004-05-26 04:25  havoc

	* keys.c: Tomaz fixed key repeats in the console

2004-05-23 01:41  havoc

	* r_shadow.c: now reloads rtlights only when map changes, not
	renderer restarts, this means rtlights changes are not lost when
	video mode changes autoloads rtlights when map changes, even if not
	in realtime lighting mode compiles lights and loads their cubemaps
	without checking for visibility first (to force loading on first
	frame, not during gameplay)

2004-05-22 01:11  havoc

	* todo: [no log message]

2004-05-21 20:13  havoc

	* todo: [no log message]

2004-05-21 20:12  havoc

	* host_cmd.c: Host_Name_f now validates player names, stripping \r
	and \n control codes

2004-05-21 20:00  havoc

	* todo: sort

2004-05-21 20:00  havoc

	* todo: [no log message]

2004-05-21 19:59  havoc

	* server.h, sv_main.c, sv_phys.c, world.c: added
	sv_gameplayfix_grenadebouncedownsteps,
	sv_gameplayfix_noairborncorpse, sv_gameplayfix_stepwhilejumping,
	sv_gameplayfix_swiminbmodels cvars to be able to disable DP's
	physics enhancements

2004-05-21 19:42  havoc

	* gl_rsurf.c: rtlights were crashing when there's no vis in a q3bsp

2004-05-21 19:12  havoc

	* todo: forgot to sort the todo

2004-05-21 19:11  havoc

	* todo: [no log message]

2004-05-21 15:25  havoc

	* todo: [no log message]

2004-05-21 15:18  havoc

	* todo: [no log message]

2004-05-21 12:45  havoc

	* todo: [no log message]

2004-05-21 12:42  havoc

	* todo: [no log message]

2004-05-21 12:18  havoc

	* todo, todo: [no log message]

2004-05-21 12:09  havoc

	* todo: [no log message]

2004-05-21 11:59  havoc

	* r_shadow.c, r_shadow.h: Tomaz renamed r_shadow_polygon* cvars to
	r_shadow_shadow_polygon*

2004-05-21 11:56  havoc

	* zone.c: Tomaz made Mem_Free only clear if developer is on, this
	may speed up engine shutdown

2004-05-21 11:55  havoc

	* lhnet.c, netconn.c, netconn.h: Tomaz renamed cl_fake* networking
	cvars to cl_net*

2004-05-21 11:53  havoc

	* cl_parse.c: Tomaz made the progs/bolt.mdl and progs/bolt2.mdl
	loading not complain if missing

2004-05-21 01:29  havoc

	* todo: [no log message]

2004-05-20 19:56  havoc

	* host_cmd.c: Tomaz fixed the name timer glitch which caused blank
	names when restarting a server

2004-05-20 18:30  havoc

	* menu.c: Tomaz added r_skyscroll1/2 to the menu

2004-05-20 17:49  havoc

	* r_sky.c: handle sky scroll wrapping better

2004-05-20 17:40  havoc

	* r_sky.c, render.h: Tomaz implemented r_skyscroll1/2 cvars to
	control sky scrolling speeds

2004-05-20 17:38  havoc

	* cl_screen.c, cl_screen.h, gl_backend.c: Tomaz implemented the
	vid_pixelaspect patch provided by Grisha Spivak

2004-05-20 16:24  havoc

	* common.c, common.h: added GAME_NEOTERIC

2004-05-20 16:18  havoc

	* todo: [no log message]

2004-05-20 16:17  havoc

	* common.c: changed Son of Man's data directory to sonofman, as
	requested by Supajoe

2004-05-20 16:05  havoc

	* gl_backend.c, gl_rmain.c, render.h: GL_TransformToScreen now
	properly calculates out[2], thanks to Vic for pointing out the flaw

2004-05-20 14:05  havoc

	* todo: [no log message]

2004-05-20 13:33  havoc

	* cl_screen.c, gl_backend.c, gl_backend.h, image.c, image.h: Tomaz
	made cl_avidemo screenshot saving use no mallocs

2004-05-20 12:29  havoc

	* curves.c, model_brush.c, snd_win.c: Tomaz cleaned up some double
	;; lines (strange stuff)

2004-05-20 11:57  havoc

	* cl_screen.c, gl_backend.c, gl_backend.h: Tomaz optimized the
	cl_avidemo mode by making it keep around the image processing
	buffers, two less mallocs per frame

2004-05-19 00:22  havoc

	* cl_main.c: ... actually 16 looks better as a start size

2004-05-19 00:22  havoc

	* cl_main.c: updated cl_explosions_size_start and
	cl_explosions_size_end to 64 and 128 respectively

2004-05-19 00:20  havoc

	* r_explosion.c: restructured parts of explosion code
	cl_explosions_size_start and cl_explosions_size_end now work

2004-05-18 17:49  havoc

	* common.c, common.h, fs.c: moved screenshot base name stuff to
	common.c, out of fs.c (by adding a gamescreenshotname variable, set
	like gamename and gamedirname) added support for multiple -game
	directories (-game a -game b -game c ...)

2004-05-18 15:01  havoc

	* r_shadow.c, r_sky.c: Tomaz changed skybox rendering/loading to
	flip skyboxes and use cubemaps directly (no visual differences,
	just prefers cubemaps now) and reordered suffix tables to load in
	the order px posx rt

2004-05-18 14:48  havoc

	* image.c: Tomaz fixed Image_CopyMux

2004-05-18 14:28  havoc

	* image.c: new optimized Image_CopyMux is broken, disabled until
	it's fixed

2004-05-18 14:04  havoc

	* r_sky.c: Tomaz added support for loading a cubemap as skybox

2004-05-18 13:48  havoc

	* model_brush.c: Tomaz fixed black models in unlit maps

2004-05-18 11:55  havoc

	* r_explosion.c: Tomaz patch to implement controllable fade rate in
	explosions

2004-05-18 11:26  havoc

	* image.c: Vic optimized Image_CopyMux

2004-05-17 23:26  havoc

	* gl_rsurf.c: merged RSurfShader_Water_Callback and
	RSurfShader_Wall_Vertex_Callback and made them more consistent,
	water lightmaps are now basically supported (vertex though)

2004-05-17 23:24  havoc

	* r_light.c: allow drawing coronas fainter than 1 (it was checking
	r_coronas.integer)

2004-05-17 23:13  havoc

	* todo: [no log message]

2004-05-17 21:35  havoc

	* cl_main.c: separated rtlight (light[]) settings from normal glow
	dlights, this means no more anomalies involving cubemaps on glowing
	models and such, all pflags are ignored on dlights, only rtlights
	are affected

2004-05-17 13:09  havoc

	* menu.c: Tomaz added lightning settings to effects options menu

2004-05-17 13:06  havoc

	* cl_main.c, client.h, r_explosion.c: Tomaz added some
	cl_explosions cvars, more work on this to come

2004-05-17 12:46  havoc

	* pr_cmds.c: cleaned up PF_fopen filename rejection, now rejects
	more unsafe names, including control characters (yes I expect
	problems with player names as a result)

2004-05-17 12:27  havoc

	* pr_cmds.c: Tomaz patch to fopen builtin which now tries to read
	files outside data/ (but won't try to write or append outside
	data/), for better compatibility with other engines that don't use
	data/ in their FRIK_FILE implementation

2004-05-17 12:18  havoc

	* console.c: Tomaz's con_backscroll patch, backscroll is no longer
	reset by new prints, and remains locked on the same position in the
	history

2004-05-17 12:08  havoc

	* common.c: changed Com_HexDumpToConsole to print space separated 4
	byte groups, added some comments, and cleaned up the readability of
	it thanks to Tomaz for the beginnings of this patch

2004-05-17 11:22  havoc

	* gl_rmain.c: fix r_fullbright being accidentally reset on level
	change

2004-05-15 17:21  havoc

	* matrixlib.c: Tomaz optimized Matrix4x4_CreateFromQuakeEntity

2004-05-15 17:19  havoc

	* mathlib.c: Tomaz optimized AngleVectorsFLU for the roll == 0 case

2004-05-15 16:35  havoc

	* cl_screen.c: Tomaz made envmap also save px/nx/py/ny/pz/nz files
	(GL cubemap)

2004-05-15 16:24  havoc

	* mathlib.c: Tomaz optimized AngleVectors for the roll == 0 case

2004-05-15 14:49  havoc

	* console.c, keys.c: Tomaz enabled some numpad keys in the console
	and the insert key, and also fixed up the console edit line
	rendering so you can move left/right on the editing line

2004-05-15 13:43  havoc

	* gl_rsurf.c, model_brush.c: Tomaz renamed all R_Model_Brush
	functions to R_Q1BSP

2004-05-15 13:40  havoc

	* r_shadow.c: added comments to cubemap loader, to explain its
	confusing logic

2004-05-15 13:24  havoc

	* cl_screen.c, gl_backend.c, gl_backend.h, r_shadow.c: Tomaz fixed
	the envmap command; it was saving black images, and now saves
	images in the correct order with appropriate flipping, to comply
	with skybox arrangements

2004-05-15 12:35  havoc

	* image.c, image.h: renamed most Image_CopyMux parameters to begin
	with input to clarify their purpose, inputwidth for example,
	because these are input properties, not output properties cleaned
	up Image_CopyMux, and fixed its handling of inputflipdiagonal to
	properly work with unequal inputwidth/inputheight swapped
	Image_CopyMux numinputcomponents/numoutputcomponents parameters to
	be more consistent with the 'output, input' order of its other
	parameters

2004-05-15 11:34  havoc

	* todo: [no log message]

2004-05-14 22:52  havoc

	* model_brush.c: fix skybox loading in q3 shaders, needed to append
	a _ to the end of the skybox name

2004-05-14 08:53  havoc

	* r_shadow.c: Tomaz fixed cubemap loading of skyboxes

2004-05-13 17:17  havoc

	* r_sky.c: Tomaz fixed the skybox arrangement to match
	glquake/quake2/quake3/3dstudio

2004-05-13 17:16  havoc

	* vid_shared.c: Tomaz fixed the stencil support (I had accidentally
	broken it in my over-zealous resetting of gl related variables)

2004-05-13 15:39  havoc

	* todo: [no log message]

2004-05-13 15:02  havoc

	* gl_backend.c, menu.c, render.h, view.c: Tomaz's gl_polyblend
	patch to control intensity of view blends

2004-05-13 12:10  havoc

	* menu.c: Tomaz's patch to add fov to options menu

2004-05-13 11:41  havoc

	* todo: [no log message]

2004-05-13 11:40  havoc

	* host_cmd.c, server.h: Tomaz's nametime patch (prevent frequent
	name changes on the server)

2004-05-13 10:23  havoc

	* cl_screen.c, cl_screen.h, fs.c: Tomaz's patch to name screenshots
	based on gamemode or -game if specified

2004-05-12 15:08  havoc

	* gl_textures.c, glquake.h, menu.c, vid_shared.c: Tomaz's patch to
	ask the driver for a gl_texture_anisotropy limit, and apply that
	limit also fixed a bunch of extension variables that were not being
	reset on resolution changes

2004-05-12 11:03  havoc

	* todo: [no log message]

2004-05-12 09:57  havoc

	* .cvsignore: now ignores darkplaces-sdl and darkplaces-dedicated
	executables, removed darkplaces-3dfx executable (as it has been
	abandoned for a long time)

2004-05-12 09:55  havoc

	* gl_backend.c, menu.c, render.h: Tomaz's patch for r_waterwarp
	with controllable intensity

2004-05-12 09:52  havoc

	* r_shadow.c: Tomaz's patch for optimized vectorlength calls in the
	vertex lighting code, as Vic suggested

2004-05-04 03:10  molivier

	* cl_screen.c: Fixed a few warnings regarding casts of lvalues
	(deprecated in GCC 3.3, unsupported in GCC 3.4)

2004-05-04 01:45  molivier

	* snd_alsa.c, snd_dma.c: Removed the printings at the end of ALSA
	driver initialization. Fixed the soundinfo format string for the
	DMA pointer

2004-05-03 03:11  havoc

	* darkplaces.txt: credited Elric for some of his great
	contributions, and removed the warnings about music files often
	using 50mb or so of memory, as Elric made them stream

2004-05-01 20:54  havoc

	* pr_edict.c: clean up vector parsing in ED_ParseEpair, now stores
	0 into any vector components that can not be read due to end of
	string

2004-04-29 00:54  molivier

	* console.c: The log file is now started and stopped at run-time
	whenever the value of the "log_file" cvar changes. Added timestamps
	at the beginning and at the end of the log files. Increased the log
	queue size from 256 to 512.  DP now appends the new logs instead of
	overwritting the files (except when using "-condebug", it
	overwrites "qconsole.log").

2004-04-29 00:51  molivier

	* makefile.inc, snd_alsa.c, snd_alsa_0_5.c, snd_alsa_0_9.c: Updated
	ALSA driver (API version 1.0). The vast majority of the code comes
	from QuakeForge, like the previous versions

2004-04-29 00:48  molivier

	* snd_ogg.c: Fixed a bug in the Ogg Vorbis streaming code that can
	cause sound files to be unplayable if the sound device is set to a
	lower speed

2004-04-17 18:47  havoc

	* gl_rsurf.c: merged R_DrawSurfaceChain into R_DrawSurfaces loop

2004-04-17 18:24  havoc

	* model_alias.c: more consistent and helpful model loading error
	messages

2004-04-16 01:06  havoc

	* protocol.c, sv_main.c: fixed the huge networking problems
	regarding invalid reference frames

2004-04-15 23:36  havoc

	* menu.c: made the player setup menu actually change the rate cvar
	(like it was supposed to)

2004-04-15 23:28  molivier

	* cd_bsd.c, cd_linux.c, cd_shared.c: Fine-grained CD volume for
	NetBSD. Made the CD error message "Bad track number" a normal
	(non-developer) message. Zeroed the 3rd and 4th channel volumes in
	the Linux CD module too. The initial CD volume is now printed at
	startup (developer message).

2004-04-15 23:08  havoc

	* gl_rmain.c, r_shadow.c, r_shadow.h: renamed r_shadow_worldshadows
	to r_shadow_realtime_world_shadows renamed r_shadow_dlightshadows
	to r_shadow_realtime_dlight_shadows, and added
	r_shadow_realtime_world_dlightshadows to control dlight shadows in
	realtime world mode

2004-04-15 23:06  havoc

	* sys_win.c: make WinMain commandline parser handle quoted strings

2004-04-15 07:24  molivier

	* cd_bsd.c, cd_linux.c, cd_null.c, cd_shared.c, cd_win.c:
	Fine-grained CD volume support for Linux. Note that it uses the CD
	player internal volume, not the system audio mixer. The BSD version
	should follow very soon; if someone knows how to do that on Win32,
	I would be glad to hear from him.

2004-04-14 23:04  molivier

	* snd_ogg.c, todo: Fixed streaming of sounds with a sample rate
	different from the engine output rate. Streamed sounds are now
	processed by 1 sec steps, to avoid lossing samples in ResampleSfx
	among other things (it could occur when resampling from 48KHz to
	44KHz for instance).

2004-04-14 01:47  havoc

	* gl_rsurf.c, model_shared.h: r_ambient no longer alters the
	lightmap in q1bsp, instead it adds another render pass (this makes
	sense for performance as it's a cheat anyway, no optimization
	needed)

2004-04-14 00:53  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: renamed q3mface_t to
	q3msurface_t

2004-04-14 00:34  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h, pr_cmds.c, r_shadow.c:
	renamed model->numsurfaces to model->nummodelsurfaces renamed
	model->brushq1.firstmodelsurface and
	model->brushq1.nummodelsurfaces to model->firstmodelsurface and
	model->nummodelsurfaces

2004-04-13 23:17  havoc

	* gl_rmain.c, gl_rsurf.c: merged R_DrawWorld into DrawSky/Draw so
	that rmain can just call DrawSky and Draw on the world entity like
	any other

2004-04-13 23:02  molivier

	* cd_linux.c: The Linux CD module now uses O_NONBLOCK when opening
	the CDROM device to avoid failure if there's no CD in the player

2004-04-13 22:13  havoc

	* model_brush.c: cleaned up submodel loading, and wrote a big
	description of how quake worked (since it was so confusing), as
	well as how it now works

2004-04-13 21:59  havoc

	* todo: [no log message]

2004-04-13 21:58  havoc

	* darkplaces.txt: added a number of tips and a sound features
	section

2004-04-13 21:47  havoc

	* cl_main.c: fix sprite pitch; apparently quake did not negate
	their pitch after all...

2004-04-12 00:58  havoc

	* sbar.c: another change for transfusion (remove the little frag
	counts display from the sbar)

2004-04-12 00:34  havoc

	* console.c, sbar.c: patch from transfusion team to change
	transfusion hud layout a bit (moves minideathmatch overlay to be
	across the top of the screen, and centers the sbar even in
	deathmatch)

2004-04-12 00:30  havoc

	* menu.c: patch from transfusion team to add taunts to transfusion
	bind menu

2004-04-11 10:41  molivier

	* cd_shared.c, menu.c, snd_dma.c, snd_null.c, sound.h: The first
	step towards a real CD volume setting (only the fake CD tracks
	volume are correctly supported for the moment). Removed a couple of
	useless definitions in "sound.h".

2004-04-11 10:34  molivier

	* snd_ogg.c: Added an error message when the sound mixer requests
	more samples from a stream than its buffer can contain

2004-04-09 19:20  havoc

	* cl_main.c: reverse pitch direction on PFLAGS_FULLDYNAMIC light
	entities to match tenebrae

2004-04-09 12:37  molivier

	* console.c: The base size of the log queue is 256 bytes, not 4 (it
	was a test for the queue automatic resizing that was commited by
	mistake)

2004-04-08 06:11  molivier

	* cl_demo.c, common.c, console.c, console.h, fs.c, fs.h, host.c,
	todo: Added a "log_file" cvar to control the log file name
	(default: "" which means no log, "-condebug" sets it to
	"qconsole.log"). Added a "log_sync" cvar to control whether or not
	the log output is flushed at each write (default: 0, "-condebug"
	sets it to 1).	Note that we now need to wait until the cvars are
	initialized to start logging the console, so the logging system
	puts every message printed before that in a logging queue that is
	proceed when the log file is actually opened.  Renamed
	"Con_LogPrint" and "Con_LogPrintf" to "Log_Print" and "Log_Printf"
	respectively. Added "FS_VPrintf"

2004-04-08 05:59  molivier

	* snd_dma.c, snd_ogg.c, snd_wav.c, sound.h: "soundlist" now tells
	you if a sound is streamed and whether it is mono or stereo

2004-04-06 21:36  havoc

	* sv_main.c: fixed entities disappearing when partially submerged
	in water (it was a very stupid bounding box bug)

2004-04-06 06:08  molivier

	* console.c: Removed an unused cvar (logfile)

2004-04-05 22:58  molivier

	* protocol.c, todo: Fixed cl_nodelta 1

2004-04-05 00:00  molivier

	* cd_bsd.c, cd_linux.c, cd_null.c, cd_shared.c, makefile.inc,
	snd_dma.c, snd_mix.c, snd_null.c, sound.h: Fake CD tracks support;
	DP now tries to play "sound/cdtracks/trackXX.wav" instead of CD
	track XX. If it fails, it tries "trackXX.ogg", and then the real CD
	track if any. CD console commands should work as expected. 
	"cd_shared.c" is now part of the common files so it allows people
	to compile DP without real CD support, but with fake CD tracks
	support. "cd_null.c" is now a null driver, at the same level as
	"cd_linux.c" or "cd_win.c".  Fixed the broken return value of
	S_StartSound and a potential memory leak in S_StopAllSounds in the
	process.

2004-04-04 23:51  molivier

	* common.c, fs.c, todo: Fixed the "-path" option. A couple of FS
	variables were never initialized explicitly

2004-04-04 23:49  havoc

	* cl_parse.c, host.c, quakedef.h: inlined Host_EndGame in
	CL_ParseServerMessage's svc_disconnect case and greatly reduced its
	code (removing the server shutdown, etc), this fixed an infinite
	recursion shutdown crash introduced by the Host_ShutdownServer
	changes

2004-04-04 23:45  molivier

	* sys_linux.c, todo: Fixed Win32 dedicated server input

2004-04-04 23:20  havoc

	* cl_demo.c, cl_input.c, cl_main.c, host.c, host_cmd.c, netconn.c:
	fixed very annoying '5 second timeout' bug in Host_ShutdownServer
	(the local client was timing out on the NetConn_SendToAll because
	the server was ignoring the client's reply packets, by setting
	sv.active = false too early) added Host_ShutdownServer call near
	every CL_Disconnect call, for consistency CL_Disconnect and
	Host_ShutdownServer now report their calls as dprints (previously
	they were entirely silent)

2004-04-03 15:20  havoc

	* sv_phys.c, world.c: make shrak work (lots of
	SOLID_BSP/MOVETYPE_PUSH entities with no models)

2004-04-02 17:34  havoc

	* cl_parse.c: fixed missing newline after map name in join message

2004-04-02 05:23  molivier

	* cl_parse.c, snd_dma.c, snd_mix.c, snd_null.c, sound.h: Added a
	CHANNELFLAG_LOCALSOUND flag for channels playing a client-side
	sound, such as menu sounds for instance. Added the ability to
	pause/resume channels. When the game is paused, all non-local
	sounds are now automatically paused (previously, no new sound was
	started during the pause, but those already created were played
	normally).

2004-04-01 23:27  molivier

	* cl_particles.c: Oops... It seems this malloc/free was actually
	intended (part of a piece of code protected by a WORKINGLQUAKE
	define)

2004-04-01 23:12  molivier

	* model_brush.c, netconn.c, pr_edict.c, prvm_edict.c, snd_dma.c,
	snd_mix.c, sound.h, sys_shared.c: strncpy -> {strlcpy,memcpy}.
	Replaced the "forceloop" boolean in "channel_t" by a flags field.

2004-04-01 23:08  molivier

	* cl_particles.c, cmd.c, fs.c: Replaced a direct call to "malloc"
	and "free", and removed several misuses of "Z_Malloc" where using
	the temp mempool was sufficient.

2004-04-01 14:42  havoc

	* gl_rsurf.c: fixed animated textures in realtime lighting mode
	(now calls R_UpdateTextureInfo)

2004-04-01 14:10  havoc

	* lhnet.c: fix the namelen parameter in the getsockname call

2004-04-01 14:07  havoc

	* lhnet.c: now uses getsockname to find out what address/port a
	newly opened socket is at, so it won't say 0.0.0.0:0 anymore

2004-04-01 01:46  molivier

	* collision.c: Fixed a warning (unused variable)

2004-03-31 18:06  havoc

	* r_shadow.c: default to r_shadow_realtime_dlight 1 mode

2004-03-31 08:14  havoc

	* collision.c: disabled triangle normal validation because the
	validator was broken and just spewing warnings

2004-03-31 05:41  molivier

	* snd_bsd.c: OpenBSD doesn't define _PATH_SOUND

2004-03-30 17:33  havoc

	* model_shared.c: disabled the invalid model check in
	Mod_CheckLoaded as it was preventing the game from working with
	missing models

2004-03-30 17:33  havoc

	* gl_rsurf.c: fix NODRAW flag check (don't draw NODRAW shaders)

2004-03-30 17:08  havoc

	* model_shared.c, sv_main.c: now supports missing models trying to
	load a non-existent map no longer kills the server

2004-03-28 08:19  havoc

	* todo: [no log message]

2004-03-26 06:22  molivier

	* snd_mix.c, sound.h: The portable_samplepair_t structure has no
	need to be public

2004-03-26 06:20  molivier

	* console.c: Removed a couple of useless inclusions

2004-03-25 06:36  havoc

	* matrixlib.c: include <> above ""

2004-03-25 01:47  molivier

	* darkplaces.dsp, makefile.inc, snd_dma.c, snd_mem.c, snd_ogg.c,
	snd_wav.c, snd_wav.h, sound.h: Moved the WAV loading code out of
	"snd_mem.c". Removed a couple of useless definitions in "sound.h".

2004-03-24 05:40  molivier

	* fs.c, jpeg.c, snd_ogg.c, sys.h, sys_shared.c: Factorized some
	code in the shared library loaders

2004-03-24 00:06  molivier

	* snd_dma.c, snd_mix.c, sound.h: Fixed the sounds not being
	advanced in time while not being listened. This is a long standing
	bug I think, it looks like the original Quake source code has it
	too, though I haven't tested. Each channel now remembers the last
	time it was painted, and so it can resume the play at the
	appropriate position if it missed some painting rounds.  Also,
	added a check to avoid looped sounds being overridden when picking
	a channel.

2004-03-23 11:32  havoc

	* gl_rsurf.c: rtlights shouldn't do anything with sky and water
	(this fixes shadowing problems mainly)

2004-03-23 07:59  molivier

	* snd_mem.c: Fixed the WAV file loading code (loopstart was always
	0 if the sound was looped)

2004-03-23 00:28  molivier

	* snd_bsd.c, snd_dma.c, snd_mem.c, snd_mix.c, snd_ogg.c, snd_ogg.h,
	snd_oss.c, snd_win.c, sound.h: Ogg vorbis streaming support; the
	code decides whether it will cache or stream the sound depending on
	the file and uncompressed sound sizes. It should be stable enough
	for a regular use now; you lose a few FPS once every second or so
	of course, it's not free, but you can expect the Vorbis stream to
	use between 5 and 12 times less memory than before, depending on
	the sound quality and the number of SFX sources using it. This
	patch also contains a couple of fixes (a pretty annoying typo in
	the OSS and BSD driver - 22051Hz instead of 22050Hz, and a
	potential memory leak in WAV loader)

2004-03-22 23:59  molivier

	* cl_particles.c, cmd.c, fs.c, fs.h, gl_rmain.c, image.c, menu.c,
	model_brush.c, model_shared.c, palette.c, pr_edict.c, prvm_cmds.c,
	prvm_edict.c, r_shadow.c, snd_mem.c, snd_ogg.c, sv_main.c, wad.c:
	Added a mempool parameter to FS_LoadFile

2004-03-22 23:44  havoc

	* image.c: fixed a memory leak if an image file loaded but failed
	to decode

2004-03-22 10:43  havoc

	* sbar.c: commented out mini scoreboard in nexuiz hud

2004-03-22 08:15  havoc

	* gl_backend.c: fixed two warnings on glGetDoublev calls

2004-03-22 02:08  havoc

	* model_brush.c: q3bsp pvs works again (was checking loadmodel when
	it should have been checking model)

2004-03-22 02:04  havoc

	* r_shadow.c: worked around an ATI driver bug with glColor during
	GL_EXT_compiled_vertex_array locks being ignored -
	R_Shadow_RenderLighting dot3 paths now lock around each pass
	instead of the whole set of final passes - ATI PLEASE FIX THIS, the
	GL_EXT_compiled_vertex_array spec says all settings can be changed
	during a lock! reorganized R_Shadow_RenderLighting to reduce code
	duplication a bit enabled scissor without stencil support (the bug
	was in the lack of a valid projectmatrix) added 3 tmu vertex
	lighting path (uses XYZ attenuation via textures, and vertex
	shading) which is mainly for use on 3+ tmu cards in 16bit color
	mode renamed R_Shadow_VertexLighting functions to
	R_Shadow_VertexShading and made their names more clear fixed a bug
	in the R_Shadow_VertexShading math (now normalizes the
	vertex->light vector as well as normal vector) made some functions
	static added an #ifndef USETEXMATRIX around the cpu matrix
	transform functions as they're not used anymore due to USETEXMATRIX
	code

2004-03-22 01:22  havoc

	* gl_backend.c: fix scissoring bugs with r_shadow_realtime_dlight -
	the projectmatrix was not being set for glFrustum and glOrtho
	cases, now it is (by reading back from GL)

2004-03-22 01:19  havoc

	* glquake.h, vid_shared.c: uncommented a lot of GL functions

2004-03-19 02:16  havoc

	* makefile.inc: removed -fexpensive-optimizations (which is turned
	on by -O2), added -funroll-loops

2004-03-18 02:49  havoc

	* model_brush.c: fixed 'black models' bugs in RecursiveLightPoint
	code

2004-03-17 21:15  havoc

	* gl_rsurf.c: fixed r_fullbright

2004-03-16 22:48  havoc

	* cl_main.c: expanded cl_max_beams from 24 to 256

2004-03-16 19:43  havoc

	* gl_rsurf.c, r_shadow.c, r_shadow.h: bsp model shadows are now
	enlarged by r_shadow_projectdistance (to cure problems with nearby
	surfaces casting shadow volumes too small)

2004-03-16 01:49  havoc

	* todo: [no log message]

2004-03-16 01:49  havoc

	* gl_backend.c: optimized away most texmatrix comparisons (now
	checks unit->texmatrixenabled which just dodges the comparisons)

2004-03-15 22:37  coderjoe

	* cd_null.c, sv_user.qc: fix newlines

2004-03-15 16:30  havoc

	* cl_main.c, cl_parse.c, r_shadow.c, todo: doubled brightness of
	most dlights, and halved brightness of lightmap dlight rendering,
	this should make dlights and rtlights look mostly the same

2004-03-15 16:27  havoc

	* r_light.c: added a note to optimize the MAX_DLIGHTS loop somehow

2004-03-15 15:49  havoc

	* gl_backend.c: optimized R_Mesh_State to only update most settings
	if there is an active texture on the unit

2004-03-15 00:52  molivier

	* darkplaces.dsp, makefile.inc, ogg.c, ogg.h, snd_dma.c, snd_mem.c,
	snd_ogg.c, snd_ogg.h: Renamed ogg.[ch] to snd_ogg.[ch]

2004-03-15 00:24  havoc

	* r_shadow.c: enabled USETEXMATRIX because it wasn't broken after
	all (testing mistake made me think it was)

2004-03-15 00:00  molivier

	* ogg.c, snd_mem.c: Removed the little endian -> native endian
	conversion from the sound resampling function. The sound file
	reading functions now take care of that.

2004-03-14 23:56  molivier

	* snd_mem.c: Made use of the common functions
	BuffLittle{Short,Long} in "snd_mem.c" instead of reinventing the
	wheel. Made a few variables static in the process.

2004-03-14 23:00  havoc

	* gl_backend.c, gl_backend.h, r_shadow.c, todo: 3d texcoords now
	must use rmeshstate_t.pointer_texcoord3f instead of
	pointer_texcoord, this allows texture matrices and such implemented
	(broken and disabled) texture matrix optimizations in
	R_Shadow_RenderLighting, I'm still trying to figure out what is
	wrong

2004-03-14 21:27  havoc

	* r_shadow.c: reorganized texture setup code in
	R_Shadow_RenderLighting to be cleaner, fixed CVA locking in
	voodoo1/2 paths (it was locked while the color array update was
	happening, no good)

2004-03-14 01:58  havoc

	* r_shadow.c, todo: fixed 2d attenuation texturing (it was all
	black due to an attenuationz matrix bug)

2004-03-14 01:50  havoc

	* darkplaces.txt: added a tip about using the color control menu to
	calibrate for proper quake viewing

2004-03-13 21:31  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h: got rid of Cshader
	system as it really wasn't helping anything, now all surfaces types
	use one R_DrawSurfaceChain function, which calls the appropriate
	passes

2004-03-13 15:50  havoc

	* gl_rsurf.c: don't draw lighting on sky and water

2004-03-13 15:30  havoc

	* client.h, gl_models.c, gl_rsurf.c, model_alias.c, model_brush.c,
	model_shared.h, r_shadow.c, r_shadow.h, todo: merged static and
	dynamic rtlight handling almost entirely (even uses
	DrawShadowVolume and DrawLight to generate cached meshes - however
	this currently lost the r_shadow_portallight optimizations) added a
	surfacelist to model_t containing surface indices for each submodel
	merged R_Shadow_DiffuseLighting and R_Shadow_SpecularLighting into
	R_Shadow_RenderLighting (which takes a lighting parameter
	containing LIGHTING_DIFFUSE and LIGHTING_SPECULAR flags) commented
	out cullradius/cullradius2 in rtlight structs because they weren't
	used

2004-03-13 15:26  havoc

	* gl_backend.c, gl_backend.h, gl_rsurf.c, r_sky.c: added
	texmatrix[] to rmeshstate_t and removed R_Mesh_TextureMatrix
	function reorganized water rendering code to make it a lot less
	confusing (especially the r_watershader code)

2004-03-13 15:14  havoc

	* gl_draw.c: fixed gl_paranoid warnings in R_DrawQueue

2004-03-13 15:12  havoc

	* gl_textures.c, menu.c: fixed gl_paranoid warnings caused by
	gl_texture_anisotropy being less than 1, it is now bound to 1-128
	range

2004-03-13 06:43  black

	* cmd.c: DP should read the config files correcly again now.

2004-03-13 03:50  havoc

	* todo: [no log message]

2004-03-12 23:21  havoc

	* model_shared.c, model_shared.h: added const to most parameters to
	Mod_ShadowMesh_AddMesh

2004-03-12 23:12  havoc

	* gl_rsurf.c: q3bsp rendering now uses visframe instead of
	markframe, also removed some cruft in
	R_Q3BSP_DrawShadowVolume/R_Q3BSP_DrawLight

2004-03-11 00:08  molivier

	* common.c, common.h, snd_oss.c: Changed the way DP detects and
	handles the CPU endianess. All the tests are done at compile time
	now. Tested on Win32 (MSVC6 and MinGW32), Linux and NetBSD; should
	also work on the other BSDs.

2004-03-10 16:43  havoc

	* cl_screen.c: removed special GAME_FNIGGIUM default for
	con_forcewhiledisconnected

2004-03-10 13:40  havoc

	* gl_backend.c, gl_draw.c, gl_models.c, gl_rsurf.c, r_explosion.c,
	r_lightning.c, r_shadow.c, r_sky.c, todo: now calls GL_LockArrays
	manually around each R_Mesh_Draw call instead of locking inside
	R_Mesh_Draw, so some things can render the same geometry repeatedly
	(shadow volumes and lighting) without unlocking)

2004-03-10 01:52  havoc

	* r_shadow.c: removed r_shadow_showtris (superseded by r_showtris)

2004-03-10 01:48  havoc

	* cl_particles.c, gl_backend.c, gl_backend.h, gl_draw.c,
	gl_models.c, gl_rmain.c, gl_rsurf.c, r_explosion.c, r_lightning.c,
	r_shadow.c, r_sky.c: merged CL_ColorPointer into R_Mesh_State

2004-03-10 00:35  havoc

	* cl_particles.c, gl_backend.c, gl_backend.h, gl_draw.c,
	gl_models.c, gl_rmain.c, gl_rsurf.c, r_explosion.c, r_lightning.c,
	r_shadow.c, r_sky.c: R_Mesh_State_Texture and GL_VertexPointer
	merge once again to become the reborn R_Mesh_State function

2004-03-09 23:43  havoc

	* cl_particles.c, gl_backend.c, gl_draw.c, gl_models.c, gl_rmain.c,
	gl_rsurf.c, r_explosion.c, r_lightning.c, r_shadow.c, r_sky.c:
	GL_Color no longer interacts with GL_ColorPointer (so be sure to
	set GL_ColorPointer if it have been left on something you don't
	want) GL_ColorPointer now resets glColor when array is turned off,
	because glColor gets trashed while color array is on (so sayeth the
	GL spec, and so proveth the NVIDIA driver)

2004-03-09 23:14  havoc

	* glquake.h, r_shadow.c, todo, vid_shared.c: now supports
	GL_EXT_stencil_two_side extension (found on NV30/R300 class cards),
	this halves the polycount thrown at the card for shadow volumes,
	which got me a 77% speed gain on my GFFX5200

2004-03-09 22:34  havoc

	* pr_cmds.c: sorted extension list again

2004-03-09 22:33  havoc

	* pr_cmds.c, todo: added DP_SV_ROTATINGBMODEL extension to list

2004-03-09 22:20  havoc

	* darkplaces.txt: added a few items to the client features list

2004-03-09 22:17  havoc

	* cl_demo.c, client.h, host.c, todo: added -benchmark commandline
	option

2004-03-09 21:51  havoc

	* menu.c, sbar.c, screen.h: added showtime/showtime_format and
	showdate/showdate_format cvars, and moved the fps display to bottom
	right corner (above the optional time/date displays)

2004-03-09 21:48  havoc

	* sys.h, sys_shared.c: added convenience function Sys_TimeString
	which calls strftime into a temporary buffer and returns the
	string, now Sys_Print uses this

2004-03-09 21:47  havoc

	* common.h: added an extern for cmdline cvar

2004-03-09 19:28  havoc

	* cd_bsd.c, cd_linux.c, cd_shared.c, cd_win.c, cl_demo.c,
	cl_input.c, cl_main.c, cl_parse.c, cl_particles.c, cl_screen.c,
	cl_video.c, cmd.c, cmd.h, collision.c, common.c, common.h,
	conproc.c, console.c, console.h, cvar.c, fs.c, fs.h, gl_backend.c,
	gl_draw.c, gl_rmain.c, gl_textures.c, host.c, host_cmd.c, image.c,
	jpeg.c, keys.c, lhnet.c, mathlib.c, menu.c, model_brush.c,
	model_shared.c, netconn.c, ogg.c, palette.c, portals.c, pr_cmds.c,
	pr_edict.c, pr_exec.c, progs.h, progsvm.h, protocol.c, prvm_cmds.c,
	prvm_edict.c, prvm_exec.c, r_lerpanim.c, r_modules.c, r_shadow.c,
	r_sky.c, screen.h, server.h, snd_alsa_0_5.c, snd_alsa_0_9.c,
	snd_bsd.c, snd_dma.c, snd_mem.c, snd_mix.c, snd_oss.c, snd_win.c,
	sv_main.c, sv_phys.c, sv_user.c, sys.h, sys_linux.c, sys_sdl.c,
	sys_shared.c, sys_win.c, vid_glx.c, vid_sdl.c, vid_shared.c,
	vid_wgl.c, wad.c, zone.c: added Print versions of Printf functions
	and made all calls that do not need formating use the Print
	versions; yes this is a cosmetic cleanup, prints are too rare to
	have any performance improvements.

2004-03-09 16:06  havoc

	* fs.c: clean up an unnecessary snprintf

2004-03-09 14:25  havoc

	* cl_screen.c, todo: added scr_conforcewhiledisconnected cvar so it
	is possible to disable the console forcing (and defaults off in
	GAME_FNIGGIUM)

2004-03-09 14:14  havoc

	* pr_edict.c, todo: "edict" command no longer crashes if given -1
	as edict number

2004-03-09 13:59  havoc

	* todo: [no log message]

2004-03-09 13:56  havoc

	* sv_phys.c: reorganized SV_FlyMove to merge the two paths (new
	simple/old complex approaches)

2004-03-09 12:35  havoc

	* collision.c: worked around curve collision problems by doing
	special sort-of-axial edge planes on triangle collisions
	(ultimately the collision routine needs to do edge/edge collisions
	somehow to make this unnecessary) now snaps triangle mesh vertices
	to 1/32 of a unit precision to keep the plane calculations a little
	more accurate (note: this is done at collision time), although this
	doesn't seem to be necessary collision nudge values are now
	configurable via cvars (collision_ cvars, warning: things tend to
	break if startnudge != endnudge, and enternudge should be the same
	as leavenudge)

2004-03-08 20:59  havoc

	* cl_parse.c, model_brush.c, model_shared.h, r_sky.c: now supports
	loading skybox specified by q3 sky shaders

2004-03-08 20:56  havoc

	* r_shadow.c: fix saving of rtlights files (everything past cubemap
	was getting lost)

2004-03-07 00:15  havoc

	* menu.c: fix two signed/unsigned comparison warnings

2004-03-06 17:06  havoc

	* todo: [no log message]

2004-03-05 18:09  havoc

	* todo: [no log message]

2004-03-05 17:54  havoc

	* console.c: con_notify is now measured in cl.time, not realtime,
	so cl_avidemo doesn't have terribly brief notify messages in it
	when rendering slowly

2004-03-05 05:12  molivier

	* cl_main.c: Don't use coronas for muzzleflashes

2004-03-04 21:01  havoc

	* view.c: no view tilt when dead in GAME_FNIGGIUM

2004-03-04 18:27  havoc

	* model_brush.c: fixed noclipping rendering nothing (there was no
	vis update)

2004-03-04 18:11  havoc

	* cmd.c: improve console text parsing a little (now handles \r line
	endings as well as \n, and strips whitespace before the line, just
	for completeness)

2004-03-04 11:12  havoc

	* world.c: fix monsters ignoring player underwater if a bmodel is
	in the area (inopen was being set by bmodels)

2004-03-04 05:17  molivier

	* menu.c: Fixed key bindings menu (we have a range of 1024 key
	numbers now)

2004-03-04 05:14  molivier

	* curves.c, gl_backend.c: Removed a few warnings in MSVC6

2004-03-03 23:06  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: separate collision
	curve geometry from rendering, this means lower detail collision
	curves for more performance

2004-03-03 22:20  havoc

	* curves.c, curves.h, model_brush.c, todo: implemented
	r_subdivisions_ cvars to control q3bsp patches, adaptive LOD based
	on flatness, etc

2004-03-03 18:11  havoc

	* r_shadow.c: fix r_editlights_edit not accepting some commands

2004-03-03 17:27  havoc

	* gl_backend.c: r_showtris is now a float cvar which controls
	intensity, rather than just a flag

2004-03-03 07:26  havoc

	* gl_backend.c, gl_backend.h, gl_draw.c, gl_rmain.c, gl_rsurf.c,
	r_shadow.c, r_sky.c, render.h: made r_showtris transparent (quite
	faint actually), color coded different types of geometry, and now
	shows all tris (even hud), cleaned up a few qgl calls (GL_Clear
	added, etc) to make it more reliable

2004-03-02 23:05  havoc

	* model_brush.c: fix Q3BSP submodels to have no GetPVS function (or
	assorted other functions which would fail)

2004-03-02 22:50  havoc

	* gl_rsurf.c, todo: fixed bmodel realtime lighting/shadowing render
	crashes (and bogus shadows from them)

2004-03-02 22:00  havoc

	* gl_backend.c, gl_backend.h, gl_rmain.c, render.h, todo: added
	r_showtris

2004-03-02 21:25  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, model_shared.h,
	r_shadow.c, todo: realtime dlight shadows are now nearly the speed
	of compiled lights

2004-03-02 12:29  havoc

	* gl_models.c, gl_rsurf.c, model_brush.c, model_brush.h,
	model_shared.h, r_shadow.c, r_shadow.h, todo: temporarily disabled
	compiled rtlights (they'll make a comeback after dynamic rtlight
	optimizations are finished) dynamic rtlight shadow volumes for
	bmodels are now generated from a single mesh for the entire model,
	in which only some ranges of triangles are marked, this finally
	cured the performance problems with dlight s

2004-03-01 21:34  havoc

	* r_shadow.c: fix rtlights cubemapname load/save

2004-03-01 18:27  havoc

	* model_shared.c: fix the inverted bumps on some surfaces (no
	longer uses CrossProduct to get the svector)

2004-03-01 16:26  havoc

	* r_shadow.c: forgot to init the effects variable in the light
	parser

2004-03-01 16:22  havoc

	* cl_main.c, protocol.h, r_shadow.c, sv_main.c, todo: dlights using
	light_lev now need the PFLAG_FULLDYNAMIC flag set to operate,
	otherwise they are ignored, this was necessary (lights that did not
	remove themselves were being treated as proper dlights), it is also
	now more tenebrae compatible (EF_FULLDYNAMIC translated to
	PFLAG_FULLDYNAMIC in GAME_TENEBRAE mode)

2004-03-01 10:56  havoc

	* gl_backend.c, gl_rmain.c, r_shadow.c, render.h: more cleanups of
	R_RenderScene (now r_view_ variables exist which are copied from
	the r_refdef fields each frame, these variables can easily be
	reconfigured for texture renders for mirrors or whatever)

2004-02-29 21:03  havoc

	* view.c: remove unused variable i in V_ParseDamage

2004-02-29 21:01  havoc

	* cl_parse.c: remove unused variable i in CL_ParseStartSoundPacket

2004-02-29 20:59  havoc

	* cl_screen.c, todo: screenshots are now saved to screenshots/ and
	videos are now saved to video/, and both now use the name template
	dp%06d.tga or .jpg, GAME_FNIGGIUM uses fniggium%06d.tga or .jpg as
	per Sajt's request

2004-02-29 20:29  havoc

	* gl_textures.c, todo: fixed cubemap upload scaling crash (was
	using power of 2 size for parsing input, should have used input
	size)

2004-02-29 20:20  havoc

	* gl_rmain.c, todo: fixed viewblends which were broken the past few
	days

2004-02-29 19:49  havoc

	* cl_input.c, cl_parse.c, cl_particles.c, common.c, common.h,
	protocol.c, protocol.h, sv_main.c, todo, view.c: upgraded network
	protocol to DP5, now sends precise entity angles (except for
	EF_LOWPRECISION entities), this increases normal entity data by 3
	bytes (18 bytes for origin+angles, was 15 bytes in DP4, still 9
	bytes for EF_LOWPRECISION origin+angles), upgraded a few other
	parts of protocol to precise angles and/or floats as well (client
	data updates now use float for punchvector and velocity )

2004-02-29 17:58  havoc

	* cl_main.c, cl_parse.c, client.h, gl_models.c, gl_rmain.c,
	gl_rsurf.c, model_shared.h, protocol.h, r_light.c, r_light.h,
	r_shadow.c, r_shadow.h, render.h, todo: cleaned up rtlight
	handling, merging most code between world rtlights and dlights
	(which now could conceivably be compiled if static) moved
	R_ShadowVolumeLighting to r_shadow.c added RENDER_LIGHT flag to
	entity_render_t to make rtlighting optional per entity

2004-02-29 17:54  havoc

	* progs.h: forgot to commit this as part of the SV_TouchAreaGrid
	fix

2004-02-29 17:46  havoc

	* world.c: fixed SV_TouchAreaGrid to not crash if SV_IncreaseEdicts
	is called during a touch function, by making a list of edicts to
	touch and then running through the list afterward

2004-02-29 17:29  havoc

	* model_brush.c: safety checked lightmap access in
	Mod_Q1BSP_RecursiveLightPoint as one map Sajt uses was crashing, it
	now rounds off coords to be inside the lightmap

2004-02-28 07:41  havoc

	* gl_rmain.c, r_shadow.c: default a few cvars accordingly for
	GAME_TENEBRAE mode

2004-02-28 07:18  havoc

	* r_shadow.c: support angles on light entities

2004-02-28 07:15  havoc

	* r_shadow.c: support skin and pflags in light entity loader

2004-02-26 11:28  havoc

	* todo, world.c: PF_traceline/PF_tracebox can now use world as the
	edict

2004-02-26 11:25  havoc

	* r_shadow.c, todo: made the static light built message a dprint

2004-02-25 18:06  havoc

	* host.c: TEU uses teu.rc, not quake.rc

2004-02-25 10:42  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h, r_light.c, r_shadow.c,
	todo: renamed brush model pvs stuff to be in brush struct instead
	of brushq1 and brushq3 structs

2004-02-25 10:41  havoc

	* sv_phys.c: MOVETYPE_BOUNCE change: an explosion above gibs will
	now cause them to bounce into the air, rather than skidding to a
	halt immediately like they were doing

2004-02-25 04:42  havoc

	* pr_cmds.c: enable MOVE_ values on PF_tracebox (already enabled on
	PF_traceline)

2004-02-24 09:10  havoc

	* gl_models.c, todo: fixed black fullbrights on models in realtime
	mode

2004-02-22 10:56  havoc

	* gl_rmain.c, gl_rsurf.c, model_brush.c, model_brush.h,
	model_shared.h, portals.c, r_light.c, r_shadow.c, r_shadow.h, todo:
	fixed GL_Scissor call in rtlight code (apparently I need to feed it
	a top to bottom rectangle... ?	must be something weird in the
	transform math as GL uses bottom to top) made q1bsp and q3bsp a
	little more alike (regarding pvs clusters), now q3bsp has all the
	same pvs cluster fields as q3bsp added fake lightgrid and pvs data
	to q3bsp loading when map is unlit or unvised respectively, this
	should improve internal consistency

2004-02-22 09:09  havoc

	* sv_user.c: allow "rate" command to be executed on server when
	sent from client

2004-02-21 22:48  havoc

	* r_light.c, todo: fixed a possible crash in R_DrawCoronas (it was
	using rd->origin where it should have used wl->origin)

2004-02-21 13:05  havoc

	* cl_main.c, cl_screen.c, gl_backend.c, gl_backend.h, gl_draw.c,
	gl_rmain.c, host.c, r_light.c, r_light.h, r_shadow.c, render.h,
	screen.h, todo: cleaned up R_RenderView setup code a bit, and
	shuffled SCR_CalcRefdef stuff to SCR_UpdateScreen scissor is now on
	during all of R_RenderView (including rtlight portions), and
	GL_Scissor is used to set it instead of direct qglScissor calls,
	also GL_ScissorTest is used r_farclip is now calculated without
	need for... just about anything, this allowed shuffling the setup
	code around a bit various cleanups to allow multiple view renders
	per frame added scr_zoomwindow cvars to do a (silly) zoomed view
	picture-in-picture overlay, it works but turned out useless in
	playtesting unless you want to stare at a shambler's chest... ugh
	R_AnimateLight and R_BuildLightList merged to become R_UpdateLights
	some setup code from R_RenderView became a new function
	R_UpdateWorld GL_SetupView_ViewPort calls replaced by qglViewport
	calls, as it was a mostly useless wrapper

2004-02-21 06:19  havoc

	* cl_demo.c, client.h, todo: timedemo now also prints min/avg/max
	fps

2004-02-21 04:51  havoc

	* menu.c: added rate limiting to player setup menu

2004-02-21 03:58  havoc

	* cl_demo.c, cl_parse.c, client.h, host_cmd.c, netconn.c,
	netconn.h, quakedef.h, server.h, sv_main.c: rate limited networking
	("rate" command in client console, limited by sv_maxrate cvar on
	server), also cleaned up some of the MAX_DATAGRAM and similar
	defines (now only uses NET_MAXMESSAGE)

2004-02-20 23:43  havoc

	* lhnet.c, todo: cl_fakelocalping cvars now produce the specified
	ping time (rather than twice it) by lagging each way only 50% of
	the requested ping

2004-02-20 23:39  havoc

	* model_sprite.c: remove unused stripextension code

2004-02-20 23:37  havoc

	* cgame_api.h, cgamevm.c, cl_main.c, cl_parse.c, client.h,
	common.c, common.h, gl_models.c, gl_rmain.c, gl_rsurf.c, menu.c,
	model_alias.c, model_brush.c, model_shared.h, pr_cmds.c,
	pr_edict.c, progs.h, protocol.c, protocol.h, r_light.c, r_light.h,
	r_shadow.c, r_shadow.h, server.h, sv_main.c, sv_phys.c, todo: moved
	light matrix generation out of the render code and into the light
	creation code (rtlight and dlight setup) to save time and simplify
	things rtlights and dlights now have an orientation matrix (this
	allows cubemaps to be rotated) rtlights can now have corona flares,
	and it is adjustable per light (also on dlights) r_coronas cvar now
	controls corona intensity, and menu now has r_coronas slider
	instead of checkbox dlights now have color[]/radius settings
	instead of just colored intensity, so the radius can be
	independently controlled again (this mainly improves realtime
	dlight behaviors) dlights can now have cubemaps, light styles,
	optional shadows (rather than always on), and better color/radius
	settings (and all this is tenebrae compatible) using the light_lev,
	color, style, skin (cubemap number, only available if modelindex is
	0), and pflags (1 is no shadow, 2 is draw corona which is ignored
	by darkplaces because it always draws a corona) fields in the
	quakec entities now supports tenebrae dlight fields (light_lev,
	color, style, pflags), this means dlights can now have cubemaps
	(skin, only used if modelindex is 0), light style (style), color
	(color) and radius (light_lev) with more precision than glow_
	fields, and pflags (flag 1 is no shadow, flag 2 is corona which is
	ignored because dlights always have a corona in darkplaces), also
	loads tenebrae mods added TENEBRAE_GFX_DLIGHTS extension

2004-02-20 09:04  havoc

	* model_sprite.c: fixed loading of replacement frame images (it was
	stripping the .spr extension, weird), and reduced spr internal
	image handling code a bit by using a second alpha palette

2004-02-20 08:31  havoc

	* image.c, image.h: upgraded Image_CopyMux to be able to output
	constant byte values as well as indexed components

2004-02-20 08:15  havoc

	* gl_backend.c: possible improvement to infinite perspective matrix
	generation

2004-02-19 18:50  havoc

	* menu.c: remove the exec default.cfg call from the reset to
	defaults, I have no idea why it was there

2004-02-18 06:46  havoc

	* r_shadow.c: improved error message for missing cubemap images, no
	longer complains during cubemap loading, as long as one or more
	sides are found

2004-02-18 06:37  havoc

	* r_shadow.c: now loads each cubemap only once, no matter how many
	lights use it

2004-02-18 06:06  havoc

	* gl_models.c, gl_rmain.c, gl_rsurf.c, image.c, image.h,
	model_alias.c, model_brush.c, model_shared.h, r_shadow.c, todo:
	cubemap filters for rtlights are now supported

2004-02-18 02:32  havoc

	* gl_models.c, gl_rsurf.c, glquake.h, r_light.c, r_shadow.c,
	r_shadow.h, todo: added gl_lightmaps cvar (for looking at the raw
	lightmaps in the map without textures) added
	r_shadow_realtime_world_lightmaps cvar (turn on/off lightmaps in
	r_shadow_realtime_world mode, also can be a fraction to control
	brightness)

2004-02-18 02:29  havoc

	* keys.c: fix some warnings

2004-02-16 18:13  havoc

	* gl_rmain.c: reduced size of viewblend triangle from 64000 units
	to 64 units, in hopes of curing precision problems on some graphics
	cards (NVIDIA and ATI both) causing a missing line on the blend

2004-02-12 08:50  black

	* prvm_cmds.c: Forgot to add a couple of return statements to a
	switch block.

2004-02-11 10:56  black

	* menu.h: Fixed: Removed not needed variable.

2004-02-11 09:43  black

	* cvar.h, menu.h, prvm_cmds.c: Added some menu builtins and changed
	VM_registercvar (it takes one parameter more now).

2004-02-10 23:25  molivier

	* snd_dma.c, snd_mem.c, sound.h: Added automatic unloading of
	unused sounds. The "silentlymissing" boolean is now part of a flags
	bit field in the "sfx_t" structure.

2004-02-10 23:22  molivier

	* ui.c: Commented out some unused static functions in "ui.c" to get
	rid of GCC warnings

2004-02-10 23:20  molivier

	* mingw_note.txt: Updated the MinGW note according to the new
	makefiles

2004-02-10 23:20  molivier

	* snd_null.c: I forgot to add the new sound functions to
	"snd_null.c"

2004-02-10 13:09  havoc

	* keys.c, keys.h: change joystick key numbers to start at 768
	instead of 1024 (this gives 512 keys, 256 mouse, 256 joystick)
	enlarge various key arrays to hold 1024 keys

2004-02-10 12:54  havoc

	* darkplaces.txt: corrections and additions

2004-02-10 12:54  havoc

	* gl_rmain.c: recalculate farclip immediately before rendering,
	instead of from the previous frame, cures some quick turn glitches

2004-02-10 08:03  black

	* keys.h: The mouse buttons now use the range 512 - 1023 and the
	joystick/aux stuff starts at 1024. I **hope** this won't be changed
	as I've just fixed the msys.qc.

2004-02-09 23:14  molivier

	* cl_parse.c, host.c, snd_dma.c, snd_mem.c, snd_null.c, sound.h:
	Added a couple of function skeletons for the automatic unloading of
	unused sounds (coming very soon). Removed the empty functions
	S_BeginPrecaching, S_EndPrecaching and S_ClearPrecache. I broke the
	"silentlymissing" sound flag recently, it could be set even if the
	sound was successfully loaded (this flag doesn't seem to be used in
	any active part of the code, but until I sort this out it's better
	to have it right); anyhow it's fixed now. Switched
	"silentlymissing"'s type to "qboolean" in the process. Fixed an
	implicit conversion warning when calling Sys_Sleep in MSVC6.

2004-02-09 01:26  molivier

	* fs.c: The test used in the FS_Read function to detect the end of
	a compressed file was incorrect, causing some big files to be
	truncated when unzipped. Many thanks to Fuh for poiting out this
	mistake to me

2004-02-08 23:08  havoc

	* cl_particles.c: fix a particle trail bug with freshly spawned
	entities that leave a trail, I don't really understand how this bug
	happens (or why it doesn't happen all the time), but it is fixed

2004-02-08 21:50  havoc

	* model_brush.c: changed shader parsing to use strcasecmp just
	incase some shader has a weird case on the surfaceparms made some
	of the q3bsp warnings use dprintf because they're probably annoying
	users switched to simpler tracebrush bsp recursion code (the old
	code crashed for me occasionally, but I've been unable to reproduce
	that problem again, so I guess it's fixed too, or something)

2004-02-08 21:21  havoc

	* menu.c: fix video modes menu to not let you select the extra 0x0
	mode

2004-02-08 11:02  havoc

	* netconn.c: added Willis's dpmaster to list

2004-02-06 13:36  havoc

	* darkplaces.txt: trying to make this binary

2004-02-06 13:30  havoc

	* darkplaces.txt: DOS line endings, and now marked binary (I hope)

2004-02-06 10:48  havoc

	* darkplaces.txt, todo: updated readme

2004-02-06 10:45  havoc

	* model_alias.c: increased numverts/numtris/skinwidth/skinheight
	limits to 65536, and made r_fullbrights affect model skins

2004-02-05 21:24  havoc

	* gl_rmain.c, r_shadow.c, r_shadow.h, todo: renamed
	r_shadow_shadows to r_shadow_dlightshadows and added
	r_shadow_worldshadows cvar

2004-02-05 21:22  havoc

	* model_brush.c, model_brush.h: fixed Mod_Q3BSP_BoxTouchingPVS to
	handle unvised maps properly

2004-02-05 21:20  havoc

	* pr_cmds.c: rewrote PF_tokenize to not use memory allocations

2004-02-05 21:18  havoc

	* gl_draw.c: increased size of ditherpattern texture to try to work
	around the odd 'not black' dither bug (succeeded? yes, but no
	closer to figuring out why it was misbehaving in the first place)

2004-02-05 21:17  havoc

	* gl_textures.c: gl_texturemode should not affect TEXF_FORCENEAREST
	and TEXF_FORCELINEAR textures

2004-02-05 20:55  warp

	* .cvsignore, client.h, keys.c, keys.h, menu.c: This is your key
	system, this is your key system after being mostly replaced with
	Twilight's and then modified.

2004-02-03 11:22  havoc

	* model_brush.c: optimized BoxTouchingPVS code to no longer be
	recursive

2004-02-02 20:52  havoc

	* image.c: support tga's with incomplete colormaps (less than 256
	colors), I HOPE this is correct

2004-02-02 18:16  havoc

	* keys.c: added some names for certain characters: ` backquote, ~
	tilde, ' apostrophe, " quote (note that ` and ~ are not bindable
	anyway, hardwired in the engine)

2004-02-02 07:02  coderjoe

	* vid_wgl.c: don't need to send WM_SETICON... just set the icon in
	the window class and windows will take care of it.

2004-02-02 06:55  havoc

	* sys_win.c, vid_wgl.c: fix misplaced extern S_UnblockSound

2004-02-02 06:47  black

	* snd_dma.c: DS_OK used instead of DD_OK

2004-02-02 06:44  coderjoe

	* darkplaces.dsp, darkplaces.rc, resource.h, vid_wgl.c: get msvc
	using the new icon

2004-02-02 06:41  havoc

	* vid_wgl.c: cast the char array to unsigned short in the ToAscii
	call, because windows is insane enough to make it take an unsigned
	short *, even though it writes byte chars to it

2004-02-02 06:37  havoc

	* snd_dma.c, snd_win.c, sys_win.c, todo, vid_wgl.c, winquake.h:
	winquake.h is gone, absorbed into the respective files which used
	it, also cleaned out all unneeded winquake.h cruft

2004-02-02 06:04  havoc

	* darkplaces.ico, darkplaces16x16.png, darkplaces24x24.png,
	darkplaces32x32.png, darkplaces48x48.png, darkplaces64x64.png,
	darkplaces72x72.png: thanks to de-we for these great icons (I have
	not figured out how to use them yet, though)

2004-02-02 05:22  havoc

	* gl_rmain.c, todo: fixing up rtlight handling a bit (now always
	runs the dynlight stage which has been renamed rtlights stage in
	the r_speeds report)

2004-02-02 05:09  havoc

	* makefile, makefile.bsd, makefile.inc: thanks to Mathieu Olivier
	for these new makefiles

2004-02-02 04:45  havoc

	* r_light.c: fix a logic bug in EntLight handling (should have been
	checking r_shadow_realtime_world not dlight or flashblend)

2004-02-01 20:32  havoc

	* sv_phys.c: fixed sv_freezenonclients (now freezes time as well)

2004-02-01 20:06  havoc

	* collision.c: forgot to init enterfrac2 in the TraceLineBrushFloat
	code

2004-02-01 19:56  havoc

	* cl_collision.c, collision.c, collision.h, model_alias.c,
	model_brush.c, model_shared.h, todo, world.c: added
	trace.realfraction field which is now used for comparisons instead
	of fraction, this allows proper detection of the nearest blocker
	without the glitches previously seen sometimes on brush-brush
	boundaries (where the expanded side boundary was closer than the
	floor it was part of) optimized q3bsp point traces (point, not
	line) optimized q3bsp line traces (finally got that code working,
	and added optimized line-triangle tracing code for curves which is
	52% faster) optimized q3bsp brush traces (or tried to...  seems to
	be slower unfortunately, more work to do on this in the future)
	BrushForBox now sets the mins/maxs of the brush for culling reduced
	q3mnode_t structure by 4 bytes (checks plane pointer now instead of
	a dedicated isnode variable) cleaned up some collision code a bit
	added some TargetQuake workarounds (spew warnings instead of
	crashing to console) for weird physics settings (like MOVETYPE_PUSH
	and SOLID_BSP with no model)

2004-02-01 19:36  havoc

	* sv_phys.c: added sv_freezenonclients cvar, fixed the bug that
	caused falling damage when standing on a sloped floor pushing you
	into a wall, and cleaned up a few other things a bit

2004-02-01 18:43  havoc

	* gl_rmain.c, gl_rsurf.c, r_shadow.c: now always uses
	glPolygonOffset, and collision brush rendering has been fixed with
	better glPolygonOffset settings (no more flicker), also uses
	glPolygonOffset on shadow volumes now (but this probably has any
	effect in any cases I know of)

2004-02-01 18:28  havoc

	* mathlib.c, mathlib.h: added several BoxPlane comparison functions
	to find information on corners relative to the plane (rather than
	merely checking which side it is on)

2004-02-01 18:21  havoc

	* pr_cmds.c, pr_exec.c, progs.h, progsvm.h, prvm_exec.c: changed a
	lot of progs errors to warnings, and it prints QC status for
	warnings

2004-02-01 14:40  havoc

	* r_lightning.c: reduced default r_lightningbeams_repeatdistance
	from 1024 to 128

2004-02-01 14:30  havoc

	* cl_parse.c, host.c, sys.h, sys_linux.c, sys_sdl.c, sys_win.c:
	changed Sys_Sleep from (void) to (int milliseconds), now wastes a
	lot less cpu time while waiting for the next frame

2004-02-01 04:20  black

	* sbar.c: Only one player list is displayed now. Moved it a little
	bit down so if you set con_notify 2, it wont bother you any more.

2004-01-31 15:04  havoc

	* vid_wgl.c: handle funky ToAscii values (shift/ctrl/alt sometimes
	produce ascii values for no reason), and also ignore any 0 or 2
	character values

2004-01-27 01:08  molivier

	* common.c, common.h: Slight improvement in the way we include the
	strl{cat,cpy} declarations and implementations into the code.

2004-01-27 00:12  molivier

	* vid_wgl.c: Don't allow a higher depth than the desktop when using
	a windowed mode on Win32. It seems X11 already forbids this.

2004-01-26 22:13  havoc

	* host.c: use sys_ticrate timing on dedicated servers

2004-01-26 00:57  havoc

	* vid_shared.c: improved handling of video mode failures

2004-01-23 17:00  havoc

	* host_cmd.c, netconn.c: changed local server ports to 1 (server)
	and 2 (client), regardless of cl_port and port cvars merged
	cl_netaddress and sv_netaddress into one net_address cvar

2004-01-23 16:42  havoc

	* lhnet.c: fix a severe bug with the checking of WSAStartup
	(basically any socket after the first would fail for no reason)

2004-01-23 02:03  havoc

	* lhnet.c, lhnet.h, netconn.c: disabled opening of ipv6 sockets
	since that code still isn't finished (this MIGHT fix win32
	problems, not sure yet), and now prints error messages when
	socket/bind/ioctl calls fail

2004-01-21 01:22  havoc

	* sv_phys.c: wrap angles on rotating pushers because large angle
	values are bad for precision

2004-01-20 23:29  molivier

	* common.c, menu.c: Transfusion update: renamed the mod directory
	to "basetf" instead of "transfusion", and added 6 new maps.

2004-01-20 13:03  havoc

	* vid_shared.c: -safe now implies -window and disables all GL
	extensions that offer a disable option

2004-01-20 05:18  molivier

	* snd_mem.c: Added a check in the WAV loading code to make sure the
	file is a WAV file before proceeding. Thanks to Urre for pointing
	out this bug.

2004-01-19 14:30  havoc

	* model_brush.c: ignore visofs errors on leaf 0 (solid), thanks to
	Vic for pointing out the problem in qbsp itself

2004-01-19 13:34  havoc

	* fs.c: changed comment above FS_CreatePath

2004-01-16 20:07  havoc

	* todo: [no log message]

2004-01-13 14:14  havoc

	* r_sprites.c: fixed a crash with r_lerpsprites 0 mode

2004-01-12 10:48  black

	* prvm_cmds.c: Fixed findkeysforcommand hopefully.

2004-01-11 23:38  molivier

	* makefile.bsd, snd_bsd.c, snd_dma.c: Added sound support to the
	NetBSD port. Most of the code comes from the original "snd_sun.c"
	file, by id Software. Some TODO remains, including the support for
	the "-snd*" options. Hopefully, the BSD specific code in DP works
	for the 3 majors BSD flavors, though I cannot test it on FreeBSD
	and OpenBSD anyway (feedback and test welcome if you have a BSD box
	at your disposal).

2004-01-11 23:33  molivier

	* snd_dma.c, snd_win.c: Removed a few warnings when compiling with
	MinGW

2004-01-11 19:54  havoc

	* model_shared.c: don't try to upload distorttextures if the
	texture shader extension is missing

2004-01-11 09:41  black

	* prvm_cmds.c: Added the findkeysforcommand builtin to the menu qc.
	It returns an altstring containing the keys which trigger the
	searched command.

2004-01-11 09:35  black

	* ui.c, ui.h: Hopefully finished the core of the new ui.

2004-01-07 04:09  havoc

	* common.c: rewrote COM_ParseToken and COM_ParseTokenConsole to
	make them buffer size safe (thanks to Vic for pointing out this
	problem), not that a rewrite was strictly necessary but it probably
	fixed unknown bugs

2004-01-07 04:07  havoc

	* cl_collision.c: fix a bad bug in developer printing of out of
	bounds fraction (crashed Con_Printf by giving it bad parameters)

2004-01-01 08:50  knghtbrd

	* makefile, sys_sdl.c, vid_sdl.c: INCOMPLETE SDL video support
	(don't use it!)  No input, no multiple video modes, no proper
	shutdown.  May not even compile anywher but my mac as of yet.

2004-01-01 08:45  knghtbrd

	* vid_glx.c, vid_shared.c, vid_wgl.c: Undo moving cl_available. 
	This really doesn't belong in system-specific video code, but it's
	the only place for that kind of thing unless someone wants to make
	the dedicated DarkPlaces binary a lot less bloated.  Not on my
	priority list right now.

2004-01-01 04:25  havoc

	* gl_rsurf.c: added c_nodes, c_leafs, and c_faces increments in
	q3bsp rendering to make r_speeds more useful

2004-01-01 02:25  havoc

	* fs.c: sorry Mathieu, can't use va() in filesystem code, not safe.
	(this was causing the crosshairs to not work due to heavy reuse of
	va() buffers)

2003-12-31 21:22  havoc

	* vid_glx.c: fix a missing ; from knghtbrd's commit

2003-12-31 20:39  knghtbrd

	* vid.h, vid_shared.c: Moved an extern to the proper header.

2003-12-31 20:00  knghtbrd

	* vid_glx.c, vid_shared.c, vid_wgl.c: Moved cl_available definition
	to vid_shared.c

2003-12-31 18:35  havoc

	* client.h, cmd.c, cvar.c, host.c, host_cmd.c, sv_main.c, todo: now
	runs scripts at startup differently - runs scripts twice, once only
	executing cvar and exec, then starts video, then runs scripts again

2003-12-31 18:33  havoc

	* snd_dma.c: fixed the complaints about missing sounds (no longer
	complains after the initial precache failure)

2003-12-31 10:03  knghtbrd

	* common.c, vid_glx.c: More MacOS X stuff.  The correct test for
	MacOS X in preprocessor seems to be defined(__APPLE__) &&
	defined(__MACH__).  MacOS X has strl functions, so don't bother
	compiling them.  Also, the correct name and location of libGL for
	X11 on a Mac is /usr/X11R6/lib/libGL.1.dylib.  Compiles with one
	warning caused by use of dlfcn.h (an emulation of the dynamic ELF
	object loader which complains that you really should be using the
	Mach-O dylib API instead.)
	
	Compiled with gcc 3.1 (use gcc_select) on MacOS X 10.3 with X11 and
	the Xcode Tools installed.  Makefile changes were: null sound/cd,
	removal of -lxf86dga from the GLX build, and replacing -ggdb in
	both places with plain old -g (someone at Apple needs a LARTing for
	this...)  SHOULD work with 10.2 provided that you have developer
	tools, X11 with devel stuff, and the dlfcn emulation package from
	fink.  I can't promise meaningful support for anything but Panther,
	sorry.

2003-12-31 00:32  havoc

	* cl_main.c: make sure client ports are opened before trying to
	connect to anything

2003-12-30 23:37  havoc

	* vid_glx.c: don't even try to support XF86DGA stuff on Mac

2003-12-30 23:18  havoc

	* common.h: fix a thinko in big endian support (forgot to use
	defined() in a #elif)

2003-12-30 05:00  molivier

	* fs.c: Factorized the file searching algorithm in the FS code.
	Sorted packaged files list at load time to allow the use of a
	binary search. Overall, I think you can expect a file search time
	divided by a factor between 1.5 to 3 depending on your mod and
	packages layout. Time lost in the file search code on my P233MMX:
	vanilla Quake (4121 searches while loading the 1st demo): 2.7 sec
	-> 1.6 sec, Transfusion mod (9752 searches while loading BB1): 18.0
	sec -> 7.6 sec

2003-12-29 15:47  havoc

	* netconn.c: updated sv_masterextra1 to point to the newer master
	server address

2003-12-28 21:43  havoc

	* sbar.c: changed nexuiz hud to display a different (more minimal)
	sbar pic when viewsize is 110

2003-12-28 17:57  havoc

	* common.c, common.h, sbar.c: added GAME_SOM (and its hud), and
	shuffled some hud code around to make things a little cleaner

2003-12-27 22:21  havoc

	* sv_phys.c: fixed bug with falling (not on ground) MOVETYPE_STEP
	entities not touching triggers

2003-12-27 21:14  havoc

	* sv_phys.c: made TryUnstick failure a DPrintf (like TryUnstick
	success is)

2003-12-27 18:14  havoc

	* makefile: added ogg.o to WGL exe build

2003-12-27 18:08  havoc

	* world.c: fix a thinko on clip.trace.ent = sv.edicts (it should
	only be set if startsolid or fraction < 1)

2003-12-27 17:05  havoc

	* sv_move.c, sv_phys.c, todo, world.c: fixed fiends jumping through
	player bug, huge thanks to Tomaz for days of help tracking down
	this longstanding bug! (it supported rotated collisions with bbox
	entities - not good!) refined the COLLISIONPARANOID checks (now
	centralized in SV_Move)

2003-12-27 16:58  havoc

	* r_shadow.c: improved support for q3map2 lights (added fade and
	scale keys supported by rtcw and sof2 respectively)

2003-12-27 13:15  molivier

	* darkplaces.dsp, makefile, ogg.c, ogg.h, snd_dma.c, snd_mem.c:
	Simple Ogg Vorbis support (no streaming: the file is fully
	decompressed in memory, you just save disk space). DP will try to
	load the VorbisFile library at startup and will enable Ogg Vorbis
	support if it succeeds, so you need the Ogg Vorbis official DLLs.
	Win32 binaries works, but the Linux binaries are still untested for
	the moment - they compile successfully though.

2003-12-26 09:28  havoc

	* model_brush.c: made an annoying cbox message that I had forgotten
	to disable, into a COLLISIONPARANOID >= 3 line

2003-12-24 13:24  havoc

	* sv_move.c: fix a bug with using the wrong trace end variable in
	the COLLISIONPARANOID print

2003-12-24 13:22  havoc

	* ui.c: patched up some compiler warnings in incomplete code

2003-12-24 13:07  havoc

	* collision.c, collision.h, model_brush.c, sv_move.c, sv_phys.c,
	todo, world.c: added a bunch more COLLISIONPARANOID code trying to
	track down a physics bug with fiends jumping through players, this
	defaults off (see end of collision.h)

2003-12-24 13:05  havoc

	* sv_main.c: added "sv_saveentfile" command to allow easy dumping
	of .ent files from maps so they can then be edited in a text editor

2003-12-24 10:16  havoc

	* r_sky.c: fixed cloud layers in quake sky loading

2003-12-23 04:12  black

	* cl_screen.c, gl_rmain.c, host.c, keys.c, todo, ui.c, ui.h,
	vid_glx.c, vid_wgl.c, zone.c, zone.h: Fast commit before Im off for
	10 days. Please correct/undo my commit if it breaks something, I
	havent had time to test everything perfectly but Im hoping that
	everything works. Merry Christmas everybody !

2003-12-20 10:32  black

	* sbar.c, sbar.h, todo: Added the cvar sbar_alpha.

2003-12-20 10:21  black

	* progs.h, progsvm.h, todo: PR_SetString and PRVM_SetString now
	point to pr_strings - resp. prog->strings if a NULL string is
	passed.

2003-12-19 09:54  black

	* pr_edict.c, prvm_edict.c, todo: Added the console commands
	edictset and prvm_edictset.

2003-12-19 08:46  black

	* console.c, todo: Fixed the crash that occured when the
	commandline got "too long".

2003-12-18 00:59  molivier

	* fs.c: Removed a potential buffer overflow and factorized some
	code

2003-12-17 05:16  black

	* host.c: minor, minor change to Host_Init - the loading plaque is
	now displayed before the menu is initialized

2003-12-17 01:50  havoc

	* sv_phys.c: fixed a bug with high framerate (or low speed)
	rotating bmodels failing to push when blocked

2003-12-16 23:58  molivier

	* fs.c: Fixed AK version of the FS code, it should now behave as
	expected, without much duplicated code. Factorized "dir" and "ls"
	console commands code.

2003-12-16 07:59  havoc

	* fs.c: fix a filesystem directory listing bug in FS_Search

2003-12-16 07:26  havoc

	* common.h, filematch.c, fs.c: rewrote FS_Search, hopefully it will
	work better now, and it now matches directories inside paks (in
	other words: listing sound/* will tell you about sound/plats and
	sound/whatever.wav, this is mainly to be consistent with filesystem
	directories), it is also no longer two-pass (although simple the
	two-pass approach was dangerous if the two listings came out
	different), and it now sorts the listing rewrote much of
	matchpattern, now handles path separators specially, and uses a
	much better approach to handling the * wildcard (no longer looks
	for the following character, simply tries multiple matchpattern
	calls until it hits a path separator or gets a match)

2003-12-16 04:43  black

	* menu.c, prvm_cmds.c: Added the togglemenu command for both menus
	and the chr builtin command (menu qc)

2003-12-16 03:08  havoc

	* pr_cmds.c: added cvar_string extension at the request of Paul
	Timofeyev

2003-12-14 23:48  molivier

	* cd_bsd.c, cd_linux.c, makefile.bsd: Audio CD support for NetBSD;
	it also compiles on OpenBSD, but I can't test it for now. Plus some
	diff noise reduction and a minor bug fix in cd_linux.c (the case
	when the user changes track without using the "cd" command should
	now be handled correctly)

2003-12-12 07:01  molivier

	* cd_linux.c, cd_win.c: Removed redundant definitions in cd_linux.c

2003-12-11 16:28  havoc

	* gl_rsurf.c, todo: made sure EF_FULLBRIGHT works on everything
	(bmodels were broken)

2003-12-11 06:17  molivier

	* dp-bc.mak: Borland C++ makefile is *so* outdated that I can't
	even imagine someone is still using it

2003-12-11 05:57  molivier

	* cd_shared.c: Oops... I forgot to add this file to the previous
	commit

2003-12-11 05:52  molivier

	* cd_linux.c, cd_win.c, cdaudio.h, darkplaces.dsp, makefile:
	Factorized audio CD code

2003-12-10 00:05  molivier

	* makefile.bsd, sys_shared.c: OpenBSD support wasn't very far
	away...

2003-12-09 05:17  havoc

	* model_brush.c, sv_phys.c, todo, world.c: fixed the wall slide
	stuttering bug (the one that has been annoying me for months), it
	turned out to be a float precision issue with cliphull selection,
	and this also fixed the movetogoal bug (monsters not noticing they
	hit a wall) and also the scrags-flying-through-wall/ceilings bug

2003-12-09 00:05  molivier

	* fs.c, lhnet.c, makefile.bsd, sys_shared.c: Early support for
	NetBSD (the dedicated binary works and the GLX binary compiles)

2003-12-08 23:54  molivier

	* cl_screen.c, menu.c: Fixed scr_screenshot_jpeg_quality slider in
	options menu

2003-12-08 00:03  havoc

	* snd_dma.c, todo: todo item done: sounds spawn even if out of
	hearing range (because the player might teleport to them)

2003-12-07 23:58  havoc

	* cd_linux.c, cd_null.c, prvm_cmds.c, snd_dma.c, snd_null.c: fixed
	gcc and linux related compilation problems from Black's recent
	commit

2003-12-07 23:11  havoc

	* cl_main.c: fix the weapon alpha with invisibility in transfusion

2003-12-07 21:05  havoc

	* todo: [no log message]

2003-12-07 16:22  havoc

	* cl_particles.c: added a comment above particle() function to
	describe its parameters

2003-12-07 10:55  black

	* cd_linux.c, cd_win.c, fs.c, gl_backend.c, menu.c, pr_cmds.c,
	prvm_cmds.c, snd_dma.c, sound.h: Added qc fs search functions, so
	the qcs can easily verify directories contents, etc. -> useful for
	dynamic content loading.  Changed some 'bool's into read-only cvars
	to make them accessible for the menu qc.

2003-12-07 05:01  havoc

	* vid_shared.c: added an easteregg (v_psycho), thanks to Zinx
	Verituse and Ben Winslow for the original code for this

2003-12-07 03:40  havoc

	* cl_main.c, todo: todo item done: now ignores modelflags on view
	entities and tag attached entities, so there aren't spinning view
	models and such anymore in Zerstorer and Malice

2003-12-07 03:13  havoc

	* cl_input.c, todo: todo item done: turning keys are no longer
	affected by slowmo

2003-12-07 03:08  havoc

	* console.c, console.h, todo: todo item done: fixed con_notify cvar
	(limits number of displayed notify lines)

2003-12-07 02:57  havoc

	* cl_particles.c, menu.c, todo: todo item done: added
	cl_particles_blood_bloodhack cvar so now id1 blood particles use
	the blood effect, and added this to effects options menu as Force
	New Blood Effect

2003-12-07 02:28  havoc

	* todo: [no log message]

2003-12-07 02:26  havoc

	* cl_screen.c, cl_screen.h, jpeg.c, menu.c, todo: added
	scr_screenshot_jpeg_quality cvar (and added it to the menu)

2003-12-07 01:56  havoc

	* host.c, todo: todo item done: added "saveconfig" console command

2003-12-07 01:47  havoc

	* pr_cmds.c, todo: added DP_LITSUPPORT extension

2003-12-07 01:39  havoc

	* menu.c, todo: todo item done: GAME_FNIGGIUM minimum resolution of
	640x480

2003-12-07 01:24  havoc

	* menu.c: added r_wateralpha to effects menu

2003-12-07 00:35  havoc

	* vid.h, vid_glx.c, vid_shared.c, vid_wgl.c: removed
	vid_allowhwgamma variable because vid_activewindow is a better
	thing to check

2003-12-07 00:33  havoc

	* todo: [no log message]

2003-12-07 00:24  havoc

	* host.c: no longer throttles back framerate when console is
	active, now only when app is not the focus

2003-12-07 00:21  havoc

	* vid_glx.c: fixed behavior of vid_activewindow and
	vid_allowhwgamma in x11 event code, now behaves more like the
	windows version (gamma is now based on whether the window is the
	focus, not related to mouse entering/leaving anymore)

2003-12-07 00:01  havoc

	* client.h, view.c: added CSHIFT_VCSHIFT blend so v_cshift now
	affects underwater blending (as well as other liquids) for more
	consistent behavior, and disabled powerup blends in transfusion (at
	their request)

2003-12-04 03:13  havoc

	* cmd.c, common.c: eradicated SZ_Print, thanks to Fuh for pointing
	out the sheer evil of this function found in nq, qw and q2... 
	SZ_Print is a strcat onto a sizebuf - note that it could OVERWRITE
	THE SIZEBUF STRUCT if it is empty (but it was never empty where
	quake used it).

2003-12-04 02:05  havoc

	* cl_screen.c: removed need for gfx/menuplyr.lmp (this code wasn't
	even used anymore, since the menu loads it directly on demand and
	that is optional)

2003-12-04 01:47  havoc

	* cmd.c, common.c, common.h: console parsing now behaves like qwcl,
	thanks to Fuh for pointing out the problems with the winquake
	COM_ParseToken (it treated : as a single character keyword, thus
	breaking connect commands involving a port, for example), so I
	added COM_ParseTokenConsole for the console parsing

2003-12-02 18:00  havoc

	* vid_glx.c: fix a severe bug with 16bit modes (VID_InitMode in
	vid_glx.c was taking a stencil parameter which does not exist, and
	thus stencil was in general always on even in 16bit)

2003-11-30 16:17  havoc

	* r_shadow.c: added a note about the Creative Technology Ltd patent
	(US Patent #6384822) on the Carmack's Reverse approach to stencil
	shadow volume rendering, and changed the rendering algorithm to
	further distance it from Creative's patent.

2003-11-30 10:33  black

	* host.c: The menu isnt initialized for dedicated servers

2003-11-29 22:33  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h, r_shadow.c: now uses
	q3bsp surfaceflags when possible instead of shaders (but the trans
	flag still exists only in shader surfaceparms so they are still
	read for that)

2003-11-29 17:56  havoc

	* common.c, common.h: added GAME_FNIGGIUM and GAME_SETHERAL

2003-11-29 17:48  havoc

	* fs.c: fix a little bug in the FS_Search code (it was checking the
	pak case sensitivity flag even if it was looking at a directory
	listing)

2003-11-29 17:14  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h, r_shadow.c: now parses
	q3 shaders for surfaceparms (this mainly fixes up the many falsely
	transparent walls in shader tricks, and also detects nodraw shaders
	properly)

2003-11-29 17:10  havoc

	* common.c, common.h: added comment support to
	COM_ReadAndTokenizeLine

2003-11-28 21:32  havoc

	* fs.c, fs.h: added dir and ls console commands (yes they are
	different), these search paks (although not very good at pattern
	matching), and FS_Search and FS_FreeSearch functions

2003-11-28 21:30  havoc

	* model_brush.c: added a quick hack for nodraw support in q3bsp (I
	hope this is right)

2003-11-19 06:59  black

	* menu.c, vid.h, vid_shared.c: vid_hardwaregammasupported is now a
	read-only cvar

2003-11-19 05:56  black

	* cvar.c, cvar.h, pr_edict.c: Cvars can be read-only now.

2003-11-19 02:07  havoc

	* r_sprites.c, todo: fixed oriented sprite problems (no longer uses
	entity angles for them) by rewriting the whole R_SpriteSetup
	function, it is now VERY optimized and more readable

2003-11-19 00:50  havoc

	* vid_shared.c: ignore vid_restart commands in configs

2003-11-18 23:50  molivier

	* vid_glx.c, vid_wgl.c: ClearAllStates cleared the key states twice
	in vid_wgl.c, and vid_glx.c didn't do that when he closes its
	window (which caused missed key strokes with vid_restart and the
	video options menu)

2003-11-18 23:45  molivier

	* darkplaces.dsp: Updated MSVC6 DSP file

2003-11-18 09:48  havoc

	* keys.c: fix an input bug that prevented function keys from
	working inside console

2003-11-16 21:00  havoc

	* palette.c: now includes quake palette as a fallback if no
	gfx/palette.lmp is loaded

2003-11-14 20:16  havoc

	* todo, todo: [no log message]

2003-11-14 17:03  havoc

	* host.c: fixed flipped sound (stupid bug in S_Update call)

2003-11-14 06:02  havoc

	* chase.c, cl_particles.c, cl_screen.c, client.h, gl_backend.c,
	gl_backend.h, gl_models.c, gl_rmain.c, gl_rsurf.c, host.c,
	makefile, meshqueue.c, r_crosshairs.c, r_light.c, r_lightning.c,
	r_shadow.c, r_sky.c, r_sprites.c, render.h, snd_dma.c, sound.h,
	todo, view.c: r_refdef.vieworg and r_refdef.viewangles replaced by
	r_refdef.viewentitymatrix fixed intermission camera bug (now the
	right place and angles by copying the entity matrix directly to
	r_refdef) fixed intermission listener bug (now the right place by
	copying the entity matrix to listener variables) fixed envmap
	command saving (now reads the correct part of the screen according
	to GL's bottom to top coordinates, so this works again) fixed
	envmap command rendering (it was not hiding view and exterior
	models) fixed timerefresh command rendering (it was not properly
	setting up the view) merged chase.c into view.c because it really
	didn't have any good reasons to be separate renamed
	listener_forward to listener_viewforward, listener_up to
	listener_viewup, listener_origin to listener_vieworigin, and
	converted listener_right to listener_viewleft renamed vpn to
	r_viewforward, vup to r_viewup, vright to r_viewright (deprecated,
	trying to use just r_viewleft but haven't finished converting
	things over to it yet), r_origin to r_vieworigin

2003-11-14 05:55  havoc

	* snd_null.c: removed double newlines (don't have a clue how this
	file got them)

2003-11-14 05:46  havoc

	* menu.c: fix a couple signed/unsigned comparison warnings

2003-11-14 05:19  havoc

	* cl_main.c: don't draw viewmodel during intermission

2003-11-12 03:37  molivier

	* menu.c: Options menu has a width of 320, not 640

2003-11-12 00:44  havoc

	* pr_cmds.c: make quake completable again (killtarget problem with
	double remove call, now just a developer warning instead of an
	error)

2003-11-11 12:20  black

	* menu.c: Added {0,0} to vid_resolutions and added the
	macro/constant VID_RES_COUNT

2003-11-11 12:18  black

	* prvm_cmds.c: Added 2 builtins.

2003-11-10 20:56  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: q3bsp transparency
	support (note: makes maps that abuse alpha in shaders for special
	effects look quite weird)

2003-11-10 18:36  havoc

	* gl_backend.c, gl_backend.h, gl_rsurf.c, model_shared.h: q1bsp
	lightmaps are now always rendered at 2x overbright like software
	quake and q3bsp (this means all multitexture lightmapped wall
	methods now require combine)

2003-11-10 00:20  havoc

	* cl_main.c, todo: now limits animation lerp time to .1 second to
	fix a problem with framegroup models changing frame (which they do
	infrequently) and interpolating the change really slowly

2003-11-08 00:33  havoc

	* winding.c, winding.h: added Polygon_Divide_Double and
	Polygon_Divide_Float functions which take point arrays and such
	instead of windings, for more flexibility

2003-11-07 19:16  havoc

	* pr_cmds.c: check for many invalid attempts to modify entities
	(like setmodel on world, or on a free entity)

2003-11-07 00:13  molivier

	* menu.c: When exiting the color control menu, return to the
	options menu instead of the main menu

2003-11-05 00:18  havoc

	* r_sky.c: call reset functions in init code (not necessary
	currently, as the compilers currently being used for darkplaces
	clear uninitialized variables, but a good practice)

2003-11-05 00:03  havoc

	* model_shared.c, model_shared.h: immense speedups to triangle
	neighbor building by using an edge hash table (this sped up rtlight
	loading by 10x or more in some cases)

2003-11-05 00:00  havoc

	* r_sky.c: fixed r_restart/vid_restart bugs with skybox (now
	reloads skybox as it should) and cleaned up skybox
	loading/unloading (no more memory leaks when changing skybox during
	game)

2003-11-04 20:14  havoc

	* gl_rsurf.c: added r_fullbright (and EF_FULLBRIGHT) support to
	q3bsp rendering

2003-11-04 20:10  havoc

	* gl_rsurf.c, model_brush.c: added r_ambient support to q3bsp
	rendering

2003-11-04 19:36  havoc

	* gl_rmain.c, gl_rsurf.c, menu.c, model_brush.c, model_brush.h,
	model_shared.c, model_shared.h, r_shadow.c, r_shadow.h, sv_main.c,
	todo: added r_shadow_showtris added gl_texture_anisotropy to menu
	changed sv_cullentities_trace and _pvs defaults to 0 and 1
	respectively (now uses pvs culling because trace culling was too
	slow in q3bsp) r_shadow_realtime_world now works in q3bsp (using
	upgraded Mod_ShadowMesh functions to combine lighting meshes)
	rewrote most of R_Q3BSP_DrawFace - now supports singletexture
	cards, r_shadow_realtime_world, and glow textures

2003-11-04 19:34  havoc

	* gl_backend.c, gl_backend.h, glquake.h: added R_Mesh_Draw_ShowTris
	function which draws a triangle mesh as lines

2003-10-31 11:24  black

	* mprogdefs.h, prvm_cmds.c, prvm_edict.c: Added isfunction and
	changed callfunction so it works

2003-10-30 04:49  black

	* prvm_cmds.c, vid_shared.c: Added 2(3) builtin functions.  Changed
	the 2d mouse code, so that the relative coords are mapped into the
	console coord system (mouse speed is always the same in the menu
	qc).

2003-10-28 14:29  black

	* console.c, prvm_cmds.c, prvm_edict.c, prvm_exec.c: Fixed a bug
	that caused some messages to not be logged to the disk (Con_Print
	calls instead of Con_Printf).  Changed the comment of Con_Print, so
	it isnt misleading any more.  Fixed a bug so dp wont crash when
	VM_strzone/VM_strunzone is used.

2003-10-28 03:17  molivier

	* snd_mem.c: Moved some sound code in preparation of adding Ogg
	Vorbis support

2003-10-26 13:54  black

	* menu.c, prvm_cmds.c, prvm_edict.c: Changed the way the new vm is
	handling the unloading of programs - respectively cleaned
	PRVM_ResetProgs.  Moved the key_dest reset from MR_Restart to
	M_Shutdown/MP_Shutdown.

2003-10-25 09:28  black

	* common.c, fs.c, gl_backend.c, gl_draw.c, prvm_cmds.c,
	prvm_edict.c, prvm_execprogram.h: Added a new builin function
	(callfunction) Fixed my drawqueue clipping code - should work now

2003-10-23 23:47  molivier

	* fs.c: Fixed FS code so that unpacked files are handled normally
	when AKVERSION isn't defined

2003-10-23 12:47  black

	* menu.c, prvm_cmds.c, prvm_edict.c, prvm_exec.c: Changed
	prvm_ed_loadfromfile - it isnt really compatible with the old vm
	anymore (allows now loading multiple files. Fixed prvm_crashall and
	altered some error texts.

2003-10-22 01:41  molivier

	* snd_dma.c: Factorized the code of the S_Play* functions

2003-10-22 01:35  molivier

	* cd_win.c, vid_wgl.c: Fixed 2 warnings found by MSVC6

2003-10-21 06:02  havoc

	* glquake.h: removed pragma that disabled signed/unsigned mismatch
	warnings in MSVC4, as these have all been fixed in the engine
	already

2003-10-21 05:59  black

	* cl_screen.c, gl_backend.c, gl_backend.h: I hope this fixes some
	warnings

2003-10-21 05:21  havoc

	* sv_move.c, sv_phys.c, sv_user.c: physics code no longer uses
	allsolid (mainly of concern to q3bsp which rarely set it), only
	startsolid (allsolid is of course kept for QC compatibility, as
	non-functional as it may be), and I reenabled movement when in
	solid (so objects can move out of obstacles they managed to end up
	inside)

2003-10-21 05:18  havoc

	* world.c: SV_Move (and children) now only set trace.ent if there
	is an impact, not if it was an allsolid situation...  and
	SV_PointQ1Contents now uses SV_PointSuperContents

2003-10-21 05:08  black

	* cl_main.c, cl_screen.c, cl_screen.h, client.h, gl_backend.c,
	gl_backend.h, gl_draw.c, host.c, input.h, menu.c, pr_exec.c,
	progsvm.h, prvm_cmds.c, prvm_edict.c, prvm_exec.c,
	prvm_execprogram.h, vid_shared.c, vid_wgl.c: Added in_mouse_x and
	in_mouse_y, which contain the rel. coords of the mouse.  Fixed a
	bug where PRVM_Stacktrace/PR_Stacktrace were involved.	Added some
	vm builtin functions to the new vm and changed
	PRVM_ED_LoadFromFile, so it can load multiple files.

2003-10-21 04:43  havoc

	* collision.c: moved trace endpos calculation outside of
	RecursiveHullCheck, to improve code layout consistency between
	collision box and q1bsp code (no effect on results)

2003-10-21 04:34  havoc

	* model_brush.c: one more input underrun check in pvs decompression

2003-10-17 08:30  black

	* prvm_cmds.c: Removed some bugs (I forget to change a few pr_argc
	to prog->argc)

2003-10-17 07:02  black

	* cl_main.c, fs.c, input.h, keys.c, prvm_cmds.c, vid_shared.c:
	Updated some builtin parameter lists, added 2 functions to the menu
	builtins.  Added the boolean in_client_mouse (used to indicate
	wheter mouse position data should be send to the client.  (Only Win
	at the moment)

2003-10-16 20:32  havoc

	* cl_demo.c: read multiple frames from demo if client is falling
	behind

2003-10-16 10:45  black

	* host.c: Fixed crash in Host_Shutdown when MR_Shutdown was 0.

2003-10-16 04:41  havoc

	* pr_cmds.c: handle one error condition I forgot to code in
	PF_setattachment (modelindex was checked, but did not check for it
	resolving to a NULL model, as is the case whem modelindex is 0)

2003-10-15 00:37  havoc

	* todo: marked off some completed items and such

2003-10-13 14:14  havoc

	* r_shadow.c: added r_shadow_help and r_editlights_help commands
	containing documentation

2003-10-13 05:43  black

	* menu.c, prvm_cmds.c, sys_win.c, vid_wgl.c: Fixed windows input
	(bad,bad hack)

2003-10-12 02:05  warp

	* keys.c, vid_glx.c: Whoops, fix some stupidity on my part, should
	work better.

2003-10-12 01:43  warp

	* keys.c, keys.h, menu.c, menu.h, vid_glx.c, vid_wgl.c: Change key
	handling, er, quite a bit.
	
	Note, Windows is broken by this, it needs fixing up ASAP.

2003-10-11 22:45  warp

	* vid_glx.c: Tweak the key handling, may need more invasive
	changes.

2003-10-11 12:46  black

	* snd_null.c: Added S_GetCached so the dedicated servers compiles
	now

2003-10-11 12:32  havoc

	* cl_input.c: remove +use and -use commands because they prevent
	mods from defining them (and they never worked anyway)

2003-10-11 05:14  black

	* cl_screen.h, host.c, menu.c, menu.h, progsvm.h, prvm_cmds.c,
	prvm_edict.c, snd_dma.c, snd_win.c, sound.h: Added the drawing
	functions and added also probably menu only message functions
	(almost the same as the server ones, but with different param
	(order)).  Also added all functions to the menu builtin list
	(except the menu specific ones :-/).  The drawflag constants are
	now the drawqueue_drawflag_e enum.  Added function S_GetCached.

2003-10-10 22:34  havoc

	* cl_collision.c, cl_main.c, model_alias.c, model_brush.c,
	model_shared.h, pr_cmds.c, snd_dma.c, sv_main.c, world.c, world.h:
	added DP_QC_TRACE_MOVETYPE_HITMODEL extension (and added
	DP_QC_TRACE_MOVETYPE_WORLDONLY to extension list) - this means
	traceline/tracebox can now check model geometry

2003-10-10 22:16  havoc

	* todo: [no log message]

2003-10-10 20:39  havoc

	* sbar.c: reverted two bugs introduced by Black (anum red digits
	were not being loaded, and restored the positioning of the
	minideathmatchoverlay to exactly where quake had it - my previous
	commit was 4 pixels off in positioning)

2003-10-10 20:25  havoc

	* sbar.c: fix Sbar_MiniDeathmatchOverlay to draw to the right of
	the sbar (in non-Nexuiz modes) like quake did

2003-10-10 20:12  havoc

	* todo: added another todo item for dpmod, sorted list again

2003-10-10 20:11  havoc

	* cl_main.c: made weapon only 50% invisible in Transfusion with the
	invisibility powerup, and now being dead or invisible only affects
	the main viewmodel (not viewmodelforccient entities) to allow more
	flexibility in mods

2003-10-09 21:50  havoc

	* prvm_cmds.c: fixed a crash in PR_objerror (trying to free self
	when there is no self), and removed an unused prototype called
	"error();"

2003-10-09 21:42  havoc

	* model_brush.c: one more reminder that nested for(i) loops are
	bad, mmk?

2003-10-09 20:07  havoc

	* gl_rsurf.c, model_brush.c: this should fix skybox in q3bsp (extra
	preprocessing pass to look for sky surfaces before rendering normal
	surfaces, only used if the map has sky surfaces)

2003-10-09 18:45  havoc

	* gl_rsurf.c, model_brush.c: q3bsp surfaces are now always rendered
	in the same order, made the q1bsp vis overrun/underrun warnings
	dprintf's, added some (unused) array merging code in q3bsp loading

2003-10-09 12:48  black

	* host.c: Sorry, forgot to remove some debug code from host.c

2003-10-09 12:42  black

	* host.c, menu.c, menu.h, progsvm.h, prvm_cmds.c, prvm_edict.c:
	Added a lot of builtin commands to prvm_cmds.c (mostly from
	pr_cmds).  Also changed the menu again, so menu_restart doesnt try
	to reregister cvars and cmds any more.

2003-10-08 14:57  havoc

	* view.c: added back glquake stair step up smoothing, and made it
	somewhat adjustable (cl_stairsmoothspeed)

2003-10-08 14:40  havoc

	* menu.c: fixed Apply option in video options menu (I had forgotten
	to renumber it)

2003-10-08 14:00  havoc

	* snd_win.c: fixed a couple warnings on memsetting shm

2003-10-08 13:50  havoc

	* collision.c, collision.h, model_brush.c, winding.c, winding.h:
	collision brush generation in q3bsp is now *MUCH* faster and uses a
	lot less memory (technical: now uses two temp windings, repeatedly
	swapping between them, avoiding all the temporary allocs, to
	achieve this BufWinding_NewFromPlane and BufWinding_Divide were
	added)

2003-10-08 13:21  havoc

	* sv_phys.c: fixed splashing sounds once and for all - now splashes
	only on transitions involving water/slime, rather than the old 'any
	liquid except lava' check, so this means no more sky splashing...

2003-10-07 19:37  havoc

	* snd_dma.c: snd_initialized is now checked by S_FindName and
	S_PrecacheSound (Thanks to Moz for reporting the -nosound crash)

2003-10-07 18:28  havoc

	* darkplaces.dsp: added prvm_cmds.c prvm_edict.c prvm_exec.c
	prvm_execprogram.h

2003-10-07 17:59  havoc

	* cd_win.c: fixed a variable declaration I forgot to move when
	moving some other code

2003-10-07 16:45  havoc

	* cd_linux.c, cd_null.c, cd_win.c, cdaudio.h, gl_rmain.c, host.c,
	menu.c, r_shadow.c, r_shadow.h, snd_alsa_0_5.c, snd_alsa_0_9.c,
	snd_dma.c, snd_mem.c, snd_null.c, snd_oss.c, snd_win.c, sound.h,
	vid.h, vid_null.c, vid_shared.c, vid_wgl.c: cd audio now tied to
	sound system sound system now tied to video system because
	DirectSound needs a window to work at all (thank you Windows for
	another useless obstacle) sound system can now restart (snd_restart
	command) vid_stencil cvar removed (now tied to 32bit color)
	vid_bitsperpixel now defaults to 32 r_shadow_shadows cvar added
	(default 1) for stencil shadows on dlights (since vid_stencil is
	gone)

2003-10-07 08:16  havoc

	* makefile: removed a temporary comment from Black

2003-10-07 08:15  havoc

	* prvm_edict.c: fix a signed/unsigned comparison warning

2003-10-07 05:11  black

	* host.c, prvm_edict.c, makefile: [no log message]

2003-10-07 04:56  black

	* makefile: AK: Changed makefile temporarily so the new prvm
	compiles on linux.

2003-10-06 23:19  black

	* cl_parse.c, cl_screen.c, cl_screen.h, gl_draw.c, host.c, keys.c,
	menu.c, menu.h, pr_edict.c, quakedef.h, sbar.c, snd_win.c, ui.c,
	vid_wgl.c: Changed dp so the new vm fits in.

2003-10-06 21:49  havoc

	* model_brush.c: a stab in the dark at supporting unlit q3bsp maps

2003-10-06 11:52  black

	* clprogdefs.h, mprogdefs.h, progsvm.h, prvm_cmds.c, prvm_edict.c,
	prvm_exec.c, prvm_execprogram.h: Adding the new vm

2003-10-05 06:48  havoc

	* common.c, common.h: added COM_ReadAndTokenizeLine, a useful
	parsing function

2003-10-05 06:47  havoc

	* pr_edict.c: fix a signed/unsigned comparison in
	PR_UglyValueString

2003-10-02 02:04  molivier

	* cl_particles.c, common.c, common.h, fs.c, fs.h, model_brush.c,
	r_shadow.c: The crusade against buffer overflows continues...

2003-10-01 05:36  molivier

	* pr_edict.c: Fixed/switched the "ev_string" and "ev_field" cases
	in PR_UglyValueString

2003-10-01 05:19  molivier

	* fs.c, pr_edict.c, sys_linux.c, sys_win.c: Mostly [v]sprintf ->
	[v]snprintf replacements, and a couple of other fixes regarding
	buffers management

2003-09-30 08:07  molivier

	* cl_parse.c, netconn.c, sv_main.c, zone.c: More strcpy -> strlcpy
	and sprintf -> snprintf

2003-09-30 05:58  molivier

	* cd_linux.c, cl_demo.c, cl_main.c, cl_parse.c, cl_screen.c, cmd.c,
	common.c, filematch.c, fs.c, fs.h, host_cmd.c, menu.c,
	model_brush.c, model_shared.c, netconn.c, pr_edict.c, sv_main.c,
	ui.c: Lots of str[n]cat, str[n]cpy, and [v]sprintf have been
	replaced by strlcat, strlcpy and [v]snprintf to insure that they
	don't write outside of their buffers. More to come later.

2003-09-30 05:54  molivier

	* common.c, common.h: Added strlcat and strlcpy, from OpenBSD. They
	are smart replacements for strncat and strncpy - see
	http://www.courtesan.com/todd/papers/strlcpy.html or their manual
	pages on the OpenBSD website for details

2003-09-30 01:10  havoc

	* model_alias.c: md3 flags support (blood trails, etc)

2003-09-29 23:36  molivier

	* common.c: Fixed 2 potential buffer overflows in SearchInfostring

2003-09-29 05:32  molivier

	* fs.c, fs.h: The "position" field of the "qfile_t" structure was
	(correctly) used for 2 differents things; this is clearly bad
	practice though, so it's no longer the case. Added a missing test
	in FS_Seek to insure we don't seek outside of a deflated file. Plus
	some minor cleanups here and there in the FS code.

2003-09-22 13:55  havoc

	* gl_rsurf.c, menu.c, model_shared.c, model_shared.h: Tomaz's new
	water effect has been added and looks very nice

2003-09-22 13:05  havoc

	* model_brush.c: fixed lightgrid out-of-bounds crash (for example
	when one hits the very top of a q3bsp)

2003-09-22 12:44  havoc

	* model_brush.c: empty lightgrid lump should now work

2003-09-21 19:25  havoc

	* gl_rsurf.c: disabled GF3 water shader when water is fogged, fixed
	too-bright normal water rendering (when GF3 water shader is not
	used)

2003-09-21 18:21  havoc

	* cl_screen.c, cl_screen.h, cl_video.c, gl_draw.c, gl_rsurf.c,
	model_alias.c, model_brush.c, model_brush.h, model_shared.c,
	model_shared.h, portals.c, r_shadow.c: huge (16%) speed gain on
	surface rendering by eliminating the surfmesh chain in q1bsp
	surfaces, now only allows one mesh per surface and the surfmesh_t
	is embedded in the surface struct

2003-09-21 16:23  havoc

	* gl_rsurf.c: removed RSurf_LightCheck because nothing used it
	anymore

2003-09-21 16:08  havoc

	* gl_rsurf.c, menu.c, r_light.c, render.h: r_dlightmap 0 mode
	removed (vertex dlights on lightmapped walls)

2003-09-21 15:45  havoc

	* snd_oss.c, snd_win.c: engine now defaults to 44100hz sound

2003-09-21 15:42  havoc

	* gl_models.c, gl_rmain.c, gl_rsurf.c, model_alias.c,
	model_brush.c, model_shared.h, model_sprite.c: removed r_shadows
	(glquake fake shadows)

2003-09-21 15:06  havoc

	* cl_particles.c, cl_video.c, gl_backend.c, gl_backend.h,
	gl_draw.c, gl_models.c, gl_rmain.c, gl_rsurf.c, menu.c,
	r_explosion.c, r_shadow.c, r_sky.c, render.h, vid.h, vid_shared.c:
	r_colorscale gone, v_overbrightbits (cvar which controlled
	r_colorscale) gone

2003-09-21 14:06  havoc

	* gl_rsurf.c: removed water lighting support

2003-09-20 20:34  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h, r_sky.c, todo: now
	supports skyboxes in q3bsp (note: must use the "sky" key in
	worldspawn to set the skybox basename like in q2, and it identifies
	sky shaders by names beginning with "textures/skies/"), and added a
	little error checking to Mod_Q1BSP_LoadLeafs, and added a couple
	todo items

2003-09-20 02:16  havoc

	* common.c, common.h: added GAME_ZYMOTIC

2003-09-20 00:34  havoc

	* gl_rsurf.c, model_brush.c, portals.c, portals.h, r_shadow.c,
	todo, winding.c: finally managed to fix the r_shadow_portallight
	bug (had to reverse portal handling in many old broken cases), also
	changed the Portal_Visibility call to take a box instead of a
	sphere for culling

2003-09-19 13:18  havoc

	* gl_rmain.c, gl_rsurf.c, gl_textures.c, glquake.h, menu.c,
	model_shared.c, model_shared.h, r_textures.h, render.h,
	vid_shared.c: Tomaz's awesome new GeForce3 water effect, thanks!

2003-09-19 12:53  havoc

	* cl_screen.c, cl_screen.h, menu.c: recoded options menus, and
	replaced scr_2dresolution with vid_conwidth and vid_conheight cvars
	(and updated menu accordingly)

2003-09-19 12:50  havoc

	* portals.c, portals.h, r_shadow.c: migrated light bounding box
	generation from r_shadow code to Portal_Visibility code when using
	r_shadow_portallight 1, I hoped this would fix bugs but it did not,
	still it is an optimization...

2003-09-19 12:48  havoc

	* image.c: flip the X in normalmaps generated from heightmaps
	(according to FrikaC it was broken)

2003-09-19 12:44  havoc

	* sv_phys.c: added some SV_CheckVelocity calls to MOVETYPE_WALK
	code

2003-09-18 18:52  havoc

	* cl_demo.c, cl_main.c, host.c, menu.c, netconn.c, netconn.h,
	r_sky.c, todo: finished a lot of little todo items, mostly
	regarding server list and networking init bugs, and fixed skybox
	rendering

2003-09-18 12:29  havoc

	* cl_parse.c: after an argument with Black it was decided that
	GAME_NEXUIZ will be weird (in my opinion) and use a bit number
	instead of a bitfield for STAT_ACTIVEWEAPON

2003-09-17 10:51  havoc

	* cl_input.c, protocol.c, protocol.h, sv_main.c, sv_user.c, todo:
	the new partial-update entity compression protocol now works for
	the first time ever

2003-09-17 10:49  havoc

	* host.c: forgot to include this file in the previous commit (no
	longer opens gfx.wad until a lump is requested)

2003-09-17 10:48  havoc

	* wad.c, wad.h: no longer opens gfx.wad until a lump is requested
	(and gracefully fails if not found)

2003-09-14 19:21  havoc

	* model_brush.c: fixed empty texture lump handling in q1bsp loading

2003-09-14 19:21  havoc

	* protocol.c: made a commit debugging message only happen with
	developer_networkentities

2003-09-14 14:34  havoc

	* protocol.c, protocol.h: move developer_networkentities extern to
	protocol.h

2003-09-13 20:52  havoc

	* cl_parse.c, client.h, quakedef.h, sbar.c, sv_main.c: more Nexuiz
	hud stuff from BlackHC, minor style edits to fit in with
	surrounding code better

2003-09-13 20:40  havoc

	* todo: added an item about corona shaders

2003-09-13 13:58  havoc

	* mathlib.h: fixed log2i to use parentheses around n changed bit2i
	to use log2i((n) << 1)

2003-09-13 13:41  havoc

	* mathlib.h: added bit2i and log2i (these return the base 2
	exponent of an integer, perhaps bit2i should be replaced by log2i()
	- 1 though)

2003-09-13 13:39  havoc

	* r_sky.c: fixed an R_InitSky warning regarding transpix being
	uninitialized, added transpixunion to clean up the aliasing mess
	(thanks to Black for pointing this out)

2003-09-13 13:37  havoc

	* cl_input.c, sv_user.c: more developer_networkentities messages

2003-09-12 21:50  havoc

	* cl_input.c, cl_main.c, cl_parse.c, client.h, common.h, netconn.c,
	protocol.c, protocol.h, sv_main.c, sv_user.c: renamed
	PROTOCOL_VERSION stuff to PROTOCOL_QUAKE, PROTOCOL_DARKPLACES1, and
	so on mostly fixed network entity bugs

2003-09-12 21:49  havoc

	* todo: [no log message]

2003-09-12 16:57  havoc

	* common.c: changed teu game dir to "baseteu" at request of teu
	team

2003-09-12 05:47  havoc

	* model_alias.c: aitur fixed some important bugs in the error
	checks of the md2 model loader, thanks!

2003-09-08 15:00  havoc

	* todo, todo: [no log message]

2003-09-04 06:34  havoc

	* menu.c: a couple bugfixes in Nehahra demos menu regarding end of
	menu wrapping (thanks to Vic for pointing out these bugs)

2003-09-04 06:30  havoc

	* sbar.c: fix some glitches in the original commit clean up blank
	lines

2003-09-04 05:30  havoc

	* cl_screen.h, gl_draw.c, quakedef.h, sbar.c: patch from Andreas
	Kirsh to add Nexuiz hud

2003-09-04 02:30  havoc

	* netconn.c: the Connect failed error is now just a print

2003-09-04 02:25  havoc

	* sv_main.c: fix a nasty crash with multiplayer servers (thanks to
	Willis for finding this bug)

2003-08-30 23:35  havoc

	* pr_cmds.c: fixed a couple stupid bugs

2003-08-30 22:25  havoc

	* todo: [no log message]

2003-08-30 22:20  havoc

	* pr_cmds.c: now uses string buffers more sanely and supports
	multiple strcat buffers (now uses PR_GetTempString), modified
	PF_VarString to read into a string buffer (FrikaC noticed strcat
	was being overwritten by print, inconsistent with his
	implementation of FRIK_FILE)

2003-08-30 22:17  havoc

	* pr_edict.c: fix a crash related to MAX_EDICTS in "pr_fields"
	command (thanks to SeienAbunae for reporting this)

2003-08-29 18:54  havoc

	* host.c, host_cmd.c, menu.c, netconn.c, pr_cmds.c, pr_edict.c,
	server.h, sv_main.c, sv_phys.c, sv_user.c, todo: reverted the
	massive svs.connectedclients change, now back to svs.clients and
	svs.maxclients like quake this fixes mods detecting singleplayer as
	multiplayer this fixes frikbot frags updates on the scoreboard
	added most of the capability necessary for botclient extension

2003-08-28 20:49  havoc

	* todo: [no log message]

2003-08-28 20:46  havoc

	* lhnet.c: now prints "Connection refused" if LHNET_Read gets an
	ECONNREFUSED from inet4 or inet6 (thanks to Andreas Kirsh for this)

2003-08-28 07:07  havoc

	* vid_shared.c: v_hwgamma is now saved to config (Andreas Kirsh
	suggested this and I agree) gl_combine is now saved to config (due
	to popular demand, although this really should become a separate
	overbright cvar instead)

2003-08-28 06:52  havoc

	* vid_wgl.c: thanks to Andreas Kirsh for a discussion about using
	WS_EX_TOPMOST flag on the fullscreen window (hopefully this will
	keep dialogs from cutting holes in the frame like some people have
	reported)

2003-08-28 01:08  havoc

	* host_cmd.c: fixed Prydon Gate behavior regarding the start map
	(which immediately changes level)

2003-08-27 23:32  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: experimental (not
	terribly useful) support for r_shadow_realtime_dlight 1 mode
	(_world mode put on hold for a while)

2003-08-27 06:21  havoc

	* gl_rsurf.c: removed used of PolygonOffset because it caused
	(extremely minor) visual glitches on the map, and isn't really much
	help even when using r_drawcollisionbrushes

2003-08-27 06:10  havoc

	* gl_rsurf.c, model_brush.c: fixed a crash with clusterindex -1 in
	GetPVS and FatPVS

2003-08-27 05:22  havoc

	* cl_collision.c, collision.c, collision.h, gl_rsurf.c, mathlib.h,
	model_brush.c, model_shared.c, model_shared.h, sv_main.c,
	sv_phys.c, todo, world.c: q3bsp curve collisions (technically it
	can collide against any triangle mesh) fixed some severe bugs in
	the q3bsp traceline code optimized q3bsp tracebrush code - now uses
	a bbox for the trace, and reduces it to fit each node it
	encounters, this caused *IMMENSE* speedups! optimized q3bsp curve
	collisions to use bbox culling of triangles (to avoid the cost of
	generating collision brushes most of the time)

2003-08-24 23:35  molivier

	* menu.c: Removed useless function M_PrintWhite, since M_Print
	prints in white already. Added M_PrintRed. Added support for
	sections for the key binding list (for clarity when using a lot of
	commands), and made it adjust its position depending on the number
	of commands. Updated Transfusion key binding list.

2003-08-24 17:11  havoc

	* gl_rsurf.c, model_brush.c: curves are now precomputed at load
	time, and all surfaces are treated as Q3FACETYPE_MESH (or skipped
	if they have no triangles)

2003-08-24 16:00  havoc

	* curves.c, curves.h, darkplaces.dsp, gl_backend.c, gl_backend.h,
	gl_rsurf.c, makefile, model_brush.c, todo: the quadratic spline
	patches in quake3 maps now work (in english: curves!)

2003-08-23 21:00  havoc

	* collision.c, cvar.c, menu.c, pr_cmds.c, r_shadow.c: no more uses
	of %g in printf as it tends to lose precision too often (this
	caused problems with ftos in QuakeC truncating numbers to 6 digits,
	a problem afflicting Prydon Gate especially) still tries to print
	numbers briefly if possible (by checking if their value is an int)

2003-08-23 03:30  havoc

	* todo: [no log message]

2003-08-23 03:19  havoc

	* chase.c: fix severe bug that made chase_up continually increase
	up to 118 (thanks to yummyluv for pointing this out, and Electro
	for making me realize why it happened)

2003-08-23 01:32  havoc

	* r_light.c: negate the dnormal instead of negating the dotproduct
	result

2003-08-23 01:30  havoc

	* r_light.c: diffusenormal lighting was backwards (thanks to
	Electro for pointing this out)

2003-08-23 01:23  havoc

	* sv_phys.c: don't call PlayerPreThink/PlayerPostThink on unspawned
	clients

2003-08-23 00:09  havoc

	* netconn.c: fix a (very bad!) bug with -port cvar setting

2003-08-23 00:05  havoc

	* netconn.c: added error messages when opening sockets (reports
	both success and failure) added support for legacy -ip and -port
	options

2003-08-22 23:20  havoc

	* menu.c: in the server setup menu, default to 8 players instead of
	MAX_SCOREBOARD

2003-08-22 22:13  havoc

	* cl_particles.c, collision.c: fixed a couple warnings

2003-08-22 19:17  havoc

	* collision.c, collision.h, gl_rsurf.c, model_brush.c,
	model_shared.h, r_light.c, r_shadow.c, todo, world.c: q3bsp is
	working, but no curves yet, and no realtime lighting support

2003-08-22 16:44  havoc

	* sv_main.c: fix handling of .alpha, .renderamt, .scale, and
	.glow_color defaulting when 0 (it has to compare the float value,
	not the byte version of it)

2003-08-19 01:27  molivier

	* menu.c: Someone forgot to increment the number of items in the
	options menu. Added the "use" button to Transfusion key binding
	list

2003-08-18 21:03  havoc

	* chase.c: adjusted up camera height for chase_stevie in GoodVsBad2
	as requested by yummyluv

2003-08-18 17:43  havoc

	* winding.c, winding.h: forgot to commit these

2003-08-18 17:25  havoc

	* bspfile.h, cgamevm.c, chase.c, cl_collision.c, cl_collision.h,
	cl_main.c, cl_particles.c, cl_screen.c, collision.c, collision.h,
	darkplaces.dsp, gl_models.c, gl_rmain.c, gl_rsurf.c, host.c,
	makefile, mathlib.c, model_brush.c, model_shared.h, pr_cmds.c,
	r_crosshairs.c, r_explosion.c, r_light.c, r_shadow.c, render.h,
	sv_move.c, sv_phys.c, sv_user.c, todo, view.c, world.c, world.h:
	more q3bsp work (and no it still doesn't work right) converted over
	most of the engine to use new SUPERCONTENTS_ values (bit flags),
	and the q1bsp and q3bsp loaders convert to these, conversion to q1
	contents and back is supported as well other stuff...  I've
	forgotten what

2003-08-18 12:31  havoc

	* todo: [no log message]

2003-08-14 12:29  havoc

	* darkplaces.dsp: sv_light.c is gone, updated project to remove it

2003-08-13 20:48  havoc

	* cl_main.c, gl_rsurf.c, host_cmd.c, model_brush.c, model_shared.h,
	portals.c, pr_cmds.c, r_light.c, snd_dma.c, sv_main.c, world.c:
	q3bsp is still not working yet, but getting closer

2003-08-13 16:08  havoc

	* cl_particles.c, collision.c, collision.h, gl_rmain.c, gl_rsurf.c,
	model_brush.c, model_shared.h, pr_cmds.c, r_light.c, r_shadow.c,
	r_shadow.h, render.h, snd_dma.c, sv_main.c, todo, world.c: no time
	to explain, more changes on the path to q3bsp support

2003-08-12 19:17  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, model_shared.h,
	pr_cmds.c, r_light.c, r_shadow.c: more hackish cleanups of PVS
	stuff, now decompresses the PVS data at load and this got rid of
	the last of the calls to LeafPVS (now checks the pvs in the leaf
	directly)

2003-08-12 19:16  havoc

	* todo: [no log message]

2003-08-12 19:08  havoc

	* model_alias.c: I hope this fixes a md3 tag bug, but don't know

2003-08-11 05:20  havoc

	* model_brush.c, model_shared.h, sv_main.c: moved SV_FatPVS to
	model code

2003-08-10 13:03  havoc

	* gl_models.c, makefile, model_brush.c, model_shared.h, pr_cmds.c,
	r_light.c, r_light.h, r_sprites.c, sv_light.c: moved
	RecursiveLightPoint code to model_brush.c
	(model->brush.LightPoint), removing it from r_light.c and
	sv_light.c (now no longer needed) made LightPoint able to return
	quake3 lightgrid data (diffuse color and direction in addition to
	ambient)

2003-08-10 12:58  havoc

	* todo: [no log message]

2003-08-10 06:49  havoc

	* collision.c, collision.h, model_brush.c, model_shared.h: Q3BSP
	collisions implemented (although not for patches, which aren't
	supported anyway, yet, and this is definitely not tested yet)

2003-08-09 10:57  havoc

	* menu.c: patch supplied by Toddd changed GAME_BATTLEMECH quit
	messages now knows about deathmatch and rambo modes in
	GAME_BATTLEMECH

2003-08-09 10:54  havoc

	* common.c: change GAME_BATTLEMECH gamedir to "base" (patch
	supplied by Toddd)

2003-08-09 10:01  havoc

	* cl_particles.c, menu.c: redesigned blood effects (now looks like
	droplets until they hit a surface) added decals for bullet impacts,
	explosions, plasma, etc added cl_particles_quality cvar (cranks up
	the number of particles, reducing their alpha, making softer
	effects) removed cl_particles_blood_size and
	cl_particles_smoke_size cvars

2003-08-09 09:56  havoc

	* pr_edict.c: fixed loadgame bug with edict references to later
	edicts (d was pointing at the old address, redesigned how it works
	to fix this)

2003-08-08 15:23  havoc

	* todo: [no log message]

2003-08-08 15:22  havoc

	* sv_user.qc: fixed compile errors

2003-08-08 15:19  havoc

	* sv_user.qc: sample implementation of QC replacement physics
	(already available on website, but it might as well become a
	maintainable thing in cvs)

2003-08-08 15:06  havoc

	* sv_user.c: reverted noclip movement to quake behavior (commented
	out the free movement call) to fix Cannon Fodder Quake (
	http://www.qexpo.com/booths.php?id=5 ) ported sv_user.qc to C (C ->
	QC -> C again) because it greatly reduces the amount of code and
	makes it a bit more maintainable

2003-08-07 04:01  havoc

	* host_cmd.c, todo: multiplayer-only games (Transfusion and so on)
	now start playing demos as usual, rather than starting a server at
	startup (unless dedicated or -listen is used)

2003-08-07 03:56  havoc

	* pr_cmds.c: fix a warning

2003-08-07 03:44  havoc

	* lhnet.c, netconn.c, netconn.h: simulated packet loss
	(cl_fakepacketloss_receive, cl_fakepacketloss_send,
	sv_fakepacketloss_receive, sv_fakepacketloss_send) and ping
	(cl_fakelocalping_min, cl_fakelocalping_max) for network testing
	(or to handicap oneself in a local game)

2003-08-07 03:41  havoc

	* todo: [no log message]

2003-08-07 03:38  havoc

	* cl_input.c: sigh, one more thing I forgot to commit :(

2003-08-06 09:33  havoc

	* host.c, netconn.c, netconn.h, protocol.c, server.h: working code
	is better than broken code code that compiles is good too...  (fix
	bugs/unfinished code in the DPPROTOCOL_VERSION4 commit)

2003-08-06 06:16  havoc

	* cl_input.c, cl_main.c, cl_parse.c, client.h, common.c,
	gl_rmain.c, host.c, host_cmd.c, menu.c, netconn.c, netconn.h,
	pr_cmds.c, pr_edict.c, protocol.c, protocol.h, sbar.c, server.h,
	sv_main.c, sv_phys.c, sv_user.c: upgraded network protocol to
	DPPROTOCOL_VERSION4 - this means partial entity updates are now
	supported (limited bandwidth entity updates), although the "rate"
	cvar stuff has not been implemented yet...  it also means entirely
	dynamic resizing of arrays in the server's entity database per
	client, so memory usage goes *WAY* down (used to be 256mb for 64
	players, no matter what map/mod, now entirely adaptive as the game
	goes) svs.clients gone, replaced with svs.connectedclients (similar
	idea except this is an array of pointers, and they are NULL for any
	unconnected client slots), this means entirely dynamic memory usage
	depending on number of clients (at least in the server; the client
	still needs fixing), this also means "maxplayers" is now a cvar
	(sv_maxplayers internally), not a command some
	fixes/cleanups/tweaks (like proper setup of default maxplayers and
	deathmatch cvar in multiplayer-only games incase someone starts a
	map from console right away without using the menus)

2003-08-06 06:11  havoc

	* todo: [no log message]

2003-08-06 03:22  havoc

	* collision.c: optimized polygon collision code a bit (optimized
	node side comparison)

2003-08-03 06:20  havoc

	* sv_main.c, world.c, world.h: added MOVE_WORLDONLY movement type
	now does vis traces using MOVE_WORLDONLY to get a significant speed
	boost (back to the way it was before) and hopefully prevent any
	problems with transparent solid bmodels blocking visibility of
	entities

2003-08-03 06:05  havoc

	* todo: [no log message]

2003-08-03 06:04  havoc

	* model_shared.c: fix skin loading on mdl (and probably md2) models
	by not setting numskins unless skin file override is happening

2003-07-30 17:26  havoc

	* cl_parse.c, client.h, cmd.c, common.c, common.h, host_cmd.c,
	model_alias.c, model_brush.c, model_shared.c, model_shared.h,
	pr_cmds.c, pr_edict.c, protocol.c, r_shadow.c: corrected a few
	LittleLongs to LittleFloat in md3 loading (EEP those were bad)
	.skin loading is now able to parse the quake3 format, and uses
	"common/nodraw" or "textures/common/nodraw" for the invisible
	parts, this also meant supporting replacement tag names in the
	.skin files...	so that's implemented as well (quite difficult)
	COM_ParseToken upgraded to be able to parse .skin files (now
	identifies more single character tokens, and can return newlines if
	desired - this required patching lots of code to pass false to it)
	added beginnings of support for DPPROTOCOL_VERSION4 in client (I.E.
	does nothing right now because the server speaks
	DPPROTOCOL_VERSION3)

2003-07-30 17:25  havoc

	* todo: [no log message]

2003-07-30 17:16  havoc

	* cl_main.c: simplified dlight fading code

2003-07-28 16:47  havoc

	* protocol.c, protocol.h: added code for protocol 4, not hooked up
	or tested

2003-07-28 16:46  havoc

	* todo: [no log message]

2003-07-28 04:45  havoc

	* model_alias.c: I hope this fixes tags on md3 models, but I don't
	have any idea...

2003-07-28 04:02  havoc

	* pr_cmds.c: fix setattachment (it was setting tag_index to i,
	should have been i + 1), also added some developer warnings if it
	fails

2003-07-26 22:23  havoc

	* makefile: disable -Werror because it makes a mess of releases if
	anyone has warnings (like a certain release I made a few days
	ago...	and then got 5 or so 'it doesn't compile' reports from
	Linux users :)

2003-07-26 22:20  havoc

	* sv_main.c: remove an unused variable (and kill the one incorrect
	use of it)

2003-07-26 22:13  havoc

	* netconn.c, quakedef.h, sv_main.c: added MAX_PACKETFRAGMENT to
	limit size of reliable packets, and also try to keep effects from
	pushing it over the limit either, this means the only possible way
	to push it over the limit is entity updates, and if exceeding the
	limit the packets might be lost, possibly dropping the player... 
	but at least everything else should work now.

2003-07-26 21:52  havoc

	* todo: [no log message]

2003-07-26 03:52  havoc

	* model_alias.c: missing )

2003-07-26 02:34  havoc

	* model_alias.c: changed .skin loading behavior to compare mesh
	name, not shader name, this matches quake3 behavior now shows
	r_notexture if a texture is missing on md2/md3 and missing .skin
	replacements

2003-07-26 01:28  havoc

	* model_alias.c: report if skins are missing in SkinFiles system

2003-07-25 17:18  havoc

	* todo: [no log message]

2003-07-25 17:08  havoc

	* todo, todo: [no log message]

2003-07-25 15:35  havoc

	* todo: [no log message]

2003-07-25 02:23  havoc

	* todo: marked a couple done, and sorted

2003-07-25 02:19  havoc

	* pr_cmds.c: added DP_GFX_SKINFILES and DP_GFX_QUAKE3MODELTAGS
	extensions

2003-07-25 01:56  havoc

	* cl_main.c, model_alias.c, model_shared.c, model_shared.h, todo:
	support for %s_%i.skin files on alias models (I.E.
	progs/test.mdl_0.skin), which contain "replace" commands, followed
	by the name of the mesh skin to replace ("default" for mdl/md2),
	and the replacement name, any skins that are not replaced are set
	to not draw (this means of course that a model can have extra
	pieces that become invisible in some skins)

2003-07-24 14:45  havoc

	* mingw_note.txt: removed gl.h from the list added note that the dx
	includes can be found in q1source.zip on the id ftp

2003-07-24 14:43  havoc

	* mingw_note.txt: wsipx.h is not needed anymore, removed from the
	list

2003-07-24 14:14  havoc

	* mingw_note.txt: a correction about mingw makefile

2003-07-24 13:08  havoc

	* common.c, common.h, menu.c: added Battlemech (thanks to Todd for
	submitting the patch, though I replaced his quit messages)

2003-07-24 12:30  havoc

	* cl_main.c, cl_screen.c, client.h, pr_cmds.c, pr_edict.c, progs.h,
	protocol.c, protocol.h, sv_main.c, todo, view.c: md3 tag
	attachments (implemented but untested), also the capability to
	attach any entity to any other entity without tags (I.E. Q2 vwep
	models should work if attached to tag "") redesigned large portions
	of entity networking (client and server) to deal with the
	hierarchical entity associations, viewmodel handling (client and
	server), view handling (client) this may have fixed some unknown
	bugs regarding viewmodels and such (I hope so, it's cleaner,
	although more complicated)

2003-07-24 11:45  havoc

	* menu.c: cleaned up quit message system, now GAME_GOODVSBAD2's
	quit messages work and it's easy to add other games, also added
	back quake messages for quake/hipnotic/rogue modes

2003-07-24 00:20  havoc

	* r_shadow.c: a little more explanation of shadow edge code

2003-07-23 23:12  havoc

	* cl_particles.c: quite possibly the smallest ever commit -
	deleting an obsolete comment

2003-07-22 15:02  warp

	* r_sky.c: Kill an unused increment.

2003-07-22 13:02  havoc

	* model_alias.c, model_alias.h, model_shared.h: now loads md3 tags

2003-07-22 12:23  havoc

	* cl_parse.c, protocol.h: fixed TE_BLOOD2 (by making it go away, it
	was not used by anyone, now an empty slot named TE_UNUSED1)

2003-07-22 11:50  havoc

	* cl_collision.c, collision.c, collision.h, model_brush.c,
	model_shared.h, sv_main.c, world.c, world.h: collision code
	cleanups (model->brush.TraceBox is now used for everything except
	of course bbox collisions which use Collision_ClipTrace_Box)

2003-07-22 11:45  havoc

	* view.c: get rid of bobbing when dead

2003-07-22 11:44  havoc

	* mathlib.h: added VectorLerp

2003-07-22 11:42  havoc

	* bspfile.h: added Q2 and Q3 contents flags

2003-07-22 11:12  havoc

	* cl_main.c: viewmodels should not emit dlights (they spawn around
	0 0 0), thanks to Tomaz for reporting this

2003-07-22 11:08  havoc

	* r_light.c: gl_flashblend 1 now disables model dlighting like it
	was supposed to (thanks to Tomaz for reporting this)

2003-07-22 10:22  havoc

	* model_shared.c: fix major editing mistake in Mod_LoadSkinFrame
	(it was using basepixels_width/height for nmappixels), thanks to
	Tomaz for finding this bug

2003-07-22 09:35  havoc

	* image.c: add a couple Mem_CheckSentinelsGlobal calls to
	loadimagepixels when developer_memorydebug is on (I really can't
	imagine these ever being needed, but might as well check)

2003-07-22 09:31  havoc

	* netconn.c: use proper string for conn->address when accepting a
	new client (otherwise it could easily be so bogus as to trash the
	netconn structure) thanks very much to Tomaz for tracking down this
	major bug

2003-07-22 09:28  havoc

	* zone.h: expose the developer_memory and developer_memorydebug
	cvars for use in other modules

2003-07-21 17:46  havoc

	* todo: two more dpzoo items

2003-07-21 17:41  havoc

	* darkplaces.dsp: thanks to Tomaz for pestering me about the fact
	his last project files didn't get committed somehow (I KNOW I did
	commit it!  but it didn't stick somehow)

2003-07-21 15:36  havoc

	* todo: more changes

2003-07-21 15:24  havoc

	* todo: some more battlemech related todo items

2003-07-21 14:26  havoc

	* todo: added a battlemech bug report

2003-07-21 13:48  havoc

	* todo: [no log message]

2003-07-20 21:15  havoc

	* lhnet.c: fix an error in a last minute change (was using
	maxcontentlength in Write, which takes contentlength)

2003-07-20 21:04  havoc

	* netconn.c: skip over NULL sockets in cl_sockets and sv_sockets
	lists

2003-07-20 21:03  havoc

	* lhnet.c: patch up some major cracks in the armor of the functions
	(they now don't like being passed NULL for anything)

2003-07-20 16:21  havoc

	* todo: marked gl_texturemode bug as done (apparently I fixed it at
	some point long ago and forgot about fixing it), thanks to Vic for
	noticing this

2003-07-19 10:53  havoc

	* cl_collision.c, model_brush.c, model_shared.h, pr_cmds.c,
	sv_main.c, sv_move.c, sv_phys.c, world.c, world.h: added
	SV_PointContents moved PointContents and FindNonSolidLocation
	function pointers into brush from brushq1 added TraceBox function
	pointer to brush (but no implementations of it yet)

2003-07-19 10:51  havoc

	* todo: [no log message]

2003-07-18 14:20  havoc

	* darkplaces.dsp: thanks to Tomaz for updating the project files

2003-07-18 12:42  havoc

	* todo: [no log message]

2003-07-18 11:40  havoc

	* todo: finally I decided to commit my todo list, for whoever wants
	to contribute to the effort of finishing items on it NOTE: I sort
	this periodically, so if any items are out of order they will be
	sorted later

2003-07-18 10:24  havoc

	* model_brush.c, model_brush.h, model_shared.h: now loads q3 bsp
	(but can't render it or collide with it, so don't try it)

2003-07-17 07:57  havoc

	* cl_collision.c, cl_collision.h, cl_main.c, cl_parse.c,
	cl_particles.c, cl_screen.c, collision.c, gl_models.c, gl_rmain.c,
	gl_rsurf.c, model_alias.c, model_brush.c, model_brush.h,
	model_shared.h, model_sprite.c, portals.c, pr_cmds.c, protocol.h,
	r_light.c, r_shadow.c, r_sprites.c, snd_dma.c, sv_light.c,
	sv_main.c, sv_move.c, sv_phys.c, view.c: moved all type-specific
	model fields to respective structures (alias, sprite, brush)
	renamed model_t brush to brushq1, and created brush, brushq2,
	brushq3, currently brush only has entities, all else is type
	specific wrote the beginnings of a q3 bsp loader (and of course the
	headers) added functions CL_PointContents and
	CL_FindNonSolidLocation to simplify queries of world model (and
	make it more maintainable when q3bsp support is finished) added
	r_shadow_glossintensity cvar (default 1) for glossmap textures
	added r_shadow_gloss2intensity cvar (default 0.25) for forced gloss

2003-07-15 02:09  havoc

	* makefile: turn down optimizations to -O2 because some versions of
	gcc are buggy on higher settings

2003-07-15 02:07  havoc

	* zone.c: increase number of digits for memlist reports

2003-07-15 02:06  havoc

	* cl_screen.c: jpeg screenshot support in cl_avidemo recording

2003-07-14 08:46  havoc

	* cl_main.c, cl_screen.c, client.h, gl_rmain.c, makefile,
	r_lightning.c, view.c: added r_lightning.c to move the lightning
	beam rendering code out of cl_main.c shrunk entity_t struct a bit
	(by removing some stuff from persistent which had similar/identical
	values in render) restructured/refactored some of entity relinking
	(now all relinking happens in cl_main.c where it belongs, moved
	viewmodel stuff out of view code) restructured how viewmodels are
	handled streamlined/cleanedup/refactored V_CalcRefdef (and merged
	in V_UpdateBlends and V_AddIdle and V_CalcBob)

2003-07-14 08:38  havoc

	* snd_mem.c: now reports resamplesfx calls that don't involve
	resampling (of course only if developer is on) now reports if
	memory allocation failed for a sound during loading

2003-07-14 01:23  rain

	* vid_glx.c: Fix the event mask so that the gamma is reset when DP
	loses the focus or the pointer leaves the window.

2003-07-14 01:21  havoc

	* cl_screen.c: now defaults to 20% brightness conback because I got
	the first of many reports of 'broken console'

2003-07-14 00:48  havoc

	* cl_screen.c, console.c, gl_draw.c, menu.c, model_shared.c,
	screen.h: added scr_conbrightness cvar added scr_conspeed,
	scr_conalpha, and scr_conbrightness cvars to options menu moved
	definitions and externs of scr_conspeed, scr_conalpha, and
	scr_conbrightness cvars to cl_screen.c/screen.h

2003-07-14 00:46  havoc

	* image.c: fix loading of skins that end in ".tga" or similar (now
	strips image extensions off the shader name before loading the
	textures)

2003-07-13 10:54  havoc

	* model_shared.c: added some (untested) terrain code for whomever
	cares

2003-07-13 10:53  havoc

	* sv_main.c: compare coop.value instead of coop.integer (no
	difference in any mod I know of, but...)

2003-07-13 10:49  havoc

	* menu.c: added a very important part of GAME_GOODVSBAD2 support
	(it was not in the gamelist array and thus its levels were not
	listed)

2003-07-13 03:22  havoc

	* gl_textures.c, glquake.h, vid_shared.c:
	GL_EXT_texture_filter_anisotropic support (thanks zinx!)

2003-07-12 21:20  havoc

	* model_alias.c: slight simplification of fog layer in alias skins

2003-07-12 21:09  havoc

	* model_shared.c: fixed a severe bug in texcoord2f[] reading in
	Mod_BuildTextureVectorsAndNormals

2003-07-12 09:50  havoc

	* cl_main.c, cl_particles.c, gl_rsurf.c, r_lerpanim.c, r_light.c:
	fix a bunch of things that should have been checking if the model
	(usually cl.worldmodel) was not NULL before calling its functions

2003-07-12 09:49  havoc

	* cl_parse.c: now sends nops to server as unreliable, to avoid
	trashing the reliable packet system, this fixed connecting through
	NAT (!)

2003-07-12 08:05  havoc

	* netconn.c: NetConn_Write should print packets even if LHNET_Write
	returns 0

2003-07-12 07:59  havoc

	* pr_cmds.c: added GL_HALFLIFE_MAP_CVAR extension to list (the cvar
	is ancient)

2003-07-12 07:57  havoc

	* gl_rmain.c: added .ent file loading to client

2003-07-12 03:01  havoc

	* pr_cmds.c: added DP_GFX_EXTERNALTEXTURES extension to list

2003-07-11 20:09  havoc

	* client.h, sbar.c: got rid of frags per hour and time connected in
	scoreboard (both full size and mini) because both depended on
	scoreboard_t->entertime (which has been removed as it was not
	accurate)

2003-07-11 20:07  havoc

	* model_shared.c: all outputs of Mod_BuildTextureVectorsAndNormals
	are now optional slightly optimized
	Mod_BuildTextureVectorsAndNormals

2003-07-11 00:45  havoc

	* gl_rmain.c, gl_rsurf.c, menu.c, r_lerpanim.c, r_sprites.c,
	render.h: added cvars r_lerpsprites, r_lerpmodels, and
	r_waterscroll (and to menu as well)

2003-07-11 00:44  havoc

	* gl_backend.c: added a note about another kind of terrain strip
	and documented code for generating the strips

2003-07-09 21:33  havoc

	* palette.c: err I guess BuildGammaTable8 was used!

2003-07-09 21:30  havoc

	* mathlib.c, model_brush.c, palette.c: #if 0'd out a few unused
	functions

2003-07-09 21:21  havoc

	* netconn.c: server no longer responds to any netquake control
	packets (must use netchan-style commands to connect) connection
	process now uses getchallenge-connect approach to prevent join
	floods (who knows maybe I fixed NAT by doing this too, somehow)
	improved some of the command packet handling

2003-07-09 21:19  havoc

	* menu.c: added decals to effects options menu

2003-07-09 21:15  havoc

	* pr_execprogram.h: added a tip to runaway loop error (suggesting
	use of the profile command) made all possible exit paths of the
	execution update profile counts properly before exiting

2003-07-09 21:12  havoc

	* r_shadow.c: added 'readable' version of a particular line of code
	in shadow volume building

2003-07-08 03:06  havoc

	* cl_parse.c: check svc_setview against MAX_EDICTS

2003-07-08 03:04  havoc

	* host.c: fixed a buffer overflow in SV_BroadcastPrintf

2003-07-08 03:03  havoc

	* host_cmd.c: more of the fixes to clients joining and properly
	setting up edicts (forgot to commit this with sv_main.c and
	pr_edict.c)

2003-07-08 03:00  havoc

	* pr_edict.c, sv_main.c: fixed a lot of problems with filling out
	client edicts properly (or rather, not filling them out properly)
	which mostly appeared when doing changelevel or restart fixed
	nameless player joins/exits (finally!) code cleanups other little
	things stomped took another stab at fixing bogus entities being
	linked into areagrid (presumably caused by SV_IncreaseEdicts),
	hopefully fixing it this time (as if that wasn't the hope with all
	the previous attempts)

2003-07-08 02:54  havoc

	* netconn.c, netconn.h: some enhancements to timeout handling
	inspired by ProQuake fixes - net_connecttimeout cvar (a short
	timeout until first packet in connection), net_messagerejointimeout
	cvar (only kicks off old client matching peeraddress if the client
	has reached this message timeout)

2003-07-08 02:51  havoc

	* pr_cmds.c: redesigned much of PF_VarString to clean it up
	(shorter, faster, etc)

2003-07-08 02:50  havoc

	* r_shadow.c: fixed model shadows going through walls (by making
	everything use a constant project distance - clearly there are
	other solutions to the problem of a model using too low a project
	distance, but this works...) some code shuffling (mostly to match
	up with a previous version I was comparing against)

2003-07-06 00:50  havoc

	* common.c: renamed GAME_GOODVSBAD2 executable to gvb2

2003-07-06 00:49  havoc

	* cl_particles.c: reverted RunParticleEffect appearance in
	non-GOODVSBAD2 mode because they were far too different looking

2003-07-06 00:48  havoc

	* pr_cmds.c: allow traceline to take unusual values for nomonsters
	parameter again (like original quake traceline)

2003-07-03 18:36  havoc

	* lhnet.c: because gethostbyname("0.0.0.0") fails in windows, the
	fallback was being called and it was broken, replaced it with a
	working one based on sscanf

2003-07-03 16:56  havoc

	* lhnet.c: fix htons warnings in MSVC (thanks to Tomaz for
	reporting this, apparently MSVC warns about passing int to
	functions taking unsigned short)

2003-07-03 16:40  havoc

	* r_explosion.c: fixed numerous bugs with explosion hull shape (now
	looks consistently correct for the first time ever)

2003-07-03 14:23  havoc

	* darkplaces.dsp: Tomaz updated the darkplaces project file
	(thanks!)

2003-07-03 00:01  havoc

	* snd_dma.c: ambients should be forced to loop as well

2003-07-02 23:59  havoc

	* snd_dma.c, snd_mix.c, sound.h: sounds now follow their owner (so
	riding a lift doesn't leave the sound at the start position, for
	example) static sounds now automatically loop even if they have no
	cue list

2003-07-02 17:45  havoc

	* server.h, sv_main.c, sv_user.c: got rid of sv_predict because it
	caused too many problems with mods trying to have multiple entities
	attached to eachother

2003-07-01 22:58  havoc

	* snd_dma.c, snd_null.c, sound.h: added snd_staticvolume to
	snd_null.c fixed prototype of SND_Spatialize in sound.h

2003-07-01 22:48  havoc

	* cd_linux.c, cd_win.c, chase.c, cl_particles.c, cmd.c,
	gl_backend.c, gl_rmain.c, host.c, host_cmd.c, jpeg.c, menu.c,
	sbar.c, snd_dma.c, snd_mem.c, vid_glx.c, vid_shared.c, vid_wgl.c:
	added support for GAME_GOODVSBAD2 moved Hostname option from Player
	Setup to server setup menu, and renamed it "Server name" added
	snd_staticvolume cvar to control volume of static sounds

2003-07-01 22:44  havoc

	* common.c, common.h: added GAME_GOODVSBAD2 and GAME_TEU

2003-07-01 20:50  havoc

	* menu.c: redesigned menuplyr handling again - now allocates memory
	for it instead of using a static buffer merged together some
	menuplyr code

2003-07-01 19:26  havoc

	* cl_main.c, cl_parse.c, cl_particles.c, cl_screen.c, gl_rsurf.c,
	model_alias.c, model_alias.h, model_brush.c, model_brush.h,
	model_shared.c, model_shared.h, model_sprite.c, model_sprite.h,
	model_zymotic.h, portals.c, pr_cmds.c, r_light.c, r_shadow.c,
	snd_dma.c, sv_main.c, sv_move.c, sv_phys.c, view.c: changed brush
	model API - now uses function pointers for some of the brush model
	functions (intent to transition over to this completely)

2003-07-01 11:43  havoc

	* cl_main.c, cl_particles.c, gl_backend.c, gl_backend.h, gl_draw.c,
	gl_models.c, gl_rmain.c, gl_rsurf.c, gl_textures.c, glquake.h,
	model_shared.c, model_shared.h, r_crosshairs.c, r_explosion.c,
	r_light.c, r_shadow.c, r_shadow.h, r_sky.c, r_sprites.c, render.h,
	vid_shared.c: redesigned how the renderer handles much of it's
	state (R_Mesh_State turned into R_Mesh_State_Textures - no longer
	handles blendfunc and depthmask and depthtest and vertex pointers
	and so on) batching is gone VAR support is gone (but may make a
	return someday) dynamic shadow volumes are now more optimized
	(removal of unused verts) added a glossary of terminology to the
	start of r_shadow.c added gl_mesh_testarrayelement and
	gl_mesh_testmanualfeeding cvars for testing/debugging purposes in
	the backend (incase vertex array state is a mess) added gl_paranoid
	cvar (enables CHECKGLERROR and verifies geometry before rendering
	it) added gl_printcheckerror cvar (prints location of every
	CHECKGLERROR statement as it executes, for tracking code flow)

2003-07-01 11:32  havoc

	* world.c: extremely minor optimization to linking edicts into area
	grid

2003-06-30 19:59  havoc

	* menu.c: Disable singleplayer menu in Nexuiz (just like
	Transfusion does)

2003-06-28 16:09  havoc

	* sv_phys.c: reverted SV_Physics_Step to exactly match quake
	(shorter though) removed a clear velocity statement in
	SV_Physics_Toss some whitespace cleanup

2003-06-27 13:25  havoc

	* cl_demo.c: fix timedemos (it was not starting the timer because
	it was misjudging what the next frame number is)

2003-06-26 09:51  havoc

	* snd_mem.c: a prototype for the long dead function S_Alloc removed
	(thanks to Vic for mentioning this)

2003-06-26 09:21  havoc

	* cl_parse.c: fix a bug in non-monster interpolation code (it was
	checking RENDER_STEP and doing a really bad job of it too, thanks
	to Vic for reporting this bug)

2003-06-24 08:10  havoc

	* netconn.c: ReceivedMessage now sets lastMessageTime when a valid
	message or ack is received, this fixes the timeout problems (yes,
	all of them)

2003-06-22 03:31  havoc

	* netconn.c: initialize the various server properties when parsing
	an infoResponse incase some are not set

2003-06-22 03:07  havoc

	* lhnet.c, lhnet.h, netconn.c, netconn.h: Forgot to include lhnet
	in the previous commit and tried to abort the commit but apparently
	it was nearly done (which messed up netconn.[ch] such that I could
	not add or delete netconn.[ch], so I deleted that from cvs and
	added it again)

2003-06-22 02:58  havoc

	* cl_demo.c, cl_input.c, cl_main.c, cl_parse.c, cl_screen.c,
	client.h, common.c, common.h, host.c, host_cmd.c, makefile, menu.c,
	menu.h, model_shared.c, model_shared.h, net.h, net_bsd.c,
	net_dgrm.c, net_dgrm.h, net_loop.c, net_loop.h, net_main.c,
	net_master.c, net_master.h, net_udp.c, net_udp.h, pr_cmds.c,
	pr_edict.c, progs.h, quakedef.h, server.h, sv_main.c, sv_user.c:
	This is the network rewrite I've been working on for over a week;
	multiplayer should work through NAT routers now.  A few other
	commits (a new clientcolors extension for example) have snuck their
	way into this commit because they were waiting while the cvs was
	down.

2003-06-22 02:55  havoc

	* world.c: report invalid edicts when attempting to link them

2003-06-21 04:05  havoc

	* zone.c: added developer_memorydebug cvar (does
	CheckSentinelsGlobal on all Mem_Alloc calls)

2003-06-08 21:19  havoc

	* sbar.c: Sbar_UpdateScoreboard was totally unused in quake, it's
	history (as are the arrays it used)

2003-06-07 22:47  havoc

	* host_cmd.c, pr_edict.c, progs.h: fix a couple EDICT_NUM errors
	that often happened when loading savegames with more than 256
	entities

2003-06-07 22:43  havoc

	* host.c: cleaned up Host_Error a bit

2003-06-07 22:42  havoc

	* world.c: fix SOLID_BSP with non-BSP model error that can occur
	after a Host_Error (fixed by using Mod_CheckLoaded)

2003-06-07 12:21  havoc

	* pr_cmds.c, pr_edict.c, progs.h, sv_user.c:
	KRIMZON_SV_PARSECLIENTCOMMAND extension (untested currently!)

2003-06-07 12:20  havoc

	* makefile: no longer uses -Werror on exe builds

2003-06-07 12:19  havoc

	* sys_linux.c: fix an uninitialized variable warning in win32

2003-06-04 12:26  havoc

	* net_dgrm.c: fixed forged packet identification to only care about
	address (not port) and do so in a cleaner way than before

2003-06-04 12:24  havoc

	* gl_rsurf.c: added support for gl_mesh_copyarrays 0 mode in most
	shaders

2003-06-04 12:22  havoc

	* common.c, fs.c, image.c, net_udp.c, r_shadow.c, vid_glx.c, wad.c:
	fixed a bunch of signed/unsigned mismatch warnings in newer gcc
	versions (mostly related to size_t being unsigned)

2003-06-02 22:18  havoc

	* world.c: fixed bug that used bmodel collision geometry on
	non-SOLID_BSP entities (thanks to FrikaC for reporting this bug)

2003-05-28 06:57  havoc

	* server.h, sv_main.c, sv_user.c: got rid of my attempts to delay
	sending the ServerInfo packet until the first message from the
	client, because the ServerInfo packet is already handled by the
	quake reliable message system and thus will be re-sent multiple
	times...  back to the drawing board on my attempts to fix quake
	through NAT routers

2003-05-27 19:00  havoc

	* makefile: apparently -Werr isn't valid in gcc3.2, so switch to
	-Werror

2003-05-26 11:58  havoc

	* cl_screen.c, cl_screen.h, gl_draw.c: 2D art can now be drawn
	using vertex pointers

2003-05-26 11:57  havoc

	* makefile: added back -Werr so warnings are errors

2003-05-26 11:52  havoc

	* r_sky.c: fix some warnings I kept forgetting

2003-05-26 11:20  havoc

	* r_explosion.c: removed directional shading on explosions because
	it was a nuisance to maintain (and strangely they seem to look
	better now) explosion rendering now supports gl_mesh_copyarrays 0

2003-05-26 11:18  havoc

	* gl_models.c: fix a warning caused by the fact vertex pointers are
	now const

2003-05-26 11:17  havoc

	* gl_backend.c, gl_backend.h: vertex pointers are now const

2003-05-26 09:35  havoc

	* gl_backend.c, gl_backend.h, r_sky.c: added R_ScrollTexCoord2f
	(copies while texture coordinates with an offset) added
	multitexture path to skysphere rendering (10% speed gain) and
	modified combine setup in gl_backend to support GL_INTERPOLATE_ARB
	behaving like GL_DECAL added support for gl_mesh_copyarrays 0 mode
	in skysphere rendering (1% speed gain)

2003-05-26 06:25  havoc

	* gl_backend.c, gl_backend.h, r_shadow.c, r_shadow.h: fixed
	realtime lighting bugs with gl_mesh_batching 1 (... by not using
	batching while rendering realtime lighting - I was unable to figure
	out what was causing the problem) some cleanups to realtime
	lighting code (mostly fixing some bugs with incorrect counting of
	meshes/triangles (for r_speeds reports), and optimized out
	unnecessary vertex copying in the final lighting application pass)

2003-05-26 06:23  havoc

	* gl_models.c: no longer uses R_Shadow_VertexBuffer, instead uses
	aliasvert_vertex3f

2003-05-25 18:01  havoc

	* sv_main.c, sv_user.c: fixed connection process again added
	developer prints for changes to sendserverinfo

2003-05-25 15:47  havoc

	* net_dgrm.c: fix an unused variable warning

2003-05-25 15:46  havoc

	* cl_main.c, net.h, net_dgrm.c, net_loop.c, net_main.c, server.h,
	sv_main.c, sv_user.c: some cleanups to hostcache (got rid of
	driver/address stuff and expanded the strings, also increased
	number of cache slots) connecting to a server is now much more
	direct (does not use hostcache) now ignores the address string
	received in server info packets because it's often bogus in dp
	(sorry...  but not really avoidable) slist reports now include the
	address of the server (useful!!) and are much wider (79 characters)
	to give more room for info the NOROUTINGFIX option has been kind of
	merged away, whether the server uses it or not is still optional
	(search for routing fix)

2003-05-25 15:38  havoc

	* makefile.mingw, makefile.mingwcross: no longer needed (makefile
	does it all now)

2003-05-25 15:37  havoc

	* makefile: merged makefile, makefile.mingw (outdated) and
	makefile.mingwcross into one makefile

2003-05-25 15:35  havoc

	* net_master.c: removed rick.cube-sol.net from master server list
	because it's not resolving and was really delaying server lists

2003-05-25 15:33  havoc

	* sys_linux.c, sys_shared.c, sys_win.c: merged dll handling code
	into sys_shared.c because the code in sys_linux.c was for both
	windows and linux, no real point in separating them

2003-05-25 09:26  havoc

	* makefile.mingwcross: fix darkplaces-dedicated.exe building to
	open a console

2003-05-25 09:17  havoc

	* sys.h, sys_linux.c, sys_shared.c, sys_win.c: Sys_Print added to
	handle the output of text to the terminal (since this varies from
	platform to platform and may depend on whether it is dedicated)

2003-05-25 08:48  havoc

	* makefile, makefile.mingwcross, sys_linux.c, sys_shared.c:
	darkplaces-dedicated.exe now builds sys_linux.c (needs new name
	badly!) modified to support windows for purposes of
	darkplaces-dedicated.exe Sys_Printf probably no longer works
	properly with darkplaces.exe (but we'll see) darkplaces.exe should
	now be a proper windows app again (how I got --mwindows in there I
	don't know), so -dedicated may work

2003-05-25 04:59  havoc

	* gl_models.c: alias model fake shadows can now be cached

2003-05-25 04:44  havoc

	* gl_backend.c: fixed a severe bug with pointer_color state
	tracking (no longer checks .colorarray, so you don't have to do the
	GL_Color/GL_UseColorArray call before R_Mesh_State anymore), this
	fixes explosion coloring when using pointer_color for other stuff
	rendered immediately before it fixed a crash when entire
	sequentialchain is emptied while trying to get space for a new
	cache item (this happened!  I can't guess why though)

2003-05-25 04:40  havoc

	* r_explosion.c: simplified explosion rendering a little (probably
	a very minor slowdown, but more maintainable)

2003-05-24 07:53  havoc

	* gl_models.c, r_light.c, r_light.h: alias model (q1/q2/q3)
	rendering now supports gl_mesh_copyarrays 0 (even caches lighting!)
	for a speed boost (enough to compensate for the current loss on
	world rendering), note that only normal rendering uses this so far
	(more rendering functions to upgrade)

2003-05-24 07:48  havoc

	* gl_backend.h: made id_pointer fields of rcachearrayrequest_t
	const (because they'll never be used as pointers anyway)

2003-05-24 07:47  havoc

	* gl_backend.c: disabled various testing code in R_Mesh_CacheArray
	fixed a bug with pointer_color if gl_mesh_floatcolors is false (it
	was incorrectly comparing p to varray_buf_color4f, it should have
	compared it to NULL)

2003-05-24 00:18  havoc

	* vid_wgl.c: possible stability improvement in VID_Shutdown - moved
	ChangeDisplaySettings call after DestroyWindow

2003-05-23 11:38  havoc

	* gl_models.c, model_alias.c, model_alias.h: aliasvertex_t no
	longer exists, models are now stored as arrays of vertex3f,
	svector3f, tvector3f, normal3f cleaned up loaders somewhat (they're
	still nasty as always) now validates elements in mdl model files

2003-05-23 11:36  havoc

	* gl_backend.c, gl_backend.h, gl_rsurf.c: added R_Mesh_CacheArray
	(not yet used by anything, but has been tested with some code in
	gl_rsurf.c), a generic dynamic data caching system intended for
	vertex arrays

2003-05-23 00:43  havoc

	* gl_backend.c, gl_backend.h, gl_rsurf.c, gl_textures.c, r_sky.c:
	added gl_mesh_batching (default on) which merges several meshes in
	a row to reduce overhead of array locking and drawing added
	MESH_VAR and MESH_BATCH defines to allow relevant code to be
	disabled (MESH_VAR is currently disabled because it's somewhat
	broken last I checked) added custom array pointer support in
	R_Mesh_State (MainState and TextureState), this is experimental but
	works fine added gl_mesh_copyarrays (default off) which tells
	renderer code that it should use custom array pointer support
	instead of copying (currently testable on surface rendering - not a
	good use, too many Pointer calls for very little geometry) some
	other cleanups

2003-05-23 00:38  havoc

	* common.c, console.c, console.h: console logging (-condebug) now
	starts earlier in the startup process (just after the filesystem)

2003-05-22 23:58  havoc

	* bspfile.h, model_brush.c, model_shared.c, model_shared.h: more
	preparation for quake2 bsp support

2003-05-22 23:30  havoc

	* sv_phys.c: merged SV_Physics_Client into SV_Physics (not
	difficult)

2003-05-22 23:28  havoc

	* sys_win.c: cleaned up/simplified Sys_Error, now should never get
	in a recursive crash loop, but also lost the timeout on dedicated
	server errors as a result (if engine crashes, the server will leave
	up a dialog eternally until someone closes it)

2003-05-21 05:15  havoc

	* snd_dma.c: renamed "precache" cvar to "snd_precache" because it's
	name was very confusing

2003-05-21 04:24  havoc

	* image.c, image.h, jpeg.c: added support for q2 .wal images (not
	yet tested but suspected as working) cleaned up multiple format
	loader hub, now parses a list of formats things to try cleaned up
	invalid image size detection (now all format loaders check for
	>4096 and <=0 in each axis)

2003-05-21 02:08  havoc

	* model_brush.c, model_brush.h, model_shared.c: beginning to add Q2
	bsp support (Q3 bsp support coming later)

2003-05-21 02:05  havoc

	* world.c: added a note about an id bug with triggers and ignoring
	.owner (the fact they don't)

2003-05-19 00:11  molivier

	* menu.c: Fix Transfusion bug 030429-01 (If you go to the console
	from the options menu, then exit the console, you can't get back to
	the menu)

2003-05-17 03:29  havoc

	* host_cmd.c: fixed a bug with Host_Startdemos_f that caused it to
	never shorten the list of demos (it forgot to clear the remaining
	slots)

2003-05-16 04:34  havoc

	* image.c: corrected call to Image_HasAlpha to be Image_CheckAlpha

2003-05-16 04:10  havoc

	* image.c: replaced a loop that checked for alpha pixels with a
	call to Image_HasAlpha fixed a memory leak on s->maskpixels (due to
	memory pools this leak was probably not too bad)

2003-05-16 04:09  havoc

	* pr_cmds.c: added DP_GFX_SKYBOX and DP_CL_LOADSKY extensions

2003-04-29 09:04  havoc

	* protocol.h: new entity protocol has been canceled due to a fatal
	design flaw only detected today (insufficient data on history of
	entities) added explanation of old entity protocol and how it will
	be revised to use partial entity updates (without breaking
	compatibility with old clients!)

2003-04-26 03:21  havoc

	* cl_main.c, host.c, host_cmd.c, net_dgrm.c, pr_cmds.c, pr_edict.c,
	progs.h, server.h, sv_main.c, sv_phys.c, sv_user.c, world.c:
	reverted dynamic allocation of sv.edicts because there are FAR too
	many broken pointer cases, however shrinking the edict_t to just a
	couple pointers and dynamically allocating the data they point to,
	keeps memory usage way down

2003-04-26 03:19  havoc

	* gl_backend.c: increased default gl_mesh_maxverts to 65536, and
	also increased the limit to that

2003-04-26 03:03  havoc

	* net_udp.c: cleaned up UDP_Init a bit

2003-04-25 07:43  havoc

	* cl_main.c, host.c, host_cmd.c, model_brush.c, net_dgrm.c,
	pr_cmds.c, pr_edict.c, progs.h, server.h, sv_main.c, sv_user.c,
	world.c: sv.edicts (and related things) are now dynamically
	reallocated as more edicts are used no edict_t *'s exist in any
	persistent structures anymore, using edict numbers in all such
	cases (as it turns out the only such structs were client_t in
	server.h and link_t in progs.h) edicts are unlinked before
	reallocation and relinked after reallocation to keep the link_t
	pointers valid

2003-04-25 07:39  havoc

	* net_udp.c: UDP_Init now tries to bind to INADDR_ANY and various
	others in sequence

2003-04-25 05:44  havoc

	* fs.c: pk3 is now case insensitive to match quake3 behavior
	(however pak is still case sensitive) FS_FileExtension has been
	basically rewritten, it was taking the first . in the filename
	(which might even be part of a directory name)

2003-04-23 04:48  havoc

	* pr_execprogram.h: increased runaway loop counter 10x (now 10
	million opcodes before runaway error

2003-04-21 04:27  havoc

	* gl_rmain.c: always do r_shadow_realtime_dlight if
	r_shadow_realtime_world is on

2003-04-21 04:26  havoc

	* cl_main.c: nudge dlights out of walls if they're too close

2003-04-21 03:05  havoc

	* model_alias.c, model_sprite.c: added TEXF_CLAMP flag on model and
	sprite textures (software quake did not support out of bounds
	texcoords, so repeat is clearly unnecessary and even undesirable)

2003-04-19 22:48  havoc

	* keys.c, keys.h, vid_glx.c, vid_wgl.c: thanks to "backslash" for
	submitting a patch to support Intellimouse Explorer's two extra
	buttons (side buttons), I expanded the patch to support up to 10
	mouse buttons (plus mwheelup/mwheeldown) in both GLX and WGL ports.

2003-04-19 22:39  havoc

	* gl_rmain.c: fix flipped sprites

2003-04-18 05:11  havoc

	* gl_models.c, model_alias.c, model_alias.h: reorganized
	aliaslayer_t handling to fix a few bugs fixed md2 models fixed
	skinless models

2003-04-18 05:03  havoc

	* model_shared.c: very minor correction to a comment

2003-04-18 05:03  havoc

	* r_light.c: inlined the only call of R_ModelLightPoint (in
	R_LightModel)

2003-04-18 05:01  havoc

	* cl_particles.c: greatly improved pointfile command, it now shows
	a huge beam crosshair at the site of the leak entity

2003-04-18 04:59  havoc

	* cmd.c: parser can now handle recursive commands (although this
	still doesn't work with the whole Cmd_Argv/Cmd_Argc stuff)

2003-04-18 04:58  havoc

	* cl_demo.c: Fixed bug in record command (it was running a map
	command before getting the demo name, which gets replaced by the
	map command parameter, causing the demo to always be named the same
	as the map)

2003-04-18 04:53  havoc

	* cl_main.c: fix model lighting (pitch was backwards)

2003-04-14 15:23  havoc

	* pr_cmds.c: added some extensions I forgot to put in the list
	before

2003-04-14 05:18  havoc

	* menu.c, net_main.c: removed special cases for transfusion in
	server search messages (now prints gamename)

2003-04-13 20:04  havoc

	* pr_edict.c: expanded stats reporting (when in developer mode) of
	how many entities were processed during loading (now displays
	parsed/inhibited/spawned/died)

2003-04-13 03:45  havoc

	* net_udp.c: expanded UDP_Read and UDP_Write error messages to
	include the function parameters

2003-04-09 21:03  havoc

	* model_brush.c: Mod_FindNonSolidLocation fixed for no map case
	(again)

2003-04-08 01:11  havoc

	* cl_video.c, host_cmd.c: fix two more fs_gamedir mixups (loading
	saved games should now work, as well as video playback)

2003-04-08 01:02  havoc

	* pr_cmds.c: added DP_QUAKE3_MODEL extension (thanks to Elric for
	pointing out the need for this)

2003-04-06 23:40  havoc

	* r_shadow.c: disable use of scissor when stencil is not available
	(sure seems like a driver bug, scissor should work)

2003-04-06 22:31  havoc

	* gl_rmain.c, r_shadow.c: some more minor cleanups bug with dlights
	when not using stencil has not been found yet

2003-04-06 18:45  havoc

	* menu.c: fixed M_ScanSaves to use FS_Open properly

2003-04-06 18:44  havoc

	* snd_mix.c: fixed name of dpavi.wav file to work correctly with
	FS_Open (this is in commented out code though so it doesn't matter)

2003-04-06 18:43  havoc

	* r_shadow.c: forgot to make a couple changes before committing
	this

2003-04-06 18:28  havoc

	* cl_screen.c, gl_rmain.c, gl_rsurf.c, r_light.c, r_shadow.c,
	r_shadow.h: split r_shadow_realtime into r_shadow_realtime_world
	(which requires stencil) and r_shadow_realtime_dlight (which works
	without stencil) one bug remains with scissoring dlights without
	stencil, I'll try to figure out this problem soon

2003-04-06 12:24  havoc

	* model_brush.c, model_shared.h: redesigned surfmesh allocation in
	brush model loader, in preparation for some more drastic changes

2003-04-06 12:23  havoc

	* makefile: release build optimizations changed - removed
	-funroll-loops, added -O9

2003-04-05 16:23  havoc

	* protocol.h: revised EntityFrame4 function prototypes (no I still
	haven't coded this)

2003-04-05 08:53  havoc

	* r_shadow.c: optimized shadow volume generation a bit (only
	projects vertices that are necessary)

2003-04-03 12:56  havoc

	* protocol.h: preparation for a new protocol upgrade to use partial
	frame updates

2003-04-03 12:55  havoc

	* cl_main.c, cl_parse.c, client.h, view.c: got rid of use of eye in
	entity database

2003-04-03 12:49  havoc

	* quakedef.h: added MAX_NETRELIABLE define (currently same as
	MAX_DATAGRAM, but will change someday)

2003-04-03 00:02  molivier

	* cl_screen.c, cl_screen.h, gl_backend.c, gl_backend.h,
	gl_textures.c, jpeg.c, jpeg.h, menu.c: Added support for JPEG
	screenshots. You can toggle that with the cvar
	"scr_screenshot_jpeg" or the option menu. Note that you'll need the
	libjpeg library DLL.

2003-04-02 16:11  havoc

	* host.c, host_cmd.c, sv_main.c, sv_user.c: fix for server dying
	when someone times out some other cleanups (some Sys_Printf calls
	turned into Con_Printf, some comments added about DropClient calls)

2003-04-02 10:51  havoc

	* protocol.c: fix for incorrect rounding of vertex locations when
	using RENDER_LOWPRECISION (now it always rounds to nearest)

2003-04-01 16:22  havoc

	* pr_cmds.c, pr_exec.c, pr_execprogram.h: cleaned up pr_builtins
	array (now uses NULL instead of PF_fixme) and now reports builtin
	number if an unknown builtin is called fixed name of PF_setcolor
	(was setcolors)

2003-04-01 16:20  havoc

	* net_main.c: fixed NET_SendToAll

2003-03-31 13:46  havoc

	* image.c: added some commented out code to
	Image_HeightmapToNormalmap explaining how to do heightmap to
	normalmap conversion a little bit differently (very insignificant
	difference, purely code for those who care)

2003-03-31 13:43  havoc

	* pr_cmds.c: QSG_FILE removed because some mods use the old builtin
	numbers and think that QSG_FILE would provide them (FRIK_FILE
	remains, which uses the new numbers already)

2003-03-30 11:19  havoc

	* cl_parse.c: dlights now cast shadows in realtime lighting mode
	again (actually they already did, but it wasn't working for world,
	because world didn't have the shadow flag set)

2003-03-30 11:18  havoc

	* snd_dma.c, snd_mem.c, sound.h: no longer complains about missing
	ambient liquid sounds in nexuiz

2003-03-30 00:40  havoc

	* dpvsimpledecode.c: removed a couple unused hz_bitstream_read
	functions

2003-03-29 12:02  havoc

	* gl_models.c: fix zym model rendering (wrong vertex padding)

2003-03-29 10:58  havoc

	* fs.c, fs.h: Elric added deflated file support for pk3 archives
	(in other words: compressed pk3 now work), even with FS_Seek
	support, I'm amazed, thanks Elric! :)

2003-03-28 08:45  havoc

	* cl_main.c, cl_particles.c, common.c, common.h, gl_rmain.c:
	corrected the misspelled name GAME_NEXIUZ (and related things) to
	GAME_NEXUIZ (and related things)

2003-03-28 07:47  havoc

	* net_udp.c: UDP_StringToAddr did not work with less than full
	x.x.x.x:x specifications, now it supports all the stuff
	PartialIPAddress supported (filling in most significant components
	with myAddr, etc) UDP_Read and UDP_Write now log entire packets to
	console if developer_networking is on

2003-03-28 07:45  havoc

	* net_dgrm.c: add support for NAT fix in the client (by no longer
	checking the port a connection accepted came from)

2003-03-28 07:43  havoc

	* net.h, net_main.c: added developer_networking cvar

2003-03-28 05:27  havoc

	* net_dgrm.c: Thanks to faded (of the tenebrae team) for provoking
	me to recite a lengthy explanation of NAT nightmares, and realize
	this very simple fix for NQ server support of clients behind NAT
	routers (send first message from the player socket instead of the
	accept socket)

2003-03-28 05:24  havoc

	* host.c: changed behavior of SV_DropClient a bit (now calls
	ClientDisconnect QC function even if crash is true, as it's the
	client being harshly dropped, not the server dying), and made the
	final svc_disconnect an unreliable message

2003-03-28 05:22  havoc

	* net_main.c: refactored NET_SendToAll, it is debatable whether it
	is more readable or not, but it works the same, and is shorter, and
	I think it is slightly more understandable than the mess it used to
	be

2003-03-28 02:31  havoc

	* net_dgrm.c, net_master.c, net_master.h: net_inetslist (and the
	corresponding menu as well) now work without being an active server
	(dfunc.controlSock is now used for all transactions involved, and
	since there is always one of those...)

2003-03-28 02:29  havoc

	* common.c, common.h: MSG_ReadFloat now checks if the message has
	enough bytes for a float before trying to decode it (why id forgot
	this I don't know) added MSG_ReadBigShort, MSG_ReadBigLong,
	MSG_ReadBigFloat, MSG_ReadBytes renamed MSG_ReadShort to
	MSG_ReadLittleShort, MSG_ReadLong to MSG_ReadLittleLong, and
	MSG_ReadFloat to MSG_ReadLittleFloat added #defines for
	MSG_ReadShort, MSG_ReadLong, and MSG_ReadFloat to use their Little
	versions optimized/cleaned up MSG_Read functions (some are now
	significantly shorter)

2003-03-28 00:37  havoc

	* darkplaces.dsp, makefile.mingw, makefile.mingwcross, net_udp.c,
	net_wins.c: net_wins.c is gone, winsock support merged into
	net_udp.c numerous other cleanups/changes also done to net_udp.c
	(to try to simplify it, hopefully work better, that kind of stuff)
	support for partial IP addresses has been removed (that is you say
	you can't simply type 'connect 1.123' and have it expand to
	xxx.xxx.1.123 where xxx.xxx came from your own IP address, however
	hostnames still work fine) also the automatic changing of the
	hostname cvar according to internet hostname has been removed, so
	servers will be called "UNNAMED" if they don't set it, rather than
	using their internet hostname

2003-03-27 19:33  havoc

	* darkplaces.dsp, makefile.mingw, makefile.mingwcross, net_win.c,
	net_wins.c, net_wins.h: renamed all net_wins.c functions to UDP
	instead of WINS, this allows use of net_bsd.c and net_udp.h instead
	of net_win.c and net_wins.h

2003-03-27 19:23  havoc

	* net_wins.c: removed winsock_initialized counter as there are no
	longer two things initializing winsock (wins and wipx), only one

2003-03-27 19:21  havoc

	* net_wins.c: no longer dynamically loads portions of wsock32.dll
	(because it required static linking anyway for other parts, no
	point)

2003-03-27 19:18  havoc

	* net_win.c: forgot to remove #include "net_wipx.h"

2003-03-27 19:04  havoc

	* darkplaces.dsp, makefile.mingw, makefile.mingwcross, net_win.c,
	net_wipx.c, net_wipx.h: removed winsock ipx support

2003-03-27 04:25  havoc

	* vid_null.c: Fix for win32 dedicated servers (oh it still doesn't
	compile, other problems remain with sys_win.c, but this one thing
	has been annoying me long enough)

2003-03-27 00:58  havoc

	* fs.c: Elric's pk3 support (no support for compressed files yet,
	that's still to come)

2003-03-27 00:58  havoc

	* common.c, common.h: Elric added BuffBigLong, BuffBigShort,
	BuffLittleLong, and BuffLittleShort functions intended for reading
	from misaligned locations in file memory buffers (these read as
	bytes rather than entire numbers, so memory misalignments are not a
	problem on Sparc and certain other CPUs)

2003-03-27 00:04  havoc

	* pr_cmds.c, pr_edict.c: added FRIK_FILE (aka QSG_FILE) extension,
	this brings string handling and text file access to the QuakeC
	support (note: files go in gamedir/data/)

2003-03-27 00:02  havoc

	* mathlib.c, mathlib.h: added Math_atov function (ascii to vector),
	tries to parse any imaginable vector (even badly formatted ones
	with varying numbers of spaces)

2003-03-27 00:01  havoc

	* fs.c: create directories when opening any file for writing,
	because it's a real pain having to do it elsewhere

2003-03-22 02:23  havoc

	* cl_parse.c, gl_rmain.c, render.h: got rid of R_NewMap, directly
	calls R_Modules_NewMap instead

2003-03-22 02:22  havoc

	* cl_main.c: fix decals bug introduced by transition to matrix use

2003-03-21 13:54  havoc

	* server.h, sv_phys.c, sv_user.c: added more SV_CheckVelocity calls
	on players for safety sake

2003-03-21 13:52  havoc

	* r_shadow.c: Thanks to IceDagger for pointing out this important
	optimization to multipass specular rendering - removes one pass
	(dropping from 6 to 5 passes on GF2, 5 to 4 passes on GF3/Radeon)
	by squaring specular even on the first pass

2003-03-21 13:47  havoc

	* cd_linux.c, cd_win.c, cl_demo.c, cl_particles.c, cl_screen.c,
	cl_video.c, client.h, cmd.c, common.c, common.h, console.c, cvar.c,
	cvar.h, darkplaces.dsp, dpvsimpledecode.c, fs.c, fs.h,
	gl_textures.c, glquake.h, host.c, host_cmd.c, image.c, jpeg.c,
	keys.c, keys.h, makefile, makefile.mingw, makefile.mingwcross,
	menu.c, model_brush.c, model_shared.c, net_dgrm.c, net_main.c,
	palette.c, pr_edict.c, progs.h, quakedef.h, quakeio.c, quakeio.h,
	r_shadow.c, snd_mem.c, snd_mix.c, sv_main.c, sv_user.c, sys.h,
	sys_shared.c, wad.c, wavefile.c, wavefile.h: This is a patch from
	Elric greatly cleaning up the filesystem portions of the engine,
	and partially prepares the engine for .pk3 support (yay), this also
	removes support for gzipped files (but that had been disabled for
	months anyway)

2003-03-14 20:54  havoc

	* cl_main.c, cl_particles.c, cl_screen.c, cl_screen.h, cl_video.c,
	gl_backend.c, gl_backend.h, gl_draw.c, gl_models.c, gl_rmain.c,
	gl_rsurf.c, mathlib.h, model_alias.c, model_alias.h, model_brush.c,
	model_brush.h, model_shared.c, model_shared.h, portals.c,
	r_crosshairs.c, r_explosion.c, r_light.c, r_shadow.c, r_sky.c,
	r_sprites.c, render.h: varray_* rewritten to remove padding
	(varray_vertex3f, varray_texcoord2f, varray_texcoord3f,
	varray_color4f now exist), this required changes to a huge amount
	of code (but netted a 30% speed gain typically) fixed some various
	bugs added voodoo1/2 support in realtime lighting engine (well,
	except for the fact it still requires stencil, which voodoo1/2
	don't have, this will be addressed later when world lights and
	dlights are independently controlled) changed lightning beams a bit
	(they're now white) and due to a request I added support for
	r_lightningbeam_qmbtexture (loads textures/particles/lightning.pcx
	and knows approximately how to use it, I recommend changing
	r_lightningbeam_repeatdistance to make it look right)

2003-03-14 20:53  havoc

	* sv_main.c: added loading of .ent files if found (overriding
	entities in bsp) added sv_entpatch cvar (to allow disabling the
	feature)

2003-03-13 08:10  molivier

	* makefile, makefile.mingw, makefile.mingwcross: Makefiles
	cleanups: r_explosion.o was declared twice in all Makefiles;
	removed some commented-out commands; diff reduction between
	makefile and makefile.mingwcross; forgot to call builddate
	previously; strip was even called on non-release binaries.

2003-03-12 07:38  havoc

	* gl_textures.c: fix for 16bit textures looking awful (bug in the
	alpha check for 8bit)

2003-03-09 23:05  molivier

	* matrixlib.c, menu.c, net.h: Fixed a MSVC6 warning in matrixlib.
	Added a "Public server" yes/no line in the server creation menu.
	Removed a duplicated cvar declaration in "net.h".

2003-03-09 12:33  havoc

	* gl_backend.c: Vic informed me of the AGP settings (0-0.25,
	0-0.25, 0.25-0.75) and video memory settings (0-0.25, 0-0.25,
	0.75-1) for use with GL_NV_vertex_array_range, they seem to have no
	effect but the defaults have been updated (to 0.2, 0.2, 0.7) to
	choose AGP

2003-03-09 08:42  havoc

	* gl_backend.c, glquake.h, vid.h, vid_glx.c, vid_shared.c:
	GL_NV_vertex_array_range support added, but disabled by default
	because for some reason it's halving my framerate rather than
	making it faster

2003-03-09 03:38  havoc

	* cl_main.c, cl_particles.c, gl_backend.c, gl_backend.h, gl_draw.c,
	gl_models.c, gl_rmain.c, gl_rsurf.c, r_crosshairs.c, r_explosion.c,
	r_light.c, r_shadow.c, r_shadow.h, r_sky.c, r_sprites.c: changed
	R_Mesh_ system (again), now uses R_Mesh_GetSpace to set up varray_*
	pointers, then fills in the data, then calls R_Mesh_Draw (this can
	be done repeatedly, but vertex data should *NOT* be modified after
	the first call)

2003-03-09 03:19  havoc

	* cl_parse.c, model_brush.c, model_brush.h:
	Mod_FindNonSolidLocation now takes a radius and can output to a
	different vector than the input (purpose: the sphere is nudged out
	of any surfaces in the area, this makes realtime lighting look a
	lot better as the lights aren't too close to the surface)

2003-03-07 01:34  havoc

	* gl_draw.c, host.c, menu.c, menu.h, palette.c, palette.h, vid.h,
	vid_glx.c, vid_null.c, vid_shared.c, vid_wgl.c: menu.c - changed
	M_DrawSlider to take a value and a min/max range, now prints the
	current value of the cvar as well menu.c, menu.h, gl_draw.c - added
	new color control options menu (the gl_draw.c change is merely
	adding a "ditherpattern" texture) menu.c - added "Delay refresh
	(faster)" to options menu (gl_delayfinish cvar) menu.c - added
	"Game Speed" to options menu (slowmo cvar) vid_wgl.c, vid_glx.c,
	vid_null.c, vid_shared.c, vid.h, palette.c, palette.h, host.c -
	gamma system redesigned (VID_SetGamma now takes ramps, VID_GetGamma
	added, other cruft removed), moved VID_UpdateGamma to vid_shared.c,
	gamma is now turned off when darkplaces is minimized in X11
	(unmapped), and when it's window is not active in Windows as well
	vid_wgl.c - trailing whitespace fixed vid_shared.c - added
	v_color_enable, v_color_black_[rgb], v_color_grey_[rgb], and
	v_color_white_[rgb] cvars as another way to adjust color settings
	gl_draw.c - added support for v_color_* cvars, removed support for
	darkening screen (not possible to do in color) vid_glx.c - got rid
	of unfinished X11 colormap based gamma code (using XF86 VidMode
	extension instead)

2003-03-07 01:33  havoc

	* r_shadow.c: unfinished beginnings of support for voodoo1/voodoo2
	class paths for realtime lighting (no shadows however)

2003-03-07 01:31  havoc

	* model_brush.c: now uses TEXF_FORCELINEAR on lightmaps

2003-03-07 01:31  havoc

	* gl_textures.c, r_textures.h: added TEXF_FORCENEAREST and
	TEXF_FORCELINEAR flags

2003-03-07 01:30  havoc

	* progs.h, world.c: got rid of AreaNode stuff, now only has
	AreaGrid (had to add sv_areagrid_outside node) renamed
	sv_useareanodes to sv_debugmove (inverted behavior)
	SV_CreateAreaGrid now has a minimum grid size
	(sv_areagrid_mingridsize cvar), this greatly improved performance
	in helm18 SV_ClipToAreaGrid and SV_TouchAreaGrid no longer process
	any edicts twice (edict_t now has areagridmarknumber for this
	purpose) increased AREA_GRID from 16 to 512 added SV_ClipToNode
	function to get rid of duplicate code in SV_ClipToAreaGrid

2003-03-07 01:28  havoc

	* gl_backend.c: added gl_delayfinish cvar (default off, used to
	always be on)

2003-03-07 01:27  havoc

	* mathlib.h: added invpow (arbitrary logarithm, finds a power that
	the base number would need to be raised to, to get the requested
	number)

2003-03-07 01:26  havoc

	* cl_screen.c, cl_screen.h: added DrawQ_SuperPic, fixed severe bug
	in DrawQ_Mesh (was not allocating enough room in drawqueue for the
	texcoords), DrawQ_Pic and DrawQ_Fill now use DrawQ_SuperPic

2003-03-07 01:24  havoc

	* cl_parse.c, view.c, cl_main.c, gl_rmain.c: view.c, cl_parse.c,
	cl_main.c, gl_rmain.c - trying to remove all uses of origin,
	angles, or scale fields of entity_render_t view.c, gl_rmain.c -
	viewmodel entities are now processed in view.c instead of
	gl_rmain.c view.c now uses matrix and inversematrix for view damage
	kicks
	
	what this means: the QC feature viewmodelforclient now works

2003-03-07 01:23  havoc

	* matrixlib.c, matrixlib.h: added Matrix4x4_OriginFromMatrix, and
	Matrix4x4_ScaleFromMatrix

2003-03-04 23:20  havoc

	* makefile.mingw: got an email about this being out of date, fixed

2003-03-01 23:20  havoc

	* r_shadow.c: changed gloss behavior, now darkens light intensity
	(to 25% of normal) instead of assuming gloss texture is dim, this
	is consistent with tenebrae behavior, inconsistent with doom3
	behavior (sigh...), this makes OgrO's model skins look a lot better
	no longer spews 'refusing to create light' warnings when loading
	map light entities that actually aren't lights at all

2003-03-01 23:18  havoc

	* model_alias.c: fix external model skins (they weren't rendering)

2003-03-01 17:30  havoc

	* cl_particles.c, host.c, model_brush.c, sys_shared.c: changed lots
	of printf to Con_Printf removed some trailing whitespace

2003-02-28 03:31  havoc

	* gl_backend.c: fix improper handling of overbright pixels when
	saving screenshots

2003-02-28 03:28  havoc

	* gl_models.c, gl_rmain.c, gl_rsurf.c, mathlib.c, mathlib.h,
	model_alias.c, model_brush.c, model_shared.h, portals.c,
	r_shadow.c, r_shadow.h: lights now have an orientation (this isn't
	editable yet, and is infact not really supported for rotated lights
	at the moment, their bbox would need to be rotated) lights now use
	bbox culling instead of radius (because they aren't round in 2D
	texture mode) fixed LOTS of light culling bugs (particularly with
	surface selection) fixed scissor to be more efficient (smaller)
	when easily done (entirely infront of view) and fixed some bugs got
	rid of ShadowSphere code in gl_rmain.c (it was not used) added back
	RadiusFromBounds (and optimized it) and added
	RadiusFromBoundsAndOrigin removed trailing whitespace in mathlib.c
	added BoxesOverlap macro to mathlib.h fixed a portal-flow bug when
	a light lies directly inside a portal polygon (now checks both
	leafs involved, very mild search tolerance for leafs around the
	light) added back 3d attenuation texture (true spherical lights
	make a return, r_shadow_texture3d cvar controls this) fixed
	light-bleeding in attenuation textures at the edges (fixed a bug in
	the biasing during texture generation, now the edge is always black
	as it should be) realtime lighting texture generation
	(attenuation/normalizationcubemap) now has some macros for more
	easily adjusting texture resolutions reduced resolution of
	attenuation and normalization textures added a bunch more rendering
	paths for diffuse and specular lighting, to reduce number of passes
	in a few cases (and allow use of 3D attenuation texture)

2003-02-28 03:27  havoc

	* protocol.h: some added structures in in preparation for another
	protocol version bump (to add partial entity updates to avoid
	kicking people off server when packet buffer fills up in a single
	frame - yes this means rate capping and such will be possible)

2003-02-28 03:09  havoc

	* cl_parse.c: fix chthon lightning (ugh, how did I manage to use
	polygon lightning for this, I made polygon lightning optional per
	beam for this very reason!)

2003-02-26 16:00  havoc

	* gl_textures.c, glquake.h, vid_shared.c: changed TEXF_CLAMP to use
	GL_CLAMP_TO_EDGE (GL_EXT_texture_edge_clamp or
	GL_SGIS_texture_edge_clamp) instead of GL_CLAMP because it's a more
	useful behavior all-round, also fixed normalization cubemap on
	non-NVIDIA cards by doing this (I was properly using GL_CLAMP for
	attenuation texture, but not for normalization cubemap... *slaps
	self*)

2003-02-26 04:47  havoc

	* r_shadow.c: adjustable r_shadow_projectdistance for testing
	(trying to identify Radeon bug)

2003-02-25 17:41  havoc

	* world.c: Too fine an AREA_GRID seems to be dropping performance
	in normal quake maps (I hope this fixes the performance).

2003-02-21 01:24  havoc

	* progs.h, world.c: added new method of culling irrelevant entity
	collisions - a grid of areas the areanode system still lingers
	because it can cope with things the grid can not (entities outside
	the grid, or too large for the alloted 16 grid links per entity)

2003-02-21 01:22  havoc

	* mathlib.h: added VectorMultiply (not used by anything, but for
	completeness...)

2003-02-21 01:22  havoc

	* cl_parse.c: disable step interpolation unless entity is
	MOVETYPE_STEP

2003-02-20 01:22  havoc

	* collision.c, collision.h, model_brush.c, model_brush.h, world.c:
	optional polygon collisions, not ready for practical use yet, also
	support for brush collisions not terribly optimized (fast enough
	though)

2003-02-20 01:20  havoc

	* sv_main.c: added #include "portals.h"

2003-02-20 01:17  havoc

	* net_udp.c: some minor cleanup of PartialIPAddress (and some
	comments about how stupid it is) and a comment about hostname
	coming from network address being stupid, and some whitespace

2003-02-20 01:15  havoc

	* host_cmd.c, pr_cmds.c, pr_comp.h, pr_edict.c, pr_exec.c,
	pr_execprogram.h, progs.h: now counts (very approximate) cost of
	builtin functions called by progs, profile command reports this in
	addition to the instructions count, also profile now reports a
	whole list, not just the top 10

2003-02-20 01:13  havoc

	* net_main.c: simplified "connect local" a bit

2003-02-20 01:12  havoc

	* portals.c, portals.h, quakedef.h, r_shadow.c: optional portal
	based determination of lit surfaces (good speed gain, enough to
	make dpdm2 somewhat playable, on by default)

2003-02-16 18:59  havoc

	* cl_parse.c: no longer adopt colors from server updates (this
	means demos no longer change your colors, and other such
	annoyances)

2003-02-16 16:58  havoc

	* common.c: improved Com_HexDumpToConsole, it now prints properly
	(not with a data byte on the left side followed by offset number,
	and other sillyness), and also prints a text listing beside the
	hex, it remains the same width as the old hex-only listing.

2003-02-13 17:27  havoc

	* sv_phys.c: optimized some functions like SV_WallFriction and
	SV_FlyMove, no known behavioral changes (the code is a lot simpler
	however)

2003-02-13 17:22  havoc

	* r_light.c: fix some bugs with r_fullbright, no lights, and other
	such cases

2003-02-13 17:17  havoc

	* console.c: added con_notify cvar, which controls how many console
	notify lines are displayed (default 4 like quake, max 32)

2003-02-13 17:16  havoc

	* mathlib.h, matrixlib.c, matrixlib.h: added VectorBlend and
	Matrix4x4_Blend

2003-02-13 17:15  havoc

	* gl_rmain.c: don't crash on NULL model in entity culling

2003-02-12 10:09  havoc

	* makefile: restructured LDFLAGS a bit to make sure libraries come
	last (especially -lm as the very last), also moved
	debugging/profiling flags to be first

2003-02-11 16:11  havoc

	* cl_parse.c: get rid of yet another entity_frame_t on the stack,
	this is the last one, hopefully the last stack overflow

2003-02-11 15:55  havoc

	* protocol.c: fix two more stack overflows on win32 (in one case
	two 3.25mb entity_frame_t structs resided on the stack at once!)

2003-02-11 06:03  havoc

	* sv_main.c: another stack overflow fixed, this one more on the
	order of 300k+?

2003-02-11 05:48  havoc

	* sv_main.c: fixed another stack overflow on win32, apparently a
	64k packet buffer on the stack causes a stack overflow - yeesh
	win32 stack is pathetic

2003-02-10 15:55  havoc

	* cl_parse.c: fix win32 stack overflows in CL_ParseServerInfo, it
	was choking on the sheer quantity of memory used by model and sound
	precache names

2003-02-10 13:04  havoc

	* cl_main.c: added cl_noplayershadow cvar to allow disabling player
	shadow

2003-02-10 13:02  havoc

	* sv_main.c: almost lost this very important part of the MAX_EDICTS
	commit

2003-02-10 06:46  havoc

	* cl_demo.c, cl_parse.c, net.h, progs.h, protocol.h, quakedef.h,
	server.h, sv_main.c, sv_phys.c: MAX_EDICTS has changed to 32768. 
	Yes this is madness.  Thanks to banshee for prompting this
	necessity to run his map helm10000! Sound protocol has been
	upgraded to be able to send 16bit entity numbers (this allows going
	beyond the old 8192 limit) MAX_ENTITY_DATABASE is now dependent on
	MAX_EDICTS MAX_DATAGRAM increased from 8000 to 65536 MAX_MSGLEN has
	been removed (now uses MAX_DATAGRAM) NET_MAXMESSAGE is now
	dependent on MAX_DATAGRAM SV_PushMove's list of moved entities has
	been moved into sv.moved_edicts (just an array of pointers) and
	their original origin and angles have been moved into edict_t, this
	avoids stack crashes on win32 with the new edict limit increased
	MAX_MODELS and MAX_SOUNDS from 1024 to 4096 (this is not really
	necessary but a good idea)

2003-02-01 06:20  havoc

	* makefile.mingwcross: makefile to use for cross compiling mingw
	builds

2003-02-01 00:42  havoc

	* r_sky.c: fixed targa quake sky loading

2003-01-30 23:27  havoc

	* cl_main.c, cl_parse.c, client.h: chthon lightning no longer uses
	beam polygons lightning beams are now relative to their owner
	entity (if they have one), this makes aiming lightning look
	instantaneous for the first time ever in quake

2003-01-30 23:24  havoc

	* vid_shared.c: limited pitch range to that of quake

2003-01-27 18:19  havoc

	* cl_main.c: corrected comment again, indicating that the offset
	for polygon 3 is in the bottom right, not in the top left

2003-01-27 18:14  havoc

	* cl_main.c: corrected numbering of polygons in comment (oops)

2003-01-27 18:13  havoc

	* cl_main.c: added a lot of comments to lightning beam code

2003-01-27 01:38  warp

	* pr_exec.c, pr_execprogram.h, progs.h: The gcc 2.95 problem was in
	fact OP_STORE_V doing nasty things to numbers that were not quite
	'valid' floats, so we now just copy as ints.  This allows us to
	make the string handling /much/ cleaner again.

2003-01-26 23:37  havoc

	* makefile: fixed some very ewww bugs (a few .c files made their
	way into the .o lists)

2003-01-26 23:36  havoc

	* r_shadow.c: corrected rtlights loading of cubemapname (stupid
	typo)

2003-01-26 18:54  havoc

	* cl_main.c, cl_screen.c, gl_rmain.c, gl_rsurf.c, r_shadow.c,
	r_shadow.h: lightning beams have been replaced with a polygon
	effect which renders faster than the model effect and looks...	oh
	umm... about 100x better, old effect still available -
	cl_beampolygons 0 to go back to models - some r_lightningbeam_*
	cvars added for tweaking new effect r_speeds now reports some
	realtime lighting info shadowless light support added
	(unsuccessful) attempt to fix r_drawportals by moving the call to
	happen whether portal rendering was used or not comment about
	possible optimization to shadow volumes added (rather, inverted
	light volumes and how to get maximum performance from them) light
	styles are now checked for validity (must be in the right number
	range) tiny cleanup to cubemap name handling (cubemaps are still
	not actually supported) r_editlights_rtlightcolorscale and
	sizescale are now applied only in LoadWorldLights and
	SaveWorldLights, not in light creation (also somewhat to compensate
	for this fact, .lights loading has been tweaked to double the
	brightness) torch light colors changed (more orange)
	r_editlights_spawn no longer takes parameters r_editlights_edit now
	has subcommands instead of setting all properties, the commands
	are: origin, originx, originy, originz, move, movex, movey, movez,
	radius, color, style, cubemap, shadows r_editlights_toggleshadow
	added (useful for point and click shadow toggling) display overlay
	now shown when pointing at a light in editing mode, indicating all
	properties of the light

2003-01-23 12:10  havoc

	* cl_main.c, gl_rmain.c, protocol.h: entity shadow casting is now
	optional per entity (EF_NOSHADOW added), and special entities
	(static entities like torchs, and tempentities like beams) do not
	cast shadows intermission player does not cast shadows and the
	cameraman in Nehahra movie and cinematics no longer casts shadows

2003-01-23 11:34  havoc

	* menu.c: added resolutions 320x240, 400x300, 1152x864, 1280x1024,
	1600x1200, 1792x1344, 1920x1440, 2048x1536

2003-01-21 16:49  havoc

	* cl_parse.c: reduced intensity and radius of teleport flash

2003-01-21 16:42  havoc

	* pr_cmds.c: removed allsolid check from droptofloor

2003-01-21 16:42  havoc

	* r_shadow.c: turned off mipmapping on attenuation texture

2003-01-16 15:53  havoc

	* r_shadow.c: works with NULL worldmodel fixed overbright lighting!
	 (light flickering is now smooth and everything) added
	r_editlights_rtlightssizescale and r_editlights_rtlightscolorscale
	which scale light properties when loading as well as saving (to
	undo the change - this can be exploited to modify all lights in the
	level) reduced used area of attenuation texture a little to ensure
	black edges changed defaults for attenuation texture settings and
	rtlights sizescale/colorscale to greatly improve performance while
	still looking good now defaults to no fake bumpmapping on walls
	(saves texture memory and looks better to me)

2003-01-15 05:21  havoc

	* model_brush.c: changed a debugging notice about texture loading

2003-01-15 05:13  havoc

	* gl_rsurf.c: now checks for NULL worldmodel

2003-01-15 05:12  havoc

	* image.c: now prints image size (was printing garbage before)

2003-01-15 05:12  havoc

	* mathlib.c: tiny cleanup to RotatePointAroundVector (uses a
	VectorCopy instead of 3 lines)

2003-01-15 05:09  havoc

	* model_shared.c: fixed bumpmapping!  now looks correct

2003-01-15 05:05  havoc

	* pr_exec.c: expanded string table offset table from 1024 to 65536,
	there must be a better solution than this though...  this fixes
	savegame loading (which allocates lots of negative string offsets)

2003-01-15 05:01  havoc

	* zone.c: added developer_memory cvar (default off) to decide
	whether to print memory debugging messages if developer is on

2003-01-15 04:59  havoc

	* gl_rmain.c: now checks if worldmodel is NULL again, some comment
	cleanups and clarifications

2003-01-15 03:40  havoc

	* cl_parse.c: cleanup of precache messages and assorted comments

2003-01-06 06:28  molivier

	* menu.c: E4M9 was added to the Transfusion map list

2002-12-24 15:00  havoc

	* image.c: loadimagepixels is a little cleaner now (yes made
	cleaner by goto...) and dprints info about loaded images critical
	bug in image_loadskin fixed (s->basepixels_width and height were
	not being set)

2002-12-24 14:59  havoc

	* gl_textures.c: detect bogus texture upload attempts and print the
	info to console

2002-12-22 14:56  havoc

	* gl_rmain.c, gl_rsurf.c, image.c, image.h, model_alias.c,
	model_brush.c, model_brush.h, model_shared.c, model_shared.h,
	palette.c, palette.h, r_shadow.c, r_shadow.h: unified model
	skinframe loaders used for mdl, md2, md3, and bsp textures (both
	external and internal where applicable) imageskin_t and
	image_loadskin/image_freeskin functions added to image.[ch] for use
	by the unified skinframe loaders added palette_nocolormap split
	r_shadow_bumpscale cvar into r_shadow_bumpscale_bumpmap (for _bump
	textures) and r_shadow_bumpscale_basetexture (self explanatory) now
	loads _norm normalmap textures (tenebrae compatibility) _nmap
	normalmap texture support removed (it was broken in the previous
	release and I don't need to bog down the texture loader with even
	more unnecessary names) r_shadow_lightattenuationpower added
	(default 2, to leave it looking identical to previous versions,
	this controls the falloff curve of light) renamed detailtextures
	array to mod_shared_detailtextures and moved it and related code to
	model_shared.[ch] removed progs/missile.mdl shadow casting check
	(in r_shadow_realtime mode) I had forgotten to remove before
	committing last time

2002-12-11 09:51  molivier

	* net_udp.c: Some stupid Linux machines (i.e. Mandrake) seem to
	ignore their own network properties; in this case, we use the
	loopback address as the default one. Also, fixed an inoffensive bug
	when binding the UDP control socket.

2002-12-10 19:06  havoc

	* gl_backend.c, glquake.h, vid_shared.c: I guess those
	glLoadIdentity calls were more important than expected

2002-12-09 04:37  havoc

	* gl_backend.c, glquake.h, vid_shared.c: removed glLoadIdentity
	calls (they were all useless where they were used) commented out
	unused GL functions

2002-12-09 04:35  havoc

	* cl_particles.c: added Electro's smoke trail tweaks decals now
	follow the bmodel they stuck to

2002-12-03 02:16  molivier

	* matrixlib.c: Removed some warnings in MSVC6

2002-12-03 02:15  molivier

	* menu.c: Updated Transfusion map list

2002-12-02 12:06  havoc

	* gl_draw.c: fix textured DrawQ_Fill problem when DrawQ_Fill is the
	first 2d primitive rendered (thanks Tomaz)

2002-12-01 20:52  havoc

	* cl_particles.c: another bugfix for WORKINGLQUAKE code

2002-12-01 17:55  havoc

	* model_alias.c, model_alias.h, model_shared.c, model_shared.h: md3
	model support and some cleanups to skin loading and other things in
	the mdl and md2 loaders md3 tags are not loaded yet

2002-12-01 17:53  havoc

	* net_main.c: beginnings of some proper server list code, commented
	out for now

2002-12-01 17:52  havoc

	* net_dgrm.c, net_master.c: changed master server list around a bit
	(added rick.cube-sol.net and my master server as well) master
	server list can now have gaps ipaddr is now parsed from the
	getserversResponse properly (thanks Rick) now reports port number
	in developer print for sending messages to master servers

2002-12-01 17:43  havoc

	* r_shadow.c: reverted to fast version of trianglefacinglight code,
	as it was found to be a speed gain in benchmarks compared to the
	light radius checking version fixed an unitialized variable warning

2002-12-01 17:33  havoc

	* image.c, image.h: added loadtextureimagebumpasnmap

2002-12-01 17:31  havoc

	* gl_rsurf.c: water moves around again

2002-12-01 17:28  havoc

	* gl_models.c: optimized single frame lerp case removed
	FetchSkinFrame mesh rendering loop now... advances the mesh

2002-12-01 17:25  havoc

	* gl_rmain.c: cleaned up shadow volume culling somewhat added
	r_shadow_cull cvar to decide whether or not to apply shadow volume
	culling

2002-12-01 16:42  havoc

	* common.c, common.h: renamed and altered SZ_HexDumpToConsole to be
	Com_HexDumpToConsole which takes a qbyte * and a size, instead of a
	sizebuf_t added SZ_HexDumptoConsole which just calls
	Com_HexDumpToConsole

2002-12-01 12:08  havoc

	* darkplaces.dsp, matrixlib.h: fix compiling problems in MSVC
	(thanks Tomaz)

2002-12-01 00:28  havoc

	* cl_particles.c: a few more glquake and glqwcl compatibility fixes

2002-11-30 20:40  havoc

	* cl_particles.c: added a simplified CL_TraceLine in the
	WORKINGLQUAKE code and enabled particle collisions in WORKINGLQUAKE

2002-11-30 01:44  havoc

	* cl_particles.c: decals added back due to popular demand,
	currently not at all optimized (they're just particles) and not
	clipped to surfaces cl_decals 1 to enable (this is saved to
	config), cl_decals_time and cl_decals_fadetime change settings for
	them (these are also saved to config) redesigned particle additive
	flag to be a blend mode number (PBLEND_ALPHA, PBLEND_ADD, or
	PBLEND_MOD - for decals), lots of special hacks for the nifty new
	PBLEND_MOD mode

2002-11-28 16:33  havoc

	* vid_shared.c: -width and -height can now be used alone (instead
	of having to use both) for better compatibility with stock glquake
	behavior

2002-11-27 19:41  havoc

	* gl_models.c, model_alias.c, model_alias.h, model_shared.h:
	mdl/md2 transitioned to meshes

2002-11-27 18:33  havoc

	* gl_models.c, model_alias.c, model_alias.h, r_light.c: most of the
	new alias mesh system is in place now...  reversed lighting
	direction in R_LightModel because it was backwards (weird...)

2002-11-26 16:22  havoc

	* gl_models.c, model_alias.c, model_alias.h, model_shared.h:
	changed format of aliasvertex_t to use floats (hopefully this is a
	speedup, it sure bloats memory use - 36 bytes each, compared to 4
	bytes in mdl/md2) corrected scale for md3 vertices mentioned in
	header (md3 is still not supported yet) added some unfinished mesh
	structures to begin support for md3

2002-11-26 13:01  havoc

	* model_alias.h: cleaned up md3 structs

2002-11-26 12:55  havoc

	* model_alias.c, model_shared.h: removed model_t mdlmd2data_frames
	(no longer needed)

2002-11-26 12:49  havoc

	* gl_models.c, mathlib.h, model_alias.c, model_alias.h,
	model_shared.h: mdl and md2 vertices are now stored in a different
	structure called aliasvertex_t, it has all the features of mdl, md2
	and md3 formats and simplifies interpolation, it also has
	precomputed texture vectors for faster realtime lighting.  normals
	are no longer interpolated if not needed (fake shadows and shadow
	volumes do not need them) added VectorM, VectorMAM, VectorMAMAM and
	VectorMAMAMAM macros to make aliasvertex_t interpolation code more
	readable

2002-11-26 12:38  havoc

	* model_shared.c, model_shared.h: BuildTriangleNeighbors now
	detects edges shared by three triangles, fixes weird shadow bugs in
	a few places

2002-11-24 17:16  havoc

	* console.c, keys.c, keys.h, vid_glx.c, vid_wgl.c: most of Q2's
	keyboard handling ported over - what this means: keypad is now
	separately bindable (bind kp_pgup and such)

2002-11-24 17:08  havoc

	* model_alias.h: reverse engineered md3 format and wrote struct
	declarations (this is *NOT* based on Q3 SDK source)

2002-11-22 04:43  havoc

	* gl_rmain.c: r_shadows is now ignored when in r_shadow_realtime
	mode r_shadow_realtime 3 added (no depth test on visible shadow
	volumes) visible shadow volumes now have backface culling disabled,
	to better demonstrate the overdraw

2002-11-21 10:26  havoc

	* host_cmd.c, makefile, pr_cmds.c, pr_edict.c, pr_exec.c,
	pr_execprogram.h, progs.h, sv_main.c, sv_phys.c: implemented
	PR_GetString and PR_SetString from QWSV source, these work around
	the map change crash bugs in gcc 2.95.3

2002-11-21 10:24  havoc

	* gl_rsurf.c: defaulting to r_surfaceworldnode 1

2002-11-21 02:56  havoc

	* gl_rsurf.c: fixed a silly and harmless typo in RSurfShader_Water
	(*chain++ should have been chain++)

2002-11-20 04:54  havoc

	* model_brush.c, model_brush.h: CalcSurfaceExtents now uses
	surf->poly_verts instead of edges brush model bounding box
	calculations are now based on meshes instead of edges
	CalcSurfaceExtents has been merged into Mod_GenerateSurfacePolygon
	msurface_t firstedge and numedges have been removed (they were only
	used for generating the polygon during loading) shuffled around
	msurface_t fields in order of most common access at the top, to
	least common at the bottom, this is in an attempt to reduce wasted
	memory traffic

2002-11-20 03:18  havoc

	* mathlib.c, mathlib.h, matrixlib.c, matrixlib.h: removed all 3x4
	matrix support (wasn't used, and isn't likely to ever be used)
	moved Matrix4x4_Print to mathlib.[ch] because it really doesn't
	belong in the entirely quake-independent matrixlib.[ch]

2002-11-20 03:10  havoc

	* makefile, render.h, transform.c, transform.h: softwaretransform
	hasn't been used in ages, I thought I had already gotten rid of
	it...

2002-11-16 05:52  havoc

	* gl_rsurf.c, model_brush.h: got rid of all the (no longer used)
	cached_ fields in the msurface_t struct, except for cached_dlight

2002-11-16 05:35  havoc

	* gl_backend.c, gl_backend.h: merged GL_DrawRangeElements into
	R_Mesh_Draw for a mild speed gain

2002-11-16 04:49  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, model_shared.h,
	r_light.c, render.h: lightmap update checking is now handled very
	differently; each brush model has a set of lightmap chains for each
	light style, and they are marked if the light style's value
	changes, similarly dlights mark surfaces they touch as well... 
	both use surf->cached_dlight...  this doesn't seem to be a speed
	gain (or loss) at present, but allows further restructuring which
	should be a speed gain

2002-11-15 17:24  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, model_shared.h: rewrote
	how texture chains are handled, they are now stored outside the
	surfaces, and are rebuilt as the player moves through the world
	(bmodel texture chains are just left untouched) good efficiency
	improvement I think

2002-11-15 17:00  havoc

	* sv_phys.c: fixed fiends teleporting when they check if a jump is
	a good one or not

2002-11-14 00:05  molivier

	* jpeg.c: The Linux version doesn't need libjpeg.h anymore

2002-11-11 13:36  havoc

	* model_alias.c: thanks to Vic for pointing out the fact I should
	be using + 0.5f when dealing with the alias texcoords

2002-11-10 21:04  havoc

	* matrixlib.c: thanks to Tomaz for finding a severe bug in
	CopyTranslateOnly (it was copying the X translate into all 3
	translate components)

2002-11-09 21:03  havoc

	* cl_main.c, cl_parse.c, cl_particles.c, client.h, gl_rmain.c,
	gl_rsurf.c, host.c, model_shared.c, model_shared.h, protocol.h,
	render.h: added Nexiuz TE_ effects (prefixed TE_TEI_) and Nexiuz
	plasma trail (an override for EF_BRIGHTFIELD) Nexiuz mode disables
	fullbrights reshaped some of the particle structure (flags is gone,
	broken apart into separate fields again) added tex_beam (which uses
	a separate texture instead of the particle font because it needs to
	repeat) simplified some of the texture font generation (tex_
	variables now indicate where to put the images in the texture) now
	resets trail positions if entity was not active in previous frame
	now gives packet dump when Host_Error is called during client
	message parsing code now frees the model(s) being loaded when
	Host_Error is called during model loading code removed modelflush
	command because it crashes the realtime lighting code (which points
	to leafs and surfaces in the world model, a problem which does not
	exist with r_restart and vid_restart) R_Stain and R_CalcBeamVerts
	now use const where appropriate

2002-11-09 18:51  havoc

	* common.c, common.h: add GAME_NEXIUZ gamemode

2002-11-09 18:49  havoc

	* model_alias.c: fixed Mod_LoadZymoticModel - it had TONS of crashs

2002-11-09 18:34  havoc

	* model_brush.c: fix crashs on maps with missing textures

2002-11-09 18:26  havoc

	* r_crosshairs.c: fix which crosshair texture is used

2002-11-09 18:22  havoc

	* sv_main.c: don't send free entities!	(I've been observing this
	bug for months)

2002-11-08 15:26  havoc

	* darkplaces.dsp, gl_rsurf.c, gl_textures.c, image.c, jpeg.c,
	jpeg.h, makefile, quakedef.h, sys.h, sys_linux.c, sys_win.c, vid.h,
	vid_glx.c, vid_shared.c, vid_wgl.c: Elric's changes: JPEG texture
	loading using libjpeg (entirely optional at runtime - if not
	present, it won't load it) gl_extensionfunctionlist_t is now
	renamed dllfunction_t and part of a shared system for library
	opening/function retrieval (functions Sys_LoadLibrary,
	Sys_GetProcAddress, Sys_UnloadLibrary - for this the library
	handles are considered void *'s) LordHavoc's changes: fixed libjpeg
	support in non-win32 by using jpeglib.h - honors jpeglib.h's idea
	of boolean - Linux libjpeg is compiled with boolean as int, unlike
	windows where it is apparently byte - unfortunately this also means
	you need libjpeg-devel installed to compile it in non-win32, not
	sure what can be done about this (but most people seem to have that
	anyway...) looks for libjpeg.so.62 instead of libjpeg.so

2002-11-07 12:50  havoc

	* r_shadow.c: glossmap textures are now brighter (no change to
	forced gloss brightness) now clears lights when reloading lights
	r_editlights_quakelightsizescale cvar added, default 0.8, controls
	size of lights imported from maps, gets a major speed gain but
	makes the map a little darker R_Shadow_NewWorldLight now checks if
	radius or color is too dim and won't spawn such lights in editing
	mode the centers of lights are visible now (as crosshair images)
	light selection is now done a bit differently - the more precisely
	you point at a light, the higher it's rating gets, sometimes
	surpassing the closer lights in the area

2002-11-07 12:42  havoc

	* cl_parse.c: changed a server protocol error to use Host_Error

2002-11-07 12:41  havoc

	* gl_rmain.c: when realtime mode fails now mentions setting
	vid_bitsperpixel to 32 as well

2002-11-07 12:40  havoc

	* image.c: LoadTGA now loads colormapped and greyscale targas (as
	found in qe1m1 project)

2002-11-07 12:38  havoc

	* vid_shared.c: don't allow stencil without bitsperpixel 32

2002-11-04 07:56  havoc

	* model_brush.h: added comments explaining what all the fields of
	surfmesh_t do

2002-11-03 17:28  havoc

	* r_shadow.c, r_shadow.h: removed use of 3D textures

2002-11-03 17:23  havoc

	* gl_rmain.c: renamed r_staticworldlights to
	r_shadow_staticworldlights

2002-11-03 17:09  havoc

	* gl_backend.c, gl_rmain.c, gl_rsurf.c, model_alias.c,
	model_brush.c, model_brush.h, model_shared.c, model_shared.h,
	r_shadow.c, r_shadow.h: now clears stencil to 128 instead of 0,
	this avoids problems with arbitrary incr/decr orders stencil
	shadows are now always erased by glClear, never by drawing again,
	removes r_shadow_erasebydrawing cvar shadow volumes now have a
	nudge away from the surface that cast them, this is controlled by
	the r_shadow_shadownudge cvar (default 1 unit), avoids rare z
	fighting issues shadow volume projection distance is now not
	infinite for alias model volumes, because they are more
	well-behaved than the world shadows...	msurface_t poly_radius and
	poly_radius2 removed now validates elements in more parts of
	loading (hoped this would reveal a model shadow bug, but it didn't)
	Mod_ShadowMesh_AddVertex now uses a hash table search to speed up
	static shadow volume building (unfortunately this doesn't seem to
	be the real speed problem) removed ALLOCMESHINPIECES option from
	Mod_ShadowMesh code removed non-PRECOMPUTEDSHADOWVOLUMES option
	from static shadow volume creation removed some unused variables

2002-11-03 15:10  havoc

	* gl_rsurf.c, model_brush.c: fix polygon distance checks (the
	radius comparison was completely wrong)

2002-11-03 15:07  havoc

	* glquake.h, vid_shared.c: added support for glPolygonOffset (not
	used though)

2002-10-31 07:35  havoc

	* image.c: untested support for tenebrae override/ textures
	directory

2002-10-31 07:17  havoc

	* view.c: make view kicks (both angle and origin) occur before gun
	is oriented, so it follows the view exactly

2002-10-30 07:28  havoc

	* common.c, console.c, gl_backend.c, gl_models.c, gl_textures.c,
	host_cmd.c, image.c, keys.c, makefile, menu.c, model_alias.c,
	model_brush.c, model_shared.c, net_dgrm.c, net_master.c,
	pr_edict.c, pr_exec.c, pr_execprogram.h, progs.h, quakeio.c,
	snd_dma.c, snd_oss.c, wad.c, zone.h: fixed all the signed/unsigned
	mismatch warnings

2002-10-30 07:23  havoc

	* cl_particles.c: commented out two unused static const int
	variables gcc 3.3 noticed

2002-10-30 03:46  havoc

	* cl_main.c, client.h, view.c: fix viewmodel crash

2002-10-29 13:06  havoc

	* r_shadow.c: minor update to texture flags and logic stuff

2002-10-29 13:04  havoc

	* gl_backend.c: fix for use of cubemaps on hardware without 3d
	texture support

2002-10-29 11:29  havoc

	* cl_main.c, gl_rmain.c, view.c: view model is now properly lit in
	realtime mode

2002-10-29 10:55  havoc

	* r_shadow.c: color the torch light

2002-10-29 10:36  havoc

	* r_shadow.c: tweak large flame lights a bit more

2002-10-29 10:31  havoc

	* image.c, r_shadow.c: bumpscale is now adjustable
	(r_shadow_bumpscale) for experimenting (it's not saved to config)
	.lights loading now has the correct light intensity torchs now
	spawn lights above their location so the shadow is cast down, not
	up

2002-10-29 10:01  havoc

	* r_shadow.c: now lights are automatically loaded from the .bsp,
	.lights, or .rtlights if available

2002-10-29 07:44  havoc

	* r_shadow.c: * LordHavoc slaps self for having loadmodel->mempool
	references where he should have had r_shadow_mempool references

2002-10-29 07:36  havoc

	* host_cmd.c, makefile, net_dgrm.c, pr_cmds.c, pr_edict.c,
	pr_exec.c, pr_execprogram.h, progs.h, server.h, sv_main.c,
	sv_move.c, sv_phys.c, sv_user.c, world.c: changed how QC
	interpreter handles edict field access - the entvars struct is now
	a pointer - yes this changed that many files...  discovered gcc
	2.95.3 is the sole cause of map change crashs in the QC interpreter
	- it does not compile pr_exec.c correctly somehow (I think
	OP_ADDRESS is the only place it has a problem), makefile now refers
	to gcc-3.1 (maybe this should be changed, but oh well for now)

2002-10-28 06:26  havoc

	* pr_edict.c, progs.h, server.h, sv_main.c: faster number to edict
	lookup (sv.edictstable) and faster edict to number lookup (edict_t
	now has a number inside it)

2002-10-28 06:24  havoc

	* pr_exec.c: check for negative pr_depth in PR_Crash just to be
	obsessive

2002-10-28 06:23  havoc

	* pr_cmds.c: fixed CopyEntity builtin, now only copies the vars
	(not the physics info and such)

2002-10-28 01:17  havoc

	* gl_backend.c, gl_backend.h, gl_rmain.c, glquake.h, r_shadow.c,
	r_shadow.h, vid_shared.c: implemented scissor rect clipping of
	lights in realtime lighting mode DP is no longer fillrate limited
	on my GF4 at 640x480 :)

2002-10-27 05:15  havoc

	* cl_main.c, gl_models.c, gl_rmain.c, gl_rsurf.c, model_alias.c,
	model_brush.c, model_brush.h, model_shared.c, model_shared.h,
	r_light.c, r_shadow.c, r_shadow.h: gloss now works correctly major
	speedups to realtime lighting mode (it's now actually playable on
	my machine)
	
	world lights are now handled by r_shadow.c instead of the lights
	list in the world model world lights can be ingame
	edited/loaded/saved (the file name ends in .rtlights), this is all
	controlled by r_editlights* commands/cvars realtime lighting cvars
	renamed from r_light_* to r_shadow_* r_shadow_realtime takes the
	place of r_shadows modes 2 and 3, mode 1 is realtime lighting, mode
	2 is realtime lighting plus visible shadow volumes overlaid
	r_shadow_lightingmode variable added (updated each frame)
	indicating whether or not realtime lighting is active changed how
	player model and chase_active is handled (player model is now
	considered a forced RENDER_EXTERIORMODEL), so player now casts
	shadows R_Shadow_Volume no longer takes a vertex parameter, it is
	implied that it is in varray_vertex (since all the code relied on
	this fact anyway) R_Shadow_Volume's code has been split out into
	reusable functions (R_Shadow_ProjectVertices,
	R_Shadow_MakeTriangleShadowFlags,
	R_Shadow_BuildShadowVolumeTriangles) R_Shadow_RenderLighting split
	into R_Shadow_DiffuseLighting and R_Shadow_SpecularLighting since
	sometimes it's usable to use more than one call to diffuse lighting
	(colormapped models) R_Model_Alias_DrawLight now handles
	colormapping added Light_CullBox and LightAndVis_CullBox functions
	for culling shadow volumes R_DrawWorldLightShadowVolume has been
	moved to r_shadow.c Mod_ShadowMesh_Begin now takes an initial
	number of triangles to hold, number of triangles in each additional
	shadowmesh is now based on previous mesh
	R_Model_Brush_DrawLightForSurfaceList added to greatly reduce
	wasted lighting rewrote visibility logic in
	R_Model_Brush_DrawLight, now uses different approachs for bmodels
	and world lights are now pvs culled (according to what leafs are
	visible to the viewer, and what leafs are visible to the light)
	R_Shadow_Stage_EraseShadowVolumes now returns an int, indicating
	whether or not to draw the shadow volumes again to erase rewrote
	how texture info based on entity and time is updated (it is now a
	function called R_UpdateTextureInfo) fixed a ton of bugs relating
	to animated textures and transparency of bmodels (also changed
	texture_t currentframe to no longer be an array) disabled building
	of surface neighbors (oh sure I made it a lot faster and stuff, but
	it's still not practical, and is no longer necessary) changed
	parameters of model_t DrawLight function to no longer take distbias
	and subtract Mod_ProcessLightList is no longer called mlight_t
	fields relating to shadow volumes have been commented out
	Mod_ValidateElements function added notes on enormous cost added to
	Mod_BuildTextureVectorsAndNormals (188 float operations per
	triangle, and 39 float operations per vertex) added (disabled) code
	for allocating and freeing shadowmeshs in pieces, just for
	obsessive memory corruption detection (none was found)
	Mod_ShadowMesh_AddTriangle and Mod_ShadowMesh_AddMesh functions
	added, and Mod_ShadowMesh_AddPolygon now uses AddTriangle (this is
	a slowdown but I'm not sure it matters that it is, it fills out
	meshs more completely) added (disabled) code for
	Mod_ShadowMesh_Finish to work without reallocating meshs
	R_Shadow_ResizeTriangleFacingLight and
	R_Shadow_ResizeShadowElements added R_Shadow_RenderShadowMeshVolume
	added (properly renders shadowmesh_t chains, fixing all the bugs
	with static shadow volume rendering) r_shadow_blankbumptexture is
	now 1x1 r_shadow_blankglosstexture and r_shadow_blankwhitetexture
	added (both 1x1) added a 4 texture path for r_shadowtexture3d 0
	mode when static shadow volumes are constructed for world lights,
	it is now done by constructing a combined mesh of all lit geometry,
	and then casting shadows from that (this reduces shadow volume
	edges greatly, since separate polygons become a continuous mesh
	during the mesh creation)

2002-10-27 05:10  havoc

	* r_sky.c: added a FIXME note about skyboxes and vid_restart

2002-10-27 04:13  havoc

	* gl_backend.c: set depth and stencil clear values

2002-10-27 04:11  havoc

	* collision.c: check for out of bounds fraction

2002-10-27 04:00  havoc

	* cl_collision.c: add an error check for invalid maxfrac before
	returning it, nothing significant

2002-10-26 08:23  havoc

	* r_explosion.c, r_sky.c: fix for drawing explosions and sky twice
	as much as necessary (!), no longer does a 360 degree sweep on both
	axis, one axis is only 180 degrees

2002-10-25 05:30  havoc

	* sv_phys.c: fix for lift blocking due to imprecision at very low
	frame times (slowmo)

2002-10-25 04:15  havoc

	* sv_phys.c: minor whitespace cleanup

2002-10-22 00:13  havoc

	* gl_rmain.c, gl_rsurf.c, model_brush.c, model_brush.h,
	model_shared.h, render.h: reworked visibility a bit (added
	VIS_CullBox and VIS_CullSphere) so it can be pretty accurate made
	pvs surface/leaf lists to make R_SurfaceWorldNode as fast as
	possible world geometry now casts shadows from frontfaces instead
	of backfaces fixed most shadowing bugs static shadow volumes now
	work (other than one bug I'm trying to find) and are on by default

2002-10-22 00:10  havoc

	* gl_backend.c: added a comment describing GL triangle strip order
	(why add it to this?  convenience)

2002-10-22 00:05  havoc

	* makefile: make profile now works no longer prints 'Compiling
	whatever.c' and so on as per Mercury's request

2002-10-22 00:03  havoc

	* r_shadow.c: cast shadows from frontfaces instead of backfaces

2002-10-22 00:02  havoc

	* vid_shared.c: don't use 3d textures on drivers that don't
	explicitly advertise it as an extension

2002-10-21 00:21  havoc

	* cl_parse.c: change maximum lerp time from 1 second to 0.1 seconds
	(this was a mistake in a previous commit)

2002-10-20 23:07  molivier

	* menu.c: The new video menu is clean now (or at least cleaner).
	Updated Transfusion map list

2002-10-19 16:23  havoc

	* net_master.c: reorganized how heartbeat timing works (much
	simpler and cleaner now) sv_heartbeatperiod controls how often a
	heartbeat is sent sv_public controls whether heartbeats are sent at
	all (default: 0) sv_masterextra1 added (points at a master server
	that a friend just put online)

2002-10-19 03:12  molivier

	* menu.c, vid_wgl.c: Implemented a very simple video mode selection
	menu. The way it handles the various resolutions is still very
	naive, so expect another update soon.

2002-10-19 02:43  molivier

	* gl_textures.c, host_cmd.c, r_shadow.c: Added a test when freeing
	textures (glt->image can be NULL if the program exits because of a
	lack of memory at startup). Also, Transfusion doesn't have a
	"start" map, so Transfusion dedicated servers shouldn't use it as
	their default map. Removed a preprocessor warning in r_shadow.c

2002-10-16 19:44  havoc

	* makefile.mingw: trying less optimizations in hopes that it will
	fix the crashs

2002-10-16 19:39  havoc

	* r_shadow.c: MSVC has a pathetic stack size.

2002-10-16 15:33  havoc

	* r_shadow.c: oops, removed the wrong one

2002-10-16 15:26  havoc

	* r_shadow.c: remove unused variables

2002-10-16 14:48  havoc

	* cl_main.c, gl_backend.c, gl_backend.h, gl_models.c, gl_rmain.c,
	gl_rsurf.c, gl_textures.c, image.c, model_alias.c, model_brush.c,
	model_brush.h, model_shared.h, model_sprite.c, palette.c,
	r_light.c, r_shadow.c, r_shadow.h, render.h, vid_glx.c, vid_wgl.c:
	fixed some dynamic lighting bugs related to glowing self
	rmeshstate_t now has alphascale now clears stencil from shadows
	differently (draws shadow volume over again to clear) R_LightModel
	now does GL_Color or GL_UseColorArray depending on whether the
	model has any shading model->DrawBaseLighting function is gone, now
	just a few special cases in the normal Draw function removed
	R_NotCulledBox added PVS_CullBox, R_CullSphere, and PVS_CullSphere
	visiblevolume flag is gone from shadow rendering code (visible
	volumes are now automatic depending on what stage the shadow system
	is in) R_DrawShadowVolumes is gone (now just a special option to
	R_ShadowVolumeLighting) cubemap textures now upload correctly
	doubled the bumpyness of surfaces to make bumpmapping noticable
	(still less than tenebrae) fixed crash when loading external map
	textures now supports _luma as an alternate name for _glow map
	textures (tenebrae compatibility) can now override _bump, _gloss,
	and _glow/_luma textures that were generated from the map
	bumpmapping works on the map now (that was a stupid typo...) now
	uses alpha buffering for multi-pass lighting effects r_shadows 3
	now works on Geforce2 (2tex no3D 3 pass per layer) and Radeon (2tex
	3D 2 pass per layer - Radeon has 3 texture units but the lighting
	code is most efficient with 2 units, and 3D textures use up 2
	texture units on Radeon... lame...) gloss isn't working yet
	r_shadows 3 mode supports up to 64x overbright lighting now (by
	rendering light multiple times) fixed palettes (this fixes oddities
	like seeing sky behind fullbrights)

2002-10-16 01:26  molivier

	* menu.c: Added back "turn left" and "turn right" to the
	Transfusion bind list. Added 2 new Transfusion maps (e4m8 and maim)

2002-10-15 16:22  havoc

	* cl_video.c: made the QueueWantsMore message a Con_DPrintf

2002-10-14 12:37  havoc

	* cl_parse.c: cruft

2002-10-14 12:34  havoc

	* cl_parse.c: fix jitter in interpolation of monster movement

2002-10-14 12:05  havoc

	* cl_main.c, cl_parse.c, cl_particles.c, cl_video.c, gl_backend.c,
	gl_draw.c, gl_models.c, gl_rsurf.c, gl_textures.c, glquake.h,
	image.c, image.h, menu.c, model_alias.c, model_brush.c,
	model_brush.h, model_shared.c, model_shared.h, model_sprite.c,
	palette.c, palette.h, quakedef.h, r_crosshairs.c, r_explosion.c,
	r_light.c, r_shadow.c, r_sky.c, r_textures.h, render.h, sbar.c,
	vid_shared.c: R_LoadTexture functions take a palette pointer now
	there are many palettes available now (d_8to24table renamed to
	palette_complete) R_LoadTexture is gone, use R_LoadTexture2D
	instead bumpmaps are now generated for models and maps (sigh, so
	much reworking of their loaders)

2002-10-13 15:13  havoc

	* gl_backend.c, gl_backend.h, gl_models.c, gl_rmain.c, gl_rsurf.c,
	gl_textures.c, glquake.h, mathlib.h, model_alias.c, model_brush.c,
	model_brush.h, model_shared.c, model_shared.h, model_sprite.c,
	r_light.c, r_shadow.c, r_shadow.h, r_textures.h, render.h: added
	TEXF_CLAMP flag for textures r_shadows 3 mode is under heavy
	construction changed pvsframecount stuff to be part of the model
	structure new function Mod_BuildTextureVectorsAndNormals added
	changed/improved how animating textures work surface texture chains
	are now permanent for the lifetime of the model, and are specific
	to each submodel surface textures now have a rendertype field which
	is updated every time R_PrepareSurfaces is called, values are
	SURFRENDER_ADD, SURFRENDER_ALPHA, or SURFRENDER_OPAQUE added
	SHADERSTAGE_BASELIGHTING added surfaceneighbors system (currently
	disabled because it increases load time greatly) surface meshs are
	now allocated by a single function to simplify things more heavy
	construction on static shadow volumes (which aren't working
	correctly) VectorNormalize, VectorNormalize2, and
	VectorNormalizeDouble macros no longer produce infinite vectors if
	given null vectors corrected names of dot3 enums reduced duplicate
	code in texture manager with some new arrays for gl texture type
	enums added GL_SetupView_Mode_PerspectiveInfiniteFarClip based on
	code from tenebrae texture state management now has combinergb and
	combinealpha for each texture unit aliasvert array went away
	aliasvert_svectors, aliasvert_tvectors, and aliasvert_normals added
	(note: padded to 4 floats) aliasvertnorm replaced with
	aliasvert_normals (adjusted code to use 4 float padding) new
	r_light_* cvars allow tweaking of r_shadows 3 lighting system
	R_DrawShadowSphere now works correctly fixed fakeshadows appearing
	ontop of transparent stuff got rid of unused
	RSurfShader_Wall_Fullbright

2002-10-10 23:20  molivier

	* menu.c: Added Frag'M to the Transfusion map list

2002-10-09 10:25  havoc

	* sv_main.c: fixed glowing entities disappearing randomly (by
	testing more thoroughly)

2002-10-07 11:43  havoc

	* makefile: Elric rewrote the makefile, it is quite self
	explanatory when run.

2002-10-06 16:09  havoc

	* vid_shared.c: now checks for both TexImage3D built into the
	OpenGL library and for GL_EXT_texture3D (glTexImage3DEXT, etc)

2002-10-06 09:51  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, r_shadow.c: make
	r_shadows 3 mode mostly match lighting conditions of the lightmaps
	r_shadows 3 mode now checks SURF_SHADOWCAST and SURF_SHADOWLIGHT
	flags

2002-10-06 08:08  havoc

	* host.c: fix restart command

2002-10-06 08:07  havoc

	* host_cmd.c: clean up map changes a little more

2002-10-06 07:45  havoc

	* gl_textures.c: fix fragment texture image creation so it has
	depth 1 error if fragment texture is attempted with texture types
	other than 2D

2002-10-06 07:43  havoc

	* gl_backend.c: GL_DrawRangeElements now reports if it got a bogus
	indexcount and vertex range

2002-10-06 07:40  havoc

	* model_shared.c: R_ShadowMesh_Finish now discards empty meshs

2002-10-06 07:23  havoc

	* vid_shared.c: detect 3D textures as GL_EXT_texture3D again

2002-10-06 06:58  havoc

	* model_alias.c: use qbyte * math instead of void * math to keep
	MSVC happy

2002-10-05 20:24  havoc

	* gl_backend.c, gl_models.c, gl_rsurf.c, gl_textures.c, glquake.h,
	r_shadow.c, r_shadow.h, vid_shared.c: 3D attenuation texture works
	now also fixed the commandline options -width and such (untested)

2002-10-05 12:32  havoc

	* gl_backend.c, gl_backend.h: backend now supports 1D, 2D, 3D, and
	Cubemap texture binding

2002-10-05 07:38  havoc

	* cl_particles.c, cl_screen.c, cl_screen.h, gl_backend.c,
	gl_draw.c, gl_models.c, gl_rmain.c, gl_rsurf.c, model_alias.c,
	model_brush.c, model_brush.h, model_shared.h, r_crosshairs.c,
	r_explosion.c, r_light.c, r_sky.c, r_sprites.c: texcoord arrays are
	now 3 component (padded to 4 floats) rewrote zym model loader
	partially rewrote skysphere rendering

2002-10-04 15:31  havoc

	* r_shadow.c: now uploads a 3D attenuation texture (not used yet)

2002-10-04 15:28  havoc

	* gl_textures.c, r_textures.h: forgot to add prototypes for new
	texture functions to r_textures.h fixed misreporting of texture
	memory use (was reporting 0 for all textures because sides was 0)

2002-10-04 14:04  havoc

	* gl_rmain.c, gl_textures.c, glquake.h, image.c, image.h,
	vid_shared.c: 1D, 3D, and cubemap textures are now supported (in
	addition to 2D) added detection of GL_EXT_texture3D,
	GL_ARB_texture_cube_map, and GL_ARB_texture_env_dot3 shadow volume
	rendering mode now depends on all of the above being present (but
	doesn't use them yet)

2002-10-04 06:52  havoc

	* gl_models.c, gl_rmain.c, gl_rsurf.c, model_alias.c,
	model_brush.c, model_brush.h, model_shared.c, model_shared.h,
	model_sprite.c, r_shadow.c, r_shadow.h, r_sprites.c, render.h:
	shadow volume rendering still very incomplete, but works mostly
	committing this before I add 3D textures to the texture manager
	(alert: this is the last version of the stencil shadow rendering
	that will work with TNT class hardware (and not well), 3D textures
	will be required and will not work on TNT class... sorry.  vertex
	just looks too horrible)

2002-10-03 23:05  molivier

	* cl_screen.c, cl_screen.h, host_cmd.c, menu.c, net_main.c: Added a
	couple more "const". Fixed "+map" in the command line for dedicated
	servers. Updated LordHavoc email address in the multiplayer menu.
	Removed some duplicated code.

2002-10-03 10:11  havoc

	* gl_models.c, gl_rmain.c, gl_rsurf.c, model_alias.c,
	model_brush.c, model_brush.h, model_shared.c, model_shared.h,
	model_sprite.c, r_light.c, r_light.h, r_shadow.c, r_shadow.h:
	massive coding has been done on shadow volumes (some scrapped code
	which will be removed, some incomplete code, etc) some model fixes
	relating to gl_combine - r_quickmodels is gone off-screen models
	were not being culled (oops)

2002-10-02 23:51  molivier

	* gl_models.c: From LordHavoc: the r_quickmodels cvar wasn't used
	anywhere; it's fixed.

2002-10-02 23:36  molivier

	* gl_draw.c, vid_null.c: Removed an unused variable in gl_draw.c
	(Forest, could you double check this one please?). Removed an
	useless include in vid_null.c

2002-10-02 05:02  molivier

	* host_cmd.c: Fixed dedicated server (the server was never really
	spawned)

2002-10-02 00:02  molivier

	* makefile: Made a few changes to makefile so we can switch
	compiler more easily

2002-10-01 23:50  molivier

	* host.c, net.h, net_dgrm.c, net_dgrm.h, net_loop.c, net_loop.h,
	net_main.c, net_master.c, net_master.h, net_win.c, sv_main.c: Tried
	to be a little smarter with the heartbeats, using a simple priority
	mecanism. Added a few "const" here and there in the net code. Fixed
	heartbeat code on Win32 (added Loop_Heartbeat and
	Datagram_Heartbeat to net_win.c; oups...)

2002-09-30 11:01  havoc

	* gl_models.c, gl_rsurf.c, model_brush.c, model_brush.h,
	r_shadow.c, r_shadow.h: optimized trianglefacing calculation, per
	Vic's recommendation (yes it's all one statement now) shadow
	functions now take a vertex array pointer, to make them more
	broadly useful (in precomputation perhaps?) beginning work on a
	precomputed shadow volumes system for static lights

2002-09-30 07:55  havoc

	* gl_backend.c, gl_backend.h, gl_draw.c, gl_models.c, gl_rmain.c,
	gl_rsurf.c, glquake.h, model_brush.c, model_brush.h, r_shadow.c,
	r_shadow.h, r_sky.c, vid_shared.c: bmodel shadow volumes static
	lights (in maps with .lights files) now cast shadow volumes (this
	combined with the above makes dpdm1 and dpdm2 unplayably slow -
	need to do precomputed world shadow volumes) (note: like the
	previous shadow volume commits, this is still just visible volumes
	when you use r_shadows 2, purely experimental still)

2002-09-30 07:52  havoc

	* cl_particles.c: smoke from bullet impacts and rocket trails now
	grows in size a little as it fades

2002-09-29 23:53  havoc

	* cl_particles.c, gl_backend.c, gl_backend.h, gl_draw.c,
	gl_models.c, gl_rmain.c, gl_rsurf.c, glquake.h, r_crosshairs.c,
	r_explosion.c, r_light.c, r_shadow.c, r_shadow.h, r_sky.c,
	r_sprites.c, vid_shared.c: gl backend now has functions for color
	array and flat color states (GL_UseColorArray and GL_Color), this
	gets a 9.76% speed gain in bigass1 for me

2002-09-29 20:37  havoc

	* host_cmd.c: fix changelevel, and simplify restart code

2002-09-29 19:34  havoc

	* gl_draw.c: fix view blends

2002-09-29 19:19  havoc

	* r_shadow.h: newline to keep gcc3 happy

2002-09-29 19:07  havoc

	* r_shadow.h: forgot to commit this

2002-09-29 18:57  havoc

	* darkplaces.dsp, gl_models.c, gl_rmain.c, makefile,
	makefile.mingw, r_shadow.c: new experimental shadow volumes, try
	r_shadows 2 to see the shadow volumes cast by dlights

2002-09-29 18:09  havoc

	* model_alias.c, model_brush.c, model_shared.h, model_sprite.c:
	added radius and radius2 (squared radius) fields to model structure

2002-09-29 18:05  havoc

	* cl_main.c, client.h, r_light.c, r_light.h: ent field added back
	to dlight structures

2002-09-29 18:00  havoc

	* cl_particles.c: now uses more smoke particles for gunshots, looks
	better more WORKINGLQUAKE stuff

2002-09-29 17:55  havoc

	* vid_glx.c: added -gl_driver commandline option, and cleaned up
	some glX init stuff a bit

2002-09-28 19:06  havoc

	* gl_draw.c: fix DrawQ_Fill rendering (Pic with no string)

2002-09-28 16:59  havoc

	* vid_wgl.c: fixed vid_restart now destroys the window (did not
	before) fixed stupid behavior in MainWndProc handling of WM_DESTROY
	(it's no longer caught)

2002-09-28 05:41  havoc

	* vid_wgl.c: needed one more prototype

2002-09-28 05:34  havoc

	* vid_wgl.c: trying to fix many forward references in input code

2002-09-28 03:54  havoc

	* gl_models.c: major speedup to alias model fake shadow rendering
	now traces in direction of light instead of straight down, this
	causes a shadow to be cast on a wall in some cases (desirable)

2002-09-28 03:50  havoc

	* cl_particles.c: disabled smoke from explosions, it was a minor
	effect and used too much fillrate added fractalnoise to the
	WORKINGLQUAKE section at the top, and fixed an oldtime reference in
	WORKINGLQUAKE code

2002-09-28 03:23  havoc

	* host_cmd.c: fix restart command (can't do the "connect local" for
	a restart)

2002-09-27 22:35  havoc

	* cl_parse.c, client.h, host.c, host_cmd.c: map and load commands
	are now delayed until the video system is started, this fixes
	crashs caused by the video system starting after the configs are
	read

2002-09-27 21:44  havoc

	* cl_screen.c, cl_screen.h, cl_video.c, gl_draw.c: 2D is now drawn
	using R_Mesh system

2002-09-27 21:43  havoc

	* gl_backend.c: fixed glOrtho call

2002-09-27 21:42  havoc

	* cl_parse.c, cl_particles.c, client.h: added sparks and smoke to
	explosions

2002-09-27 05:02  havoc

	* cgamevm.c, chase.c, cl_collision.c, cl_collision.h, cl_main.c,
	cl_particles.c, gl_models.c, gl_rmain.c, matrixlib.c, matrixlib.h,
	model_alias.c, model_brush.c, model_shared.h, model_sprite.c,
	r_crosshairs.c, r_explosion.c, r_light.c, render.h: CL_TraceLine
	can now return what entity was hit (this isn't actually used, and
	accounts for most of the changed files) r_shadows returns,
	currently only supported on alias models (they are the only ones
	with a DrawFakeShadow function) added Matrix4x4_Transform3x3

2002-09-27 00:30  havoc

	* glquake.h, makefile, vid.h, vid_glx.c, vid_null.c, vid_shared.c,
	vid_wgl.c: stencil is now supported (optional, off by default, use
	vid_stencil to enable) vid_ cvars are updated when VID_Mode
	succeeds GL stencil functions enabled

2002-09-26 22:49  havoc

	* model_alias.c, model_shared.c, model_shared.h: alias mdl/md2
	models now have a mdlmd2data_triangleneighbors array

2002-09-26 22:23  havoc

	* model_shared.c, model_shared.h: added Mod_FindTriangleWithEdge
	and Mod_BuildTriangleNeighbors functions (not used by anything)
	added Mod_LoadModels function, which is called when renderer is
	restarted or "modelflush" is used, it reloads all models that are
	used

2002-09-26 22:06  havoc

	* gl_draw.c: added newline to end of Draw_CachePic error message

2002-09-26 00:28  molivier

	* menu.c: Updated Transfusion map list

2002-09-26 00:20  molivier

	* net_master.c: The call to alloca has been removed. This function
	has a quite bad reputation and MinGW didn't want it anyway.

2002-09-25 19:55  havoc

	* pr_exec.c: increased maximum stack depth

2002-09-25 19:38  havoc

	* cl_parse.c: limit entity movement lerp to 10th of a second

2002-09-25 18:45  havoc

	* vid_glx.c: fix for repeated mode switchs losing keyboard/mouse
	focus

2002-09-25 18:24  havoc

	* cd_linux.c, cd_null.c, cd_win.c, cdaudio.h, gl_rmain.c, host.c,
	input.h, snd_alsa_0_5.c, snd_alsa_0_9.c, snd_null.c, snd_oss.c,
	snd_win.c, sound.h, vid.h, vid_glx.c, vid_null.c, vid_shared.c,
	vid_wgl.c: this commit adds video mode switching, and preferred
	mode is saved to config, no more need for
	-window/-width/-height/-bpp (they still work) IN_Init and
	IN_Shutdown code has been merged into VID_InitMode and VID_Shutdown
	code in each of the video systems VID_InitCvars renamed to
	VID_Shared_Init VID_Open and VID_Close functions added in
	vid_shared, Host_Init now calls VID_Open S_Open/Close and
	CDAudio_Open/Close added (none of these do anything yet) VID_Open
	and VID_Close call R_Modules_Start, S_Open, and CDAudio_Open and
	their corresponding Close functions VID_Restart_f added
	(vid_restart command) vid_hidden now starts true (to avoid any
	refreshs until video is started)
	vid_fullscreen/width/height/bitsperpixel are now saved to config
	VID_Open is called after configs are parsed Render_Init now longer
	starts/stops modules IN_MouseEvent in vid_wgl.c no longer clamps
	pitch (since that's done by IN_PostMove)

2002-09-24 19:38  havoc

	* vid_wgl.c: added -gl_driver commandline option, it's useless
	though (crashs when I try it on my voodoo2)

2002-09-24 15:17  havoc

	* net_udp.c, net_udp.h: fix warnings

2002-09-24 15:11  havoc

	* net.h, net_wipx.c, net_wipx.h: fix some prototype warnings

2002-09-24 15:11  havoc

	* makefile.mingw: update file list

2002-09-24 15:10  havoc

	* sys_win.c: fix a warning on argv

2002-09-24 15:09  havoc

	* vid_wgl.c: remove an unused extension function list

2002-09-24 05:16  havoc

	* common.c, common.h, darkplaces.dsp, host.c, makefile, menu.c,
	net.h, net_bsd.c, net_dgrm.c, net_dgrm.h, net_loop.c, net_loop.h,
	net_main.c, net_master.c, net_master.h, net_udp.c, net_udp.h,
	net_win.c, net_wins.c, net_wins.h, net_wipx.c, net_wipx.h,
	sv_main.c: Thanks to Elric for adding dpmaster support! slist
	command renamed to net_slist, net_inetslist command added
	"heartbeat" command notifies master server(s) of your server's
	presence (this is automatic, but you can force a heartbeat)
	sv_master1 through sv_master4 cvars contain master server
	addresses, they all default to "" (none), this may change if
	someone hosts a darkplaces master server and wants it added to the
	defaults...  (note: these cvars ARE saved to config) com_modname
	contains the currently running mod directory name (for example id1,
	darkplaces, transfusion, etc) some Con_DPrintf's have been added to
	the server query code, so if you want to know if people are
	checking out your server, it should tell you about it now (I
	think?) some Con_DPrintf's exist in the inetslist code so you can
	watch the packet flow

2002-09-24 01:38  havoc

	* cd_linux.c: whitespace changes by Elric

2002-09-24 00:42  havoc

	* gl_rmain.c, r_crosshairs.c, render.h, sbar.c: static crosshair is
	now drawn during sbar stage (where it should be), fixes the bug
	where it appeared infront of the menus world crosshair size is now
	constant on the screen rearranged code greatly it just works
	better, ok?

2002-09-24 00:05  havoc

	* gl_draw.c, gl_rmain.c, host.c, sbar.c: now pretends gfx.wad pics
	are in the gfx/ directory, this changes the override path for
	gfx.wad pics (statusbar images in other words) to be for example
	gfx/blah.tga, however the old override path (no prepended gfx/) is
	still supported for compatibility with previous versions (mainly
	just for sake of conchars and conback) Sbar_Init now called from
	Render_Init instead of Host_Init (it was being called before the
	texture system was started...) Sbar_Init now registers an sbar
	module, with corresponding start/shutdown/newmap functions, so when
	the renderer is restarted, the pics are precached again

2002-09-23 23:59  havoc

	* vid_null.c: fixed.

2002-09-22 23:13  havoc

	* vid_shared.c: default to 640x480x16 again, just for consistency
	with other engines

2002-09-22 22:59  havoc

	* vid_wgl.c: wglGetExtensionsString is properly detected now (was
	checking for an extension string, but none is present outside the
	wgl extensions list, which is a chicken and egg problem, now just
	checks if the function exists, like the spec says to do)

2002-09-22 22:56  havoc

	* vid.h, vid_shared.c: VID_CompareMode removed

2002-09-22 21:37  havoc

	* common.c, darkplaces.dsp, host.c, in_win.c, quakedef.h, vid.h,
	vid_glx.c, vid_null.c, vid_shared.c, vid_wgl.c, winquake.h: almost
	completely rewrote vid_wgl's mode code, there is no modelist of any
	kind anymore vid_wgl works again VID_Init renamed to VID_InitMode,
	it returns false if it was unsuccessful VID_Mode added, which
	prints mode change message to console and passes on to VID_InitMode

2002-09-22 21:24  havoc

	* sys_win.c: now uses VID_Shutdown instead of VID_SetDefaultMode
	(which hardly does anything in vid_wgl anyway)

2002-09-22 21:17  havoc

	* snd_mix.c, menu.c: no need to include winquake.h

2002-09-22 19:02  eviltypeguy

	* snd_oss.c: Make formatting sane

2002-09-21 17:29  havoc

	* vid_wgl.c: fixed crash on startup and shutdown

2002-09-21 17:19  havoc

	* host.c, vid.h, vid_glx.c, vid_null.c, vid_wgl.c: VID_Init now
	takes an int bpp parameter finished some work on the wgl VID_Init
	code

2002-09-21 17:16  havoc

	* console.c: Mem_Free on a const pointer apparently irritates MSVC
	but not gcc...	hush MSVC

2002-09-21 17:15  havoc

	* cd_win.c, net_wins.c, net_wins.h, net_wipx.c, net_wipx.h: const.

2002-09-21 16:18  havoc

	* darkplaces.dsp: DOS line endings

2002-09-19 22:29  havoc

	* sv_main.c: fix for glowing invisible models showing up (artifact
	items staying visible after pickup in darkplaces mod - the glow
	still stays though)

2002-09-19 16:51  havoc

	* cl_main.c: fix for beams coming from invisible objects

2002-09-19 11:01  havoc

	* cl_light.c, cl_main.c, cl_parse.c, cl_tent.c, client.h,
	darkplaces.dsp, makefile, makefile.mingw: shuffled cl_light and
	some of cl_tent into cl_main and remaining cl_tent code into
	cl_parse got rid of bitprofile console command because it only
	worked for old protocol (probably should add it back for new
	protocol though)

2002-09-17 22:02  havoc

	* makefile: disable profiling by default

2002-09-17 21:57  havoc

	* cl_main.c: move CL_RelinkBeams after CL_RelinkNetworkEntities so
	position is up to date

2002-09-17 21:51  havoc

	* cl_tent.c: make lightning come from player's gun fix lightning
	visibility (wasn't calculating bounding box before)

2002-09-17 20:50  havoc

	* common.c, common.h, filematch.c: matchpattern can now be case
	insensitive if desired pak filename matching is now case
	insensitive

2002-09-17 16:23  havoc

	* cl_video.c, host.c, makefile, snd_dma.c, snd_null.c, sound.h,
	vid.h, vid_glx.c, vid_null.c, vid_wgl.c: you can now build a
	darkplaces-dedicated executable as well as a darkplaces-glx
	executable (and infact this is done automatically :)

2002-09-17 14:47  havoc

	* cl_particles.c, client.h: sparks and rain are now beam particles

2002-09-17 14:27  havoc

	* gl_rmain.c, render.h: added R_CalcBeamVerts function, calculates
	vertex array for beam polygon

2002-09-17 14:25  havoc

	* cl_screen.c, cl_screen.h, cl_video.c, gl_draw.c: colors for
	DrawQ_Mesh are now float rather than byte, and vertices are padded
	to 4 floats per vertex R_DrawQueue conversion to R_Mesh is getting
	closer to done

2002-09-16 18:40  havoc

	* cl_particles.c, gl_backend.c, gl_backend.h, gl_draw.c,
	gl_models.c, gl_rmain.c, gl_rsurf.c, model_brush.c, model_brush.h,
	r_crosshairs.c, r_explosion.c, r_light.c, r_sky.c, r_sprites.c,
	render.h: m.wantoverbright is gone done manually by the few things
	that wanted it (tweaking the texrgbscale in other words, and their
	own local colorscale variables) mesh_colorscale renamed to
	r_colorscale, and now available throughout rendering (no need to
	wait for the results of R_Mesh_State before scaling your colors)
	lightscalebit renamed to r_lightmapscalebit lightscale is gone
	(wasn't used) msurface_t cached_lightscalebit renamed accordingly
	to cached_lightmapscalebit starting work on converting the 2D
	system to use R_Mesh calls

2002-09-15 13:13  havoc

	* cl_particles.c, gl_rsurf.c: integer dlight code is now 32bit
	(instead of 64bit) stain creation code is now floating point stain
	creation code is now linear falloff instead of 1/(x*x), to make
	stains more consistent with respect to radius (their center density
	is exactly known)

2002-09-13 17:25  havoc

	* sv_main.c: enlarge bbox for visibility purposes if there is a
	glow or other such effect

2002-09-12 21:03  havoc

	* gl_backend.c, gl_backend.h, gl_rmain.c: GL_SetupView_* functions
	added, they replace most of R_Mesh_Start's functionality (it still
	exists and does the remaining things), GL_SetupView_* functions
	should be used for setting up a view (obviously) for rendering,
	view orientation and perspective and all that...

2002-09-12 20:33  havoc

	* gl_draw.c: unused variable arraylocked removed

2002-09-12 15:31  havoc

	* cl_screen.c, gl_backend.c, gl_backend.h, gl_draw.c: got rid of
	gl_mesh_drawmode, now only gl_mesh_drawrangeelements remains, this
	got rid of support for non-vertex-array rendering, also now c_meshs
	and c_meshtris are counted by GL_DrawRangeElements (c_meshtris was
	renamed to c_meshelements)

2002-09-12 09:07  havoc

	* cl_particles.c, gl_backend.c, gl_backend.h, gl_models.c,
	gl_rmain.c, gl_rsurf.c, r_crosshairs.c, r_explosion.c, r_light.c,
	r_sky.c, r_sprites.c: varray_element is gone, instead you pass your
	own element array to R_Mesh_Draw this got a 3.5% speed gain in
	cavetest2bench also, R_Mesh_ResizeCheck now takes only a numverts
	parameter, since numtriangles was only used for the varray_element
	array

2002-09-12 07:55  havoc

	* gl_backend.c, gl_backend.h, gl_draw.c, gl_textures.c, glquake.h,
	render.h, vid_shared.c: manually inlined GL_LockArray and
	GL_UnlockArray in the only places they were used RGB fragment
	textures are no longer aligned on 3 pixel boundaries, changed
	UNPACK_ALIGNMENT to allow this

2002-09-12 05:20  havoc

	* pr_edict.c, pr_exec.c: added pr_traceqc cvar, to enable serious
	spew (printing every opcode executed to console) for extreme
	debugging

2002-09-12 05:15  havoc

	* keys.c: a little extra error checking in keynum lookup

2002-09-11 08:05  havoc

	* glquake.h, host.c, vid.h, vid_glx.c, vid_shared.c, vid_wgl.c:
	VID_Init now takes mode settings (fullscreen, width, height)
	commandline options like -window and -width are now parsed by
	vid_shared code vid_width, vid_height, and vid_bitsperpixel cvars
	added, vid_mode removed VID_CompareMode added, for simpler mode
	matching (returns a double, smaller value is better match)
	GL_OpenLibrary takes a library name to load GL_OpenLibrary,
	GL_CloseLibrary, and GL_GetProcAddress have been moved to platform
	specific vid_ files (wgl and glx) gl_platform added (example
	values: "WGL", "GLX") gl_platformextensions added (containing any
	extensions reported by platform specific strings) gl_checkextension
	renamed to GL_CheckExtension for consistency
	glXQueryExtensionsString and glXGetProcAddressARB support looks up
	GLX_SGI_video_sync extension removed halfscreen hack from vid_wgl
	(the code that tried to identify dual monitor configurations and
	use only one of them)

2002-09-11 07:55  havoc

	* cl_input.c, cl_parse.c, cmd.c, cmd.h, common.c, common.h,
	console.c, console.h, cvar.c, cvar.h, host.c, host_cmd.c,
	model_brush.c, model_shared.c, model_shared.h, net.h, net_dgrm.c,
	net_udp.c, net_udp.h, pr_edict.c, pr_exec.c, progs.h, quakedef.h,
	server.h, sv_main.c, sys_linux.c, zone.c, zone.h: whitespace lots
	of things are now const pointers

2002-09-11 07:12  havoc

	* snd_dma.c: check for -safe

2002-09-11 06:59  havoc

	* r_sky.c, render.h: R_SetSkyBox now takes a const char *

2002-09-11 06:57  havoc

	* pr_cmds.c: whitespace

2002-09-11 06:54  havoc

	* in_win.c: check for -safe

2002-09-11 06:49  havoc

	* keys.c: whitespace

2002-09-11 06:48  havoc

	* cd_linux.c, cd_win.c: check for -safe

2002-09-10 21:03  havoc

	* gl_rmain.c, mathlib.c, mathlib.h, model_brush.h, render.h,
	sv_main.c: BoxOnPlaneSideFunc code - gone, replaced by
	BoxOnPlaneSide BOX_ON_PLANE_SIDE macro - gone, no replacement
	necessary (use BoxOnPlaneSide) R_CullBox and R_CulledBox macros
	have been replaced by optimized functions this gets a minor speed
	gain overall

2002-09-10 18:19  havoc

	* gl_rsurf.c: major speed gain in cavetest2 by checking if the
	portal is facing the wrong way

2002-09-10 17:15  havoc

	* zone.c, zone.h: memheaders are now doubly linked, so Mem_Free
	goes faster than it used to

2002-09-10 16:04  havoc

	* model_brush.c: corrected an error message in .lights code

2002-09-10 15:47  havoc

	* gl_rsurf.c: no need to update lightmaps if using r_vertexsurfaces

2002-09-10 15:27  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, model_shared.h,
	r_light.c: optimizing R_DrawSurfaces and WorldNode functions
	visframe and pvsframe are now arrays rather than part of the
	surface struct, resulting in less cache misses

2002-09-10 10:17  havoc

	* makefile: enable optimizations again (oops)

2002-09-10 10:12  havoc

	* gl_rsurf.c, makefile, model_brush.c, model_brush.h,
	model_shared.h: surfaces are now texture sorted rather than shader
	sorted, OpaqueWall renderers have been reorganized to minimize
	state checks, which offers a minor speedup
	r_vertexsurfacesthreshold is gone, no longer supported...

2002-09-10 09:54  havoc

	* gl_backend.c: fixed combine overbright behavior

2002-09-09 08:58  havoc

	* console.c, keys.c: expanded console buffer from 16k to 128k, and
	changed scroll amount to be dependent on visible console height
	(scrolls half the visible area instead of just 2 lines)

2002-09-09 08:31  havoc

	* net_main.c: fixed typo

2002-09-09 08:30  havoc

	* host.c, menu.c, net_main.c, server.h: svs.clients is now
	allocated dynamically according to svs.maxclients, and there is now
	a function for updating svs.maxclients called SV_SetMaxClients this
	cuts the memory usage in singleplayer by 17mb

2002-09-09 07:30  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: removed
	modelsortedsurfaces

2002-09-06 09:51  havoc

	* zone.c, zone.h: mempools now have sentinel checks, for
	completeness

2002-09-06 05:05  havoc

	* model_brush.h: whitespace cleanup

2002-09-06 04:48  havoc

	* cl_particles.c, gl_backend.c, gl_backend.h, gl_models.c,
	gl_rmain.c, gl_rsurf.c, makefile, r_crosshairs.c, r_explosion.c,
	r_light.c, r_sky.c, r_sprites.c, render.h: transform matrix is now
	separate from R_Mesh_State, a new function called R_Mesh_Matrix
	takes up the task of changing transforms, and is used a lot less
	frequently in the engine than R_Mesh_State, this gets a nice speed
	gain in cavetest2

2002-09-06 02:45  havoc

	* gl_backend.c, glquake.h, matrixlib.c, matrixlib.h, vid_shared.c:
	now uses hardware transforms fixed a bunch of bugs in matrixlib
	view matrix is now calculated using Matrix4x4 functions instead of
	GL calls

2002-09-06 00:14  havoc

	* gl_backend.c: corrected function names reported in various
	backend not active errors (by using a #define that uses __func__ to
	get the function name as a string)

2002-09-05 23:51  havoc

	* cl_particles.c, gl_backend.c, gl_backend.h, gl_models.c,
	gl_rmain.c, gl_rsurf.c, r_crosshairs.c, r_explosion.c, r_light.c,
	r_sky.c, r_sprites.c: vertex arrays renamed to varray_ and exposed
	to rest of engine mesh_maxtris and mesh_maxverts exposed (really
	only intended for R_Mesh_ResizeCheck #define) R_Mesh_GetBuffer is
	gone, R_Mesh_State takes it's place for most of it's functionality
	R_Mesh_ResizeCheck (a #define) will expand arrays on the fly if a
	mesh is too big (note: be sure to use this if you have a mesh that
	may be more than 1024 triangles, 3072 verts) R_Mesh_Draw takes the
	place of R_Mesh_Render and takes two parameters (number of verts
	and number of triangles) fixed bug that caused sky to appear
	through models when sky was onscreen (R_DrawWorld must be called at
	a specific point in rendering, had forgotten that)

2002-09-05 07:38  havoc

	* gl_backend.c: currenttriangle and currentvertex no longer exist,
	also firstvert and firsttriangle no longer exist in the internal
	mesh structure

2002-09-05 07:24  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h: surfvertex_t is gone,
	in it's place are non-interleaved arrays, which keeps things
	simpler...

2002-09-05 07:22  havoc

	* gl_backend.c: moved state update from R_Mesh_Render to
	R_Mesh_Draw_GetBuffer

2002-09-05 06:05  havoc

	* gl_backend.c: buf_mesh is no longer a pointer, since there is
	only one of it

2002-09-05 05:07  havoc

	* gl_rmain.c, gl_rsurf.c, model_brush.h, render.h: added
	r_surfaceworldnode and r_cullsurface cvars (it is recommended that
	these both be on, or both be off) shuffled around WorldNode,
	DrawSurfaces, PrepareSurfaces, SurfMarkLights, and other related
	code a great deal, it is now somewhat cleaner

2002-09-05 03:24  havoc

	* pr_cmds.c: added getsurfaceclippedpoint builtin

2002-09-05 03:10  havoc

	* cl_demo.c, cl_main.c, cl_parse.c, cl_particles.c, cl_screen.c,
	client.h, collision.c, common.c, common.h, console.c, gl_backend.c,
	gl_backend.h, gl_rmain.c, gl_rsurf.c, host.c, keys.c, keys.h,
	makefile, model_brush.c, model_brush.h, model_shared.c,
	model_shared.h, portals.c, pr_cmds.c, pr_exec.c, pr_execprogram.h,
	progs.h, r_lerpanim.c, r_light.c, r_sky.c, render.h, sv_move.c,
	sv_phys.c, view.c, world.c: you can now (try to) play in maps you
	don't have, and models you don't have are shown as little
	multicolored things added CL_BoundingBoxForEntity to clean up the
	various mins/maxs calculations in the engine no longer spews
	clc_nops to server past the first signon stage the clc_nops sent to
	the server are now sent using unreliable packets (because queuing
	them up as reliable made no sense and spewed warnings when
	developer was on) failed client to server reliable messages now
	print a hexdump of the message contents when developer is on there
	is now Mod_PointContents (this is different than Mod_PointInLeaf
	because a lot of calls to Mod_PointInLeaf were just wanting the
	contents, and it's not convenient to check for NULL (no world
	model) in the caller r_speeds no longer reports a "walls" count, as
	it was often nearly identical to faces and simplified the code to
	remove it r_speeds faces count may count bmodels twice if some
	contain sky polygons (this is less technically correct, but more
	performance correct - it is processing the faces twice) DrawQ_Pic
	won't crash if given a NULL picname now (won't draw it either)
	r_cullsurfaces cvar added r_surfacesworldnode cvar added surface
	backface culling moved to PrepareSurfaces simplified a lot of
	worldnode related stuff surf->pvsframe and node->pvsframe and
	leaf->pvsframe simplified worldnode code, and only needs updating
	when leaf changes (this is partly how quake did things)
	leaf->visframe no longer exists, this meant changing/cleaning a lot
	of code leaf->dlightbits and leaf->dlightframe no longer exist,
	this meant doing TraceLine's to see if dlights should shine on
	models and such (but only if within radius of them) console is
	forced if there's nothing else to look at, this is tracked
	separately from whether the user wants a console (key_consoleactive
	is now bits, but most code should just check if it is non-zero)
	RecursiveHullCheckPoint has been enabled again, only invoked if
	trace length is exactly 0 SZ_GetSpace overflow warnings/errors have
	newlines at the end now R_VisibleCullBox is gone (it relied on
	leaf->visframe), uses R_CullBox instead move around some R_NewMap
	code into more suitable modules rearranged R_RenderView code a lot,
	to group things more appropriately dlights work correctly on
	bmodels now PR_Crash function added, to properly shutdown progs
	interpreter (reset it's stack) and print out a crash report
	PR_RunError went away, it has been replaced by Host_Error (which
	now calls PR_Crash incase it happend during progs execution)
	R_ResetQuakeSky and R_ResetSkyBox added, to clean up some sky
	related hacks in model loading various QC builtins added for
	getting info on surfaces from the engine

2002-09-02 03:44  havoc

	* cl_demo.c, cl_screen.c, console.c, console.h, host.c, keys.c,
	keys.h, menu.c, sbar.c, sv_user.c, vid_glx.c, vid_wgl.c: you can
	now open/close the console independently of menu and messagemode
	console catchs input before anything else console appears ontop of
	anything else console is no longer forced fullscreen when there is
	nothing else to show shuffled around the 2D drawing calls in
	CL_UpdateScreen now only console pauses singleplayer, instead of
	console/menu/messagemode simplified console singleplayer pausing
	code a bit mouse grabbing is now only forced off when console is
	down, not when menu or messagemode is shown

2002-09-01 23:46  havoc

	* gl_backend.c: make sure zFar is at least 64 units to avoid
	feeding a bogus value to glFrustum

2002-09-01 23:20  molivier

	* menu.c: Updated Transfusion map list

2002-09-01 05:24  havoc

	* gl_textures.c: don't allocate resizebuffer for an R_Upload that
	doesn't need it (native RGB or RGBA fragment texture)

2002-08-31 18:06  havoc

	* gl_rmain.c, gl_textures.c, r_textures.h: free texture processing
	buffers each frame so they don't hang around wasting memory

2002-08-31 18:05  havoc

	* cl_particles.c: reduced default max particles from 16384 to 8192

2002-08-31 02:17  havoc

	* pr_edict.c: improved pr_fields command to list how many entities
	are using each entity field and give more information on how many
	fields are needed and how much memory they need

2002-08-31 02:15  havoc

	* console.c: removed console text left/right edge margins (giving
	an extra 2 chars per line)

2002-08-30 06:18  havoc

	* gl_rmain.c: weapon models were not being lit in maps using
	.lights

2002-08-30 06:17  havoc

	* r_light.c: commented out bit-hacking 1/sqrt code

2002-08-30 06:16  havoc

	* matrixlib.c: consistency cleanup of a (disabled) part of
	Invert_Simple

2002-08-30 06:13  havoc

	* darkplaces.dsp: MSVC updated the project file, why I'm not sure,
	oh well...

2002-08-30 06:09  havoc

	* darkplaces.dsp: changed to use C runtime library DLL instead of
	static linking it

2002-08-30 02:33  havoc

	* gl_models.c: fixed models getting dark in the distance when
	fogged bug (thanks to Elric for reporting this, trivial fix, was a
	silly mistake on my part)

2002-08-29 19:20  havoc

	* model_alias.c: fixed bug which caused all models to be untextured
	if they used internal skins

2002-08-29 19:06  havoc

	* gl_models.c: draw models which have no textures using the
	notexture checkerboard

2002-08-29 18:27  havoc

	* model_alias.c: support for loading external skins that don't
	exist inside the model

2002-08-29 07:14  havoc

	* gl_rmain.c, matrixlib.c: fixed viewmodel (it wasn't drawing
	because it's matrix was empty), fixed a bug with scaling in
	Matrix4x4_CreateFromQuakeEntity (and Matrix3x4 to match), added
	some extra code to Matrix4x4_Invert_Simple (and Matrix3x4) to
	further clarify the scaling inversion

2002-08-29 05:45  havoc

	* gl_models.c: fixed crash when ent->skinnum >= model->numskins

2002-08-29 05:44  havoc

	* gl_rsurf.c: speed gain in lightmap updates

2002-08-28 07:33  havoc

	* cl_particles.c, gl_backend.c, gl_rmain.c, gl_rsurf.c, render.h:
	optimizations to rendering particle lighting is no longer
	supported, sorry particle visibility is no longer checked, it was
	wasting too much time

2002-08-28 06:35  havoc

	* gl_models.c, gl_rsurf.c: fix various fog bugs, and also fix
	missing colormap layer bugs (specifically if the base/merged
	texture is missing, as it is on a lava ball for instance)

2002-08-28 05:56  havoc

	* gl_backend.c, gl_backend.h, gl_rsurf.c: no more m.transparent,
	transparent surfaces are sorted using MeshQueue now glow textures
	were being rendered using detail texture coordinates, fixed

2002-08-28 05:14  havoc

	* menu.c: added lighting options (and explosion clipping) to
	effects options menu

2002-08-28 04:56  havoc

	* cl_collision.c, cl_collision.h, cl_light.c, cl_particles.c,
	cl_screen.c, client.h, gl_backend.c, gl_backend.h, gl_models.c,
	gl_rmain.c, gl_rsurf.c, matrixlib.c, matrixlib.h, meshqueue.c,
	meshqueue.h, model_brush.c, model_brush.h, model_shared.h,
	r_crosshairs.c, r_explosion.c, r_light.c, r_light.h, r_sky.c,
	r_sprites.c: most of the framework for hardware accelerated
	transforms is back, just the actual gl calls need to be put in, but
	that will be a later commit gl_backend internal mesh structure now
	has a matrix stored in it entity_render_t now has a matrix and a
	inverse matrix many additions of const to various functions, this
	required restructuring some code transparent mesh sorting is gone,
	this also means subsorting of triangles by depth is gone (meshqueue
	should be used for transparent mesh sorting, I have not yet written
	a new triangle sorter) rewrote RSurf_ shader functions *yet again*,
	they are now more compact and share code (by way of using lots of
	function calls) lots of changes/bugfixes/additions to matrixlib.c
	and .h, including an actual working Matrix4x4_Invert_Simple
	function added gl_flashblend (brightens and enlarges coronas, turns
	off all actual lighting) added r_coronas (can turn off coronas)

2002-08-27 23:46  havoc

	* cl_main.c: got rid of dlightradius variable which was never
	actually used

2002-08-27 04:59  havoc

	* gl_rmain.c, gl_rsurf.c, meshqueue.c, meshqueue.h, model_brush.c,
	model_brush.h: liquid now goes through meshqueue sorting fixed a
	bunch of minor sorting consistency bugs in the meshqueue code
	changed behavior of R_MeshQueue_EndScene and exposed
	R_MeshQueue_Render and R_MeshQueue_RenderTransparent cleaned up
	liquid rendering code a bit

2002-08-27 03:04  havoc

	* gl_rmain.c: forgot a m.transparent = in the last commit, and
	removed a comment

2002-08-27 02:49  havoc

	* cl_particles.c, gl_models.c, gl_rsurf.c, r_crosshairs.c,
	r_explosion.c, r_light.c, r_sky.c, r_sprites.c: got rid of lots of
	unnecessary m.transparent = lines, as well as some depthdisable =,
	and depthwrite =

2002-08-27 02:42  havoc

	* cl_particles.c, gl_models.c, gl_rmain.c, gl_rsurf.c,
	model_alias.c, model_brush.h, model_shared.h, r_explosion.c,
	r_light.c, r_light.h, r_sprites.c, render.h: engine mostly
	converted to use R_MeshQueue functions instead of true transparent
	meshs, this meant getting rid of currentrenderentity the rest of
	the conversion to R_MeshQueue will be in a future commit, just
	wanted to get this in now

2002-08-26 07:00  molivier

	* host.c: Added a new cvar sv_echobprint which controls the
	printing of broadcast messages in dedicated server mode. It's on by
	default.

2002-08-25 23:24  molivier

	* console.c: Fixed a potential buffer overflow in Con_DebugLog

2002-08-25 22:40  havoc

	* gl_backend.c: renamed mesh_ variables to gl_state. (created a
	struct for this purpose)

2002-08-25 08:45  havoc

	* gl_backend.c, gl_backend.h, gl_models.c, gl_rmain.c, gl_rsurf.c,
	render.h: got rid of R_Mesh_Draw and R_Mesh_DrawPolygon, now all 3D
	geometry is drawn using R_Mesh_Draw_GetBuffer and R_Mesh_Render

2002-08-25 05:26  havoc

	* cl_particles.c, gl_backend.c, gl_models.c, gl_rmain.c,
	gl_rsurf.c, r_crosshairs.c, r_explosion.c, r_light.c, r_sky.c:
	batching is gone.  if you forget to call R_Mesh_Render after each
	mesh the backend system will yell at you.

2002-08-25 04:12  havoc

	* cl_main.c, cl_parse.c, client.h: monster movement interpolation
	now works in both protocols (shared code), this bloated the entity
	persistent struct a bit more unfortunately

2002-08-24 00:14  havoc

	* cl_particles.c, gl_backend.c, gl_backend.h, gl_models.c,
	gl_rmain.c, gl_rsurf.c, menu.c, model_brush.c, model_brush.h,
	model_shared.c, r_crosshairs.c, r_explosion.c, r_light.c, r_sky.c,
	r_sprites.c, render.h: detail texturing added (although with just
	one generated texture applied to everything) detail texturing makes
	use of up to 3 texture units if you have combine detail texturing
	added to effects options menu (r_detailtextures cvar) surfvertex_t
	now has another set of texcoords, for detail texturing
	Mod_BrushStartup and Mod_BrushShutdown functions added to
	alloc/free the detail texture r_multitexture cvar renamed to
	r_textureunits, so you can limit number of texture units enabled
	for testing, rather than just as a yes/no kind of option gl_combine
	is forced to 0 if r_textureunits is less than 2 (this is purely for
	consistency, not of any importance) split up the wall rendering
	into two kinds - vertex lit with optional transparency, and opaque
	lightmapped with no support for transparency R_Mesh_Draw_GetBuffer
	now takes a wantoverbrights parameter, if false it will not use the
	4x overbright (even if combine is enabled), this is useful to
	improve the color precision of anything which does not need
	overbright fixed crosshair brightness (it was unintentionally
	adjusting the alpha using m.colorscale just like the RGB portion of
	the color) sprites only use overbright if they are lit (normal
	unlit sprites are rendered without overbright)

2002-08-22 23:12  havoc

	* common.c, common.h, menu.c: removed check for registered.integer
	in GAME_NORMAL naming (this means it just says DarkPlaces-Quake
	whether the game is registered or not) removed support for games
	FiendArena (because I have not heard from the author in a long
	time) and Zymotic (because the game was canceled long ago)

2002-08-22 23:04  molivier

	* menu.c: Finally got rid of the last TRANSFUSION define (the key
	binding menu is determined at runtime now). Also a few maps won't
	make it for the 1.0 release, so they've been removed from the map
	list.

2002-08-22 15:24  havoc

	* pr_cmds.c: added DP_SV_SLOWMO to extensions list

2002-08-22 14:58  havoc

	* cl_particles.c, gl_rsurf.c: made stains more small and focused

2002-08-22 00:30  havoc

	* image.c: workaround for gcc -funroll-loops bug with RLE
	compressed TGA, fixed LoadTGA (by rewriting it), probably faster
	now too

2002-08-21 23:13  molivier

	* r_crosshairs.c: Disabled crosshair during intermission

2002-08-21 04:26  molivier

	* sys_win.c: Fixed GetModuleFileName call

2002-08-21 04:24  molivier

	* common.c: Refixed COM_StripExtension	:oP

2002-08-21 02:43  havoc

	* sys_win.c: this should fix the program name in com_argv[0], so
	detection of which game to run based on executable name should work
	now, thanks to Elric for reporting the bug

2002-08-21 02:23  havoc

	* common.c: change default com_basedir to "." to fix the game when
	not using -basedir, oops.  thanks to Elric for the bug report.

2002-08-21 00:49  molivier

	* common.c: Fixed COM_StripExtension for strings without a single
	dot

2002-08-21 00:47  molivier

	* menu.c, r_crosshairs.c, screen.h: Static/floating crosshair is
	now an option controled by the cvar "crosshair_static"

2002-08-20 17:10  havoc

	* gl_rmain.c, gl_rsurf.c, menu.c, model_brush.c, model_shared.h,
	r_sky.c, render.h: no more warping meshs of any kind sky is always
	of the masked variety if enabled at all water does not move
	R_Mesh_Draw is no longer used by gl_rsurf at all

2002-08-20 15:47  havoc

	* fractalnoise.c: corrected spelling of alorgithm

2002-08-20 13:24  havoc

	* gl_draw.c, image.c, image.h, menu.c: fixed menu player
	colormapping

2002-08-20 12:54  havoc

	* host_cmd.c: changed color command description to mention it is
	0-15 range, not 0-13

2002-08-20 01:28  havoc

	* common.c, common.h, host.c, quakedef.h, sys_linux.c, sys_win.c:
	got rid of host_parms added com_basedir cleaned up gamedir related
	code

2002-08-20 00:08  havoc

	* common.c, common.h, host.c, quakedef.h, sys_linux.c,
	sys_shared.c, sys_win.c: got rid of host_parms.argc and argv, now
	uses com_argc and com_argv directly

2002-08-19 20:13  havoc

	* sys.h, sys_linux.c, sys_shared.c, sys_win.c: cleaned up and
	merged a lot of sys_*.c code into sys_shared.c

2002-08-19 19:57  havoc

	* sbar.c: centered Sbar_IntermissionOverlay

2002-08-19 19:50  havoc

	* host.c, sys_shared.c, sys_win.c: sys_usetimegettime is now
	initialized at a place where it shouldn't crash anymore (this
	should make win32 run again)

2002-08-17 16:19  havoc

	* in_svgalib.c, makefile, vid_3dfxsvga.c: removed fxmesa support
	(3dfx svgalib) because no one used it to my knowledge, and it
	probably did not even work due to poor maintenance and cleaned up
	makefile a bit

2002-08-15 22:59  havoc

	* cl_parse.c: update client color values when new values are
	recieved from server

2002-08-15 22:57  havoc

	* host_cmd.c: SV_ChangeTeam now actually gets called with the right
	value

2002-08-15 22:56  havoc

	* pr_cmds.c: reformatted and updated extensions list

2002-08-15 22:55  havoc

	* sbar.c: fix alignment of frag list, it is now centered

2002-08-15 22:53  havoc

	* glquake.h: changed GL_MATRIX_MODE check to GL_PROJECTION, and
	removed GL_MATRIX_MODE define, this should be more compatible in
	identifying odd gl.h's

2002-08-15 12:00  havoc

	* sys_linux.c, sys_win.c: only warn about time stepping backwards
	if it's more than 10ms

2002-08-15 11:53  havoc

	* cl_main.c, protocol.h, sv_main.c: added support for .colormap
	values >= 1024 in QC to mean direct color specification (two 0-15
	values, just like SV_ChangeTeam and setcolor use)

2002-08-15 11:51  havoc

	* cvar.c, cvar.h, net_dgrm.c, pr_cmds.c: cvar_vars is no longer
	known by files other than cvar.c, this meant adding a
	Cvar_FindVarAfter function to keep the server queries working
	correctly

2002-08-15 11:49  havoc

	* sys_win.c: turned #define WIN32_USETIMEGETTIME into a cvar named
	sys_usetimegettime, default on (used to be off by default), can be
	changed at any time

2002-08-14 16:48  havoc

	* pr_edict.c, pr_exec.c, progs.h: reset stack position when new
	progs loaded, or error occurs

2002-08-14 16:29  havoc

	* sbar.c: changed fps counter behavior to be more 'traditional'
	(count how many frames go by in a given amount of time), this means
	3 modes are now available for showfps...  showfps 1 - count frames
	showfps 2 - average of recent frame times showfps 3 - most recent
	frame time only

2002-08-10 09:51  havoc

	* common.c, common.h, host.c, menu.c, net_main.c: (patch from
	Elric) BloodBath renamed to Transfusion

2002-08-10 09:29  havoc

	* cl_particles.c, render.h: converted particle rendering to use
	R_Mesh_Draw_GetBuffer

2002-08-09 16:20  havoc

	* r_sprites.c: now uses R_Mesh_Draw_GetBuffer

2002-08-09 16:13  havoc

	* gl_rmain.c: changed viewblend to use R_Mesh_Draw_GetBuffer

2002-08-09 15:45  havoc

	* r_light.c: converted coronas to R_Mesh_Draw_GetBuffer

2002-08-09 15:19  havoc

	* r_sky.c: converted skysphere to R_Mesh_Draw_GetBuffer

2002-08-09 15:03  havoc

	* gl_rsurf.c: changed a bunch of #if 1's to #if USEMESHBUFFER
	(which is 1)

2002-08-09 15:02  havoc

	* r_sky.c: skybox now uses R_Mesh_Draw_GetBuffer

2002-08-09 15:01  havoc

	* makefile: re-enable optimizations by default

2002-08-09 14:48  havoc

	* r_explosion.c: converted code to use R_Mesh_Draw_GetBuffer

2002-08-09 14:47  havoc

	* r_crosshairs.c: converted drawing code from R_Mesh_Draw to
	R_Mesh_Draw_GetBuffer

2002-08-09 14:14  havoc

	* gl_rsurf.c, menu.c, r_light.c, r_light.h: rewrote most of the
	RSurfShader_ functions to use R_Mesh_Draw_GetBuffer instead of
	R_Mesh_Draw
	
	r_modellights replaced r_lightmodels, r_modellights sets limit on
	how many directional lights will be shaded onto the model (only the
	brightest are chosen)
	
	cleaned up lighting code a lot, it is now consistent between static
	and dynamic light sources, and the light radius has been reduced
	
	unfortunately this commit seems to have slowed down the engine a
	bit, and I don't know why, it should be a speed gain

2002-08-07 13:31  havoc

	* gl_rmain.c: fixed r_drawentities 0 which was forgetting to
	enlarge the farclip based on the world bounding box

2002-08-07 13:09  havoc

	* image.c: support for top to bottom TGA, thanks Elric.

2002-08-06 09:35  havoc

	* model_brush.c: added r_sortsurfaces cvar, default off, sorting
	them seems to be a very minor slowdown ingame for me

2002-08-06 09:04  havoc

	* menu.c: fix for the effects menu input code, thanks Elric

2002-08-06 09:01  havoc

	* sv_phys.c: fix for 'falling' in a corner bug, thanks to Elric for
	finding the fix for this.  also removed a SOLID_BSP check that
	shouldn't be there anymore.

2002-08-05 16:23  havoc

	* cl_parse.c: spawned entities were often not appearing in quake
	protocol (demos), oops

2002-08-05 12:57  havoc

	* makefile.mingw: the -I and -L  weren't necessary (and didn't work
	anyway)

2002-08-05 12:18  havoc

	* cgame.c: fix for double to float warning in MSVC

2002-08-05 12:17  havoc

	* vid_shared.c: consistency fix for GL_EXT_draw_range_elements -
	don't be silent about missing functions if the extension is
	reported

2002-08-05 06:28  havoc

	* gl_backend.c, gl_backend.h, gl_rmain.c, r_sky.c, render.h: a
	rather hefty 6% speed gain by getting rid of the
	R_Mesh_UpdateFarClip function, and reorganizing it to use bounding
	boxes instead (outside of gl_backend even)

2002-08-05 05:16  havoc

	* gl_textures.c, r_textures.h: R_GetTexture is now named
	R_RealGetTexture, R_GetTexture is a macro which hardly ever calls
	R_RealGetTexture - this is a nice speed gain, cutting out about 2.3
	million calls during timedemo bigass1

2002-08-05 04:54  havoc

	* gl_textures.c, r_textures.h: removed procedural texture support
	because it was inefficient where it was implemented - it can be
	implemented more efficiently in renderer code than in R_GetTexture

2002-08-05 04:40  havoc

	* model_brush.c: lightmaps shouldn't be procedural, because they
	have no generate function anyway (and are therefore not
	self-animating)

2002-08-05 04:39  havoc

	* snd_mix.c: attempt to optimize SND_PaintChannelFrom8 a little bit

2002-08-05 04:11  havoc

	* sv_main.c: fix view_ofs when dead (negative viewheight)

2002-08-05 03:58  havoc

	* darkplaces.dsp, gl_rmain.c, gl_rsurf.c, makefile, makefile.mingw,
	menu.c, model_alias.c, model_brush.c, model_shared.h,
	model_sprite.c, r_clip.c, r_clip.h, r_sprites.c, render.h: removed
	support for r_ser (also known as R_Clip or "Hidden Surface
	Removal") as it was a slowdown for everyone I know of

2002-08-05 03:20  havoc

	* cl_main.c, cl_parse.c, client.h: an optimization to
	CL_RelinkNetworkEntities (and related code) which increases
	performance by 5% (store the ent->state_current.active flags in a
	separate array to use less memory bandwidth)

2002-08-05 02:47  havoc

	* cg_math.h, cgame.c: optimized phys_moveentities (in cgame.c) so
	it doesn't waste so much time

2002-08-04 13:07  havoc

	* cl_main.c, cl_parse.c, client.h, sv_main.c: fix svc_setview

2002-08-04 13:04  havoc

	* vid_wgl.c: moved the GL_CloseLibrary call a bit

2002-08-04 12:37  havoc

	* in_win.c, sys_win.c, vid_wgl.c, winquake.h: fix mouse in win32, I
	had forgotten to update a lot of code

2002-08-04 08:06  havoc

	* gl_backend.c: limit gl_mesh_batchtriangles to never go below 1,
	because although < 1 works it calls R_Mesh_Render twice per mesh
	rather than once

2002-08-03 14:02  havoc

	* cl_light.h, darkplaces.dsp: removed cl_light.h (which has already
	been merged into client.h)

2002-08-03 13:59  havoc

	* gl_rmain.c, glquake.h, makefile, r_light.c, vid_3dfxsvga.c,
	vid_glx.c, vid_shared.c, vid_wgl.c: now entirely dynamic OpenGL
	binding

2002-08-03 13:51  havoc

	* gl_rsurf.c, makefile: added r_floatbuildlightmap, unfortunately
	using floats for the calculations is still ever so slightly slower
	than integer

2002-08-03 13:46  havoc

	* cl_parse.c: optimized entity updates substantially (or rather,
	UpdateEnd), nice speedup

2002-08-03 13:44  havoc

	* cl_particles.c: some optimizations (notably sparks don't have air
	friction anymore, which is a significant speedup to demos), a bit
	of reorganization

2002-08-03 13:41  havoc

	* cl_particles.c: rearranged things a little, mostly related to
	particles created by EntityParticles, which should only live one
	frame

2002-08-03 13:39  havoc

	* gl_backend.c: default gl_mesh_floatcolors on, and force it off on
	3Dfx drivers (sure this is unnecessary unless it is specifically
	the windows 3Dfx drivers, as surely WickedGL and others work fine,
	but oh well, 3Dfx cards want byte colors anyway)

2002-08-03 13:34  havoc

	* cgamevm.c, cl_collision.c, cl_collision.h, cl_light.c, cl_main.c,
	cl_parse.c, cl_particles.c, cl_screen.c, cl_screen.h, cl_tent.c,
	client.h, gl_rsurf.c, makefile, r_light.c, r_light.h: Lots of
	speedups and cleanups in client code, dynamically allocated
	cl_entities (and friends), rearranged some things  - sorry this
	commit is vague, but it's mostly just a lot of rearrangement,
	cleanup, etc...

2002-08-03 13:27  havoc

	* host_cmd.c: cls.spawnparms isn't needed

2002-08-03 13:26  havoc

	* snd_oss.c: changed linux/soundcard.h to sys/soundcard.h for more
	portability - doesn't work properly on FreeBSD yet, though

2002-08-03 13:23  havoc

	* world.c: print edict responsible for "Trigger in clipping list"
	error

2002-08-02 11:11  havoc

	* darkplaces.dsp, makefile, makefile.mingw, meshqueue.c,
	meshqueue.h: added a mesh queue callback system (to allow mesh
	rendering things in different orders, etc)

2002-08-02 08:12  havoc

	* cl_screen.c, host.c, vid.h, vid_3dfxsvga.c, vid_glx.c,
	vid_shared.c, vid_wgl.c: cleaned up vid_glx.c somewhat, it can now
	quit properly when the close button is pressed (what a mess talking
	to a window manager, sigh...)
	
	added vid_hidden (iconified or otherwise disabled window - don't
	render anything) and vid_activewindow (not the active window, don't
	hog CPU power) to vid_* files

2002-08-02 08:08  havoc

	* cl_particles.c, menu.c, menu.h: added alphafade and gravity
	fields to particle struct, which made most particle types
	redundent, now only a few remain
	
	tweaked various effects (particularly underwater blood, bubbles,
	smoke effects, etc)
	
	added effects options menu to control the many possible options

2002-08-02 08:07  havoc

	* cl_main.c, client.h: added cl_explosions and cl_stainmaps cvars,
	which will be used soon...
	
	renamed cl_draweffects to r_draweffects and made it actually work

2002-08-02 08:01  havoc

	* r_light.c: fixed a lighting bug with overbright modes when using
	r_quickmodels which made most models far too bright
	
	changed directional lighting to only light vertices facing the
	light source (this makes for a very dramatic look)
	
	CompleteLightPoint is now twice as bright as it used to be when
	running a map that uses a .lights file - more closely matchs the
	lightmaps

2002-08-02 07:57  havoc

	* view.c: made liquid colors 50% thinner (it's still apparent
	you're in a liquid, but you can see clearly now)

2002-08-02 07:55  havoc

	* net_main.c: 'sock' local variable isn't needed anymore, cleaned
	up NET_Shutdown socket closing loop

2002-08-02 07:53  havoc

	* net_main.c: fixed bug in NET_Shutdown related to freeing sockets

2002-08-02 05:11  havoc

	* gl_backend.c, gl_backend.h: removed R_Mesh_Draw_NativeOnly (it
	was not used) cleaned up modulate detection (overbright decisions)

2002-07-31 23:34  havoc

	* gl_backend.c, gl_draw.c, glquake.h, vid_shared.c: cleaned up
	glDrawRangeElements limit checking a bit (now done in gl_backend.c)
	
	no longer limits maxtriangles based on DrawRangeElements limits
	(since DrawRangeElements is required to work even if limits are
	exceeded, according to the OpenGL spec)
	
	now posts startup/shutdown messages for gl_backend

2002-07-31 07:04  havoc

	* gl_backend.c, gl_draw.c: cleaned up gl_mesh_drawmode related
	code, hopefully fixing various unknown bugs

2002-07-31 06:46  havoc

	* pr_cmds.c: expanded sprint/centerprint buffer from 256 chars to
	4096

2002-07-31 05:11  havoc

	* gl_backend.c: disabled 3DFX mesh size error (because it really
	only applies when gl_mesh_floatcolors is 1, which is not the
	default) automatically grow mesh buffers based on size of meshs
	encountered

2002-07-31 04:45  havoc

	* model_brush.c: cleaned up behavior when an invalid replacement
	sky texture is found - now it will fall back to the texture inside
	the map

2002-07-31 02:57  havoc

	* makefile.mingw: added -fno-strict-aliasing  (even though it isn't
	a problem with gcc 2.95.3 anyway)

2002-07-31 02:43  havoc

	* sys_shared.c: increased name limit on engineversion string from
	39 chars to 127, this fixed a bug in windows builds where the
	string was too long for the buffer...
	
	also shortened the string itself to no longer mention 'GL' or
	'build'

2002-07-30 22:24  havoc

	* darkplaces.txt: added the readme file to cvs (... and it needs
	massive updates)

2002-07-30 22:15  havoc

	* cl_screen.c, dpvsimpledecode.c, snd_win.c, wavefile.c: win32
	fixes and some MSVC warnings fixed

2002-07-30 20:07  knghtbrd

	* cl_particles.c: Fix for -particles specified wrongly on the
	cmdline..

2002-07-29 20:15  havoc

	* r_crosshairs.c: fix 'flashing' crosshair bug caused by negative
	colors (clamp them before drawing the sprite)

2002-07-29 06:23  havoc

	* gl_rsurf.c: slight simplification/optimzation/readability
	enhancement/whatever to animating textures

2002-07-29 06:21  havoc

	* model_brush.c: fix animating textures

2002-07-29 04:20  knghtbrd

	* sv_phys.c: Water transition splashes do not happen for lava
	anymore.  This means lavaballs do not drive one ABSOLUTELY INSANE
	anymore.  (Except when you get hit by them and they knock you into
	said lava, but that's another story entirely..)

2002-07-29 04:11  knghtbrd

	* r_light.c: Make coronas look better (it looks good in Twilight,
	so...)

2002-07-29 03:33  havoc

	* gl_rmain.c, r_crosshairs.c, render.h, sbar.c: Serious-Sam style
	crosshair (an actual sprite in the world, with slight variation in
	size based on distance, and is based on actual quake gun position,
	not center of screen)

2002-07-29 03:31  havoc

	* cl_particles.c: much nicer rocket and grenade trails

2002-07-29 03:09  havoc

	* gl_rsurf.c: corrected fullbright map handling for the case when
	the fullbright bmodel is not the running map, but one of the
	imported bmodels instead, also corrected a comment about r_ambient

2002-07-29 00:06  havoc

	* zone.c, zone.h: disabled memory clumping, which surprisingly
	improves memory use, rather than hinders it (at least in Linux... 
	hopefully same in windows) and massively speeds up loading of
	complicated maps

2002-07-27 22:45  knghtbrd

	* pr_cmds.c: Alphabetized extensions and added TW_SV_STEPCONTROL..

2002-07-25 23:18  molivier

	* image.c: Fixed PCX file loading for images with an odd width

2002-07-25 02:58  havoc

	* cl_video.c: now uses a fragment texture for the video (massive
	speedup) clears audioqueue when video stops

2002-07-25 02:57  havoc

	* gl_textures.c: fragment images made for fragment textures will
	now always be big enough for the fragment texture that created them

2002-07-25 02:50  havoc

	* snd_dma.c: fix fatal bugs in S_RawSamples_Enqueue and Dequeue
	relating to mis-detected buffer wraps

2002-07-25 02:14  havoc

	* cl_main.c, cl_screen.c, cl_screen.h, cl_video.c, cl_video.h,
	darkplaces.dsp, dpvsimpledecode.c, dpvsimpledecode.h, draw.h,
	gl_draw.c, gl_textures.c, host.c, makefile, makefile.mingw, menu.c,
	r_textures.h, snd_dma.c, sound.h, wavefile.c, wavefile.h: .dpv
	video playback is now implemented.  Slow though, because it's
	resizing textures, this needs to be fixed...

2002-07-24 19:51  havoc

	* snd_mix.c: whitespace

2002-07-24 19:49  havoc

	* snd_mix.c: whitespace cleanup

2002-07-24 19:43  havoc

	* snd_dma.c, snd_mix.c, sound.h: added S_RawSamples_Enqueue,
	S_RawSamples_Dequeue, and S_RawSamples_ClearQueue functions to
	allow background music/video support, these are now used to clear
	the paintbuffer

2002-07-24 19:03  havoc

	* makefile: add -fno-strict-aliasing

2002-07-24 18:44  havoc

	* snd_mem.c: minor whitespace and comment cleanup

2002-07-24 18:40  havoc

	* snd_alsa_0_5.c, snd_alsa_0_9.c, snd_mix.c, snd_oss.c, snd_win.c,
	sound.h: massive cleanup of S_TransferPaintBuffer and moved
	DirectSound locking junk into snd_win.c (adding S_LockBuffer and
	S_UnlockBuffer stubs for other platforms)

2002-07-21 01:40  havoc

	* matrixlib.c: include quakedef (which drags in lots of other
	stuff) to hide various MSVC warnings and make sure M_PI is defined

2002-07-19 18:02  havoc

	* gl_rmain.c: fix view blends so they are alpha, not additive

2002-07-16 22:29  havoc

	* client.h, r_light.c: faster static light tracing (by not doing it
	as often), this also means results of static light traces are
	cached in the entity_render_t (which is now considered
	semi-persistent), made light falloff in .lights file actually work
	(it wasn't being used by the model lighting code... oops), also
	made coronas twice as bright

2002-07-16 22:24  havoc

	* darkplaces.dsp, makefile, makefile.mingw, matrix3x4.c,
	matrix3x4.h, matrix4x4.c, matrix4x4.h, matrixlib.c, matrixlib.h:
	merged matrix4x4 and matrix3x4 into matrixlib, updated makefiles
	and dsp, some cleanups to matrixlib as well

2002-07-16 22:18  havoc

	* mathlib.h: put parentheses around parameters to min/max/bound
	macros

2002-07-16 22:15  havoc

	* cl_main.c, cl_particles.c: scrag, hellknight, and shalrath shots
	now glow, also tweaked the particle colors and made them additive
	blend

2002-07-09 11:46  knghtbrd

	* cl_parse.c: The Nehahra movie was borked.  They were making
	static ents without models.  When you try to do this, DarkPlaces
	has issues!  Issues I say!

2002-07-07 23:54  havoc

	* darkplaces.dsp, makefile.mingw: updated mingw makefile and MSVC
	project to add matrix4x4.c and matrix3x4.c

2002-07-07 23:02  havoc

	* sv_main.c: better check for 0 alpha (it now must be exactly 0.0f,
	not merely rounded off to 0 as a byte)

2002-07-07 19:57  havoc

	* mathlib.c: some whitespace cleanups and a correction of a comment

2002-07-07 19:40  havoc

	* matrix3x4.c, matrix4x4.c: Matrix4x4_CreateRotate and
	Matrix3x4_CreateRotate now take degrees instead of radians for the
	angle

2002-07-07 17:39  havoc

	* mathlib.c: a minor whitespace cleanup on R_ConcatRotations

2002-07-07 17:12  havoc

	* sys_linux.c, sys_win.c: if the OS returns a very bogus time (or
	it wrapped), warn about it and keep ticking

2002-07-07 17:02  havoc

	* .cvsignore: updated .cvsignore so it ignores darkplaces-3dfx and
	gmon.out

2002-07-07 17:02  havoc

	* makefile, snd_null.c: added snd_null for anyone who can't use the
	other sound drivers, and cleaned up the notes regarding sound
	drivers in the makefile

2002-07-07 16:42  havoc

	* makefile, matrix3x4.c, matrix3x4.h, matrix4x4.c, matrix4x4.h:
	created a couple matrix libraries (4x4 and 3x4), hopefully these
	will be useful

2002-07-07 16:38  havoc

	* mathlib.h: now includes qtypes.h

2002-07-07 16:37  havoc

	* qtypes.h, quakedef.h: added a qtypes.h for little things like
	qbyte and such

2002-07-07 13:43  knghtbrd

	* cl_screen.c: Make screenshot saving more like Twilight's.

2002-07-06 13:23  havoc

	* mathlib.h: corrected QuatMake math, and commented out the entire
	set of quaternion macros

2002-07-06 05:04  knghtbrd

	* darkplaces.dsp, darkplaces.dsw: Make sure these files are marked
	as binary so CVS keeps the dos newlines.

2002-07-05 18:48  havoc

	* gl_rsurf.c, model_brush.c, model_brush.h, model_shared.c,
	model_shared.h: some cleanup of map texture loading and related
	code (mainly better support for untextured maps), no longer uploads
	more than one copy of the notexture image (it used to upload one
	copy of it per bmodel loaded), minor optimization of animating
	texture support (or rather, optimization of the extremely common
	non-animating texture case)

2002-07-05 18:45  havoc

	* collision.c: disabled RecursiveHullCheckPoint because it probably
	isn't much of a speed gain really, and it could break things in
	rare cases

2002-07-05 18:43  havoc

	* sv_phys.c: fix for grenades sinking into brush model floor in
	start.bsp

2002-07-05 06:28  knghtbrd

	* cl_tent.c: Change to using a flash for teleport rather than a
	particle effect.

2002-07-04 20:28  knghtbrd

	* pr_edict.c: Kill trigraphs.  Die die die.  Or something.

2002-06-28 21:00  havoc

	* cl_parse.c, cl_tent.c, snd_dma.c, snd_mem.c, snd_mix.c, sound.h:
	no longer complains about missing sounds loaded by the engine
	(wind2, water1, etc), only the QC

2002-06-24 00:19  molivier

	* vid_wgl.c: Fixed video modes menu on Win32

2002-06-14 02:49  knghtbrd

	* pr_edict.c: Someone has been programming QC too long.  (At least
	it was QC related!)

2002-06-13 12:38  lordhavoc

	* sys_linux.c, sys_win.c: Fixed major bug in time wrap code, would
	have not advanced clock at all after wrap.  Thanks to Mercury for
	pointing out the bug.

2002-06-12 17:38  lordhavoc

	* r_light.c: Forgot to apply Vic's axial patch for r_light.c, here
	it is.

2002-06-12 17:25  lordhavoc

	* gl_rsurf.c: Optimized AddDynamicLights and StainNode for axial
	surfaces/nodes (respectively), thanks to Vic for example code.

2002-06-12 05:24  molivier

	* menu.c: Added a special key binding menu when compiling for
	BloodBath

2002-06-12 05:22  molivier

	* sys_win.c: Removed an error when compiling with MSVC

2002-06-10 14:43  lordhavoc

	* gl_rsurf.c: faster stainmap code in BuildLightMap

2002-06-10 14:42  lordhavoc

	* sv_main.c, world.c: cleaned up order of bbox checks (whether to
	use the normal mins/maxs, or the clipmins/maxs, or the
	hullmins/maxs), and made use of areanodes culling optional
	(sv_useareanodes 0 will cause it to check against all entities
	every move, for debugging)

2002-06-10 14:40  lordhavoc

	* sv_phys.c: cleaned up SV_Physics_Toss a bit - particularly water
	transitions and floating items

2002-06-10 12:07  lordhavoc

	* cl_particles.c: get rid of velocity jittering on rain and snow,
	except for horizontal jitter on snow while falling (since that is a
	desired effect), should make snow work at low velocities

2002-06-10 10:21  lordhavoc

	* sv_phys.c: advance angles as well as origin on clients when
	noclipping (why?  I don't know, consistency)

2002-06-08 17:36  lordhavoc

	* sv_phys.c: step up stairs while flying

2002-06-08 17:30  lordhavoc

	* pr_cmds.c, server.h, sv_move.c, sv_phys.c, sv_user.c, world.c,
	world.h: SV_PointContents removed (all calls replaced with
	Mod_PointInLeaf, which is faster) SV_HullPointContents removed (no
	longer needed) SV_TestEntityPosition now returns an int (true if in
	solid) rather than an edict_t * sv_jumpstep added - step up while
	airborn, for example when jumping sv_wallfriction added - to allow
	it to be turned off if desired fly and noclip movement for players
	is now more like swimming

2002-06-08 17:26  lordhavoc

	* cl_particles.c: made snow smaller and slightly transparent, looks
	better now

2002-06-08 17:23  lordhavoc

	* sys_linux.c: timer now simply returns the same time twice if the
	OS value wraps, and posts a warning (rather than Sys_Error)
	whitespace cleanup

2002-06-08 17:20  lordhavoc

	* sys_win.c: timer now simply returns same time twice if the time
	input wraps, and posts a warning about this occurring, rather than
	doing a Sys_Error cleaned up lots of code, mostly timer related.

2002-06-07 13:37  knghtbrd

	* cd_null.c, makefile: cd_null.c works now.  It's the default
	because cd_linux.c is Linux only.

2002-06-07 12:03  lordhavoc

	* cd_null.c: added back this file from stock quake, so people can
	build with no CD audio if desired...

2002-06-03 10:02  lordhavoc

	* r_light.c: changed model lighting to match map lighting (this
	means it is only barely directional, sadly, but matchs the
	brightness of the map)

2002-06-02 23:14  molivier

	* menu.c: Updated BloodBath maps list

2002-06-02 20:02  lordhavoc

	* gl_backend.c: make r_render skip the 3D rendering code (I forgot
	this before? ick)

2002-06-02 19:19  lordhavoc

	* gl_rmain.c: removed unneeded r_render check

2002-06-02 19:07  lordhavoc

	* gl_rmain.c: disable hidden surface removal by default

2002-06-02 12:52  knghtbrd

	* builddate.c, cd_linux.c, cd_win.c, cgame.c, cgamevm.c,
	cl_collision.c, cl_demo.c, cl_input.c, cl_light.c, cl_main.c,
	cl_parse.c, cl_particles.c, cl_screen.c, cl_tent.c, cmd.c,
	collision.c, common.c, console.c, crc.c, cvar.c, fractalnoise.c,
	gl_backend.c, gl_draw.c, gl_models.c, gl_rmain.c, gl_rsurf.c,
	gl_textures.c, host.c, host_cmd.c, image.c, in_svgalib.c, in_win.c,
	keys.c, mathlib.c, menu.c, model_alias.c, model_brush.c,
	model_shared.c, model_sprite.c, net_bsd.c, net_dgrm.c, net_loop.c,
	net_main.c, net_udp.c, net_win.c, net_wins.c, net_wipx.c,
	palette.c, portals.c, pr_cmds.c, pr_edict.c, pr_exec.c, protocol.c,
	quakeio.c, r_clip.c, r_crosshairs.c, r_explosion.c, r_lerpanim.c,
	r_light.c, r_modules.c, r_sky.c, r_sprites.c, sbar.c, screen.h,
	snd_alsa_0_5.c, snd_dma.c, snd_mem.c, snd_mix.c, snd_oss.c,
	snd_win.c, sv_light.c, sv_main.c, sv_move.c, sv_phys.c, sv_user.c,
	sys_linux.c, sys_shared.c, sys_win.c, transform.c, ui.c,
	vid_3dfxsvga.c, vid_glx.c, vid_shared.c, vid_wgl.c, view.c, wad.c,
	world.c, zone.c: A minor removal of a few pieces of dead code. 
	Nothing major.	This is stage two.

2002-06-02 06:47  knghtbrd

	* buildnumber.c: Unused.

2002-06-02 06:43  knghtbrd

	* bspfile.h, cdaudio.h, cg_math.h, cgame_api.h, cl_light.h,
	cl_screen.h, client.h, cmd.h, common.h, conproc.h, console.h,
	crc.h, cvar.h, draw.h, gl_backend.h, gl_warp_sin.h, glquake.h,
	image.h, input.h, keys.h, makefile, mathlib.h, menu.h,
	model_alias.h, model_brush.h, model_shared.h, model_sprite.h,
	model_zymotic.h, modelgen.h, net.h, net_dgrm.h, net_loop.h,
	net_udp.h, net_wins.h, net_wipx.h, palette.h, portals.h, pr_comp.h,
	pr_execprogram.h, progdefs.h, progs.h, protocol.h, quakedef.h,
	r_clip.h, r_lerpanim.h, r_light.h, r_modules.h, r_textures.h,
	render.h, sbar.c, sbar.h, screen.h, server.h, sound.h, spritegn.h,
	sys.h, transform.h, ui.h, vid.h, wad.h, winquake.h, world.h,
	zone.h: DP code cleanup, stage one - all headers that can be
	protected by ifdef and define now are.	Some dead code found in
	them was also removed.

2002-06-01 14:30  lordhavoc

	* cl_screen.c: remove unused DrawNotifyString, fix intermission
	screen so only the finale-style intermission screens print a
	message slowly onto the screen

2002-06-01 14:27  lordhavoc

	* palette.c: added -texgamma, -texcontrast, -texbrightness, these
	manipulate the palette (note: only affects quake palette images) in
	ways similar to qgamma (or so I assume, having never used it),
	possibly useful, sorta

2002-06-01 14:04  lordhavoc

	* gl_backend.c: use volatile on icolor and fcolor pointers in
	GL_ConvertColorsFloatToByte to avoid aliasing problems (aliasing is
	exactly what that code is doing, after all)

2002-05-29 04:28  mercury

	* collision.c: I have commit access to DP? When did that happen?
	
	Fix the flying backpacks, just moving two lines, one of which is a
	comment.

2002-05-26 23:54  lordhavoc

	* gl_draw.c: attempt at working around a NVIDIA 23.11 TNT driver
	bug which causes the menu text to be squished to the top

2002-05-26 23:48  lordhavoc

	* collision.c: make bbox collisions work again

2002-05-26 23:47  lordhavoc

	* gl_backend.c: fix for gl_mesh_maxtriangles not defaulting
	correctly and raised minimum limit to 1024

2002-05-26 23:44  lordhavoc

	* cl_particles.c: added some smoke to the fire effect (requested
	for bloodbath)

2002-05-22 03:08  lordhavoc

	* collision.c: fix for uninitialized start/end of trace against
	bbox (oops!!)

2002-05-22 02:57  lordhavoc

	* collision.c: added RecursiveHullCheckPoint for quicker tracing of
	a single point (that is to say: start == end) rewrote
	RecursiveHullCheck a few times trying to improve it and gave up
	(epsilons are finicky), mostly reverted, however the mid point
	calculation is more accurate (this fixes the 'can't move' bug)

2002-05-21 20:17  lordhavoc

	* gl_models.c, mathlib.c, mathlib.h, r_sprites.c: fix a bunch of
	pointer type warnings introduced by the change to const parameters
	in R_ConcatRotations and R_ConcatTransforms (now take float *
	instead of two dimensional array)

2002-05-21 04:12  lordhavoc

	* .cvsignore: ignore various MSVC files (.opt, .plg, .ncb) and .exe

2002-05-21 04:10  lordhavoc

	* .cvsignore: ignore .o files

2002-05-21 03:49  lordhavoc

	* darkplaces.dsp: added collision.c, cl_collision.c. collision.h,
	cl_collision.h

2002-05-21 03:47  lordhavoc

	* cgamevm.c, chase.c, cl_collision.c, cl_collision.h, cl_main.c,
	cl_particles.c, client.h, collision.c, collision.h, makefile,
	makefile.mingw, r_explosion.c, r_light.c, sv_main.c, world.c,
	world.h: split out RecursiveHullCheck and related code into
	collision.c (shared by client and server, doesn't care what an
	entity is), and cl_collision.c (CL_TraceLine and related code),
	this cleans up a lot of messy RecursiveHullCheck calls, replacing
	them with Collision_ClipTrace calls also removed some commented out
	code and fixed an epsilon glitch in RecursiveHullCheck which was
	mostly visible when shooting a gun along a wall at angles nearly
	parallel with the wall

2002-05-21 03:36  lordhavoc

	* mathlib.c, mathlib.h: made various things take const pointers
	(optimizer hint), commented out and/or removed a lot of unused
	functions

2002-05-21 03:22  lordhavoc

	* sv_user.c: changed Length() call to VectorLength() macro in two
	places

2002-05-21 03:20  lordhavoc

	* view.c: changed Length() call to VectorLength() macro...  inside
	a comment...  yes pointless I know...

2002-05-21 03:18  lordhavoc

	* pr_cmds.c: optimized (now does not use a sqrt for each entity)
	and improved findradius (now compares sphere against bboxes, rather
	than entity centers)

2002-05-20 20:51  lordhavoc

	* makefile.mingw: build for -mwindows (so it doesn't open a
	console)

2002-05-20 19:32  lordhavoc

	* model_alias.c: validate animations in zym models

2002-05-18 18:30  lordhavoc

	* model_brush.c: fix for really dumb mistake (missing memset) in
	Mod_SplitSurfMeshIfTooBig

2002-05-15 23:54  lordhavoc

	* gl_backend.c, glquake.h, vid_shared.c: now fetchs wgl functions
	now works with all drivers I would hope (tries both
	wglGetProcAddress and GetProcAddress to get a function's address)
	now detects both glDrawRangeElements (1.2 function) and
	GL_EXT_draw_range_elements (1.1 and above extension) now tunes
	gl_mesh_maxtriangles based on DrawRangeElements limitations
	reported by driver (if available)

2002-05-15 23:51  lordhavoc

	* gl_textures.c: use qglDeleteTextures, not glDeleteTextures

2002-05-15 02:04  lordhavoc

	* gl_rsurf.c: increased MAX_SURFVERTS to hold as many as the surf
	mesh splitter in model_brush.c allows (and added comment saying so)

2002-05-15 01:56  lordhavoc

	* cl_main.c, client.h, gl_rsurf.c, model_brush.c, model_brush.h,
	r_light.c: muzzleflash fades out changed .lights file format very
	slightly to add customizable distance bias (softness) now splits
	surface meshs bigger than 1000 tris into multiple smaller ones
	automatically while loading

2002-05-15 01:53  lordhavoc

	* r_sky.c: reduced skysphere from 2048 triangles to 1024

2002-05-14 21:00  lordhavoc

	* model_brush.c, model_brush.h, model_shared.h, r_light.c:
	directional static lighting support (but not fast yet), for maps
	compiled with (as yet unreleased) new version of hlight

2002-05-14 20:57  lordhavoc

	* gl_models.c, gl_textures.c, vid_shared.c, vid_wgl.c, r_clip.c,
	vid_3dfxsvga.c, vid_glx.c: change a lot of calls from gl to qgl

2002-05-14 20:55  lordhavoc

	* pr_cmds.c: oops forgot to commit this piece of the unsuccessful
	support for floating items

2002-05-14 19:30  lordhavoc

	* sv_main.c, sv_phys.c: sv_stepheight cvar, SV_Init now calls
	SV_Phys_Init, and another unsuccessful attempt to make items float
	in air if spawned on soon-deleted platforms (mapper trick for
	floating items)

2002-05-14 19:25  lordhavoc

	* gl_backend.c: slight optimizations to GL_ConvertColorsFloattoByte

2002-05-14 03:43  lordhavoc

	* vid_shared.c: search for GL functions using GetProcAddress on
	win32 instead of wglGetProcAddress (which only lists extensions,
	apparently), fixes inability to find GL 1.1.0 functions in 3dfx
	driver (maybe NVIDIA and others, only tested 3dfx)

2002-05-14 03:40  lordhavoc

	* gl_backend.c: independent control of gl_mesh_maxtriangles and
	gl_mesh_transtriangles (that is to say you can have more
	transparent triangles than normal ones, they get rendered in batchs
	anyway)
	
	also a check for meshs too big for 3DFX drivers, which might fix
	problems for some people, I dunno, I was unable to reproduce the
	problem on my voodoo2 this time (has occurred in the past, maybe
	something else is broken in the gl_backend preventing it from
	overflowing the vertex buffers of the driver)

2002-05-04 05:08  lordhavoc

	* model_brush.c, model_brush.h, progs.h, sv_phys.c, world.c:
	cleaned up and fixed collisions with brush models (example: you can
	now ramp jump and hit the light fixture in e4m1 in dp mod), now
	uses 3 different bounding boxes for the trace (hullmins/hullmaxs
	for collisions with brush models, mins/maxs for collisions with
	normal entities, mins2/maxs2 for collisions with monsters), and the
	movebounds use the largest of the bounding boxes to ensure proper
	collisions items suspended in the air on a func_door (or similar)
	entity which is then killed by a trigger, should now continue
	floating in the air (this is a gross hack, to make suspended items
	in various maps stay in the air)

2002-05-04 05:04  lordhavoc

	* gl_backend.c, gl_draw.c, gl_rmain.c, gl_textures.c, glquake.h,
	vid_shared.c: mostly dynamic GL binding (more needs to be done, but
	it's closer) added gl_mesh_drawmode cvar (3 = drawrangeelements (if
	available), 2 = drawelements, 1 = arrayelement, 0 = completely
	manual), 0 should get the 3dfx glquake minigl running...

2002-05-03 15:07  lordhavoc

	* sv_phys.c: reverted embedded-in-other-object behavior to
	sticking, rather than allowing you to walk through it, to fix many
	maps

2002-05-03 15:06  lordhavoc

	* gl_draw.c: hopefully this fixes the problem in TNT drivers with
	the options menu (too much text in one batch)

2002-04-30 00:37  lordhavoc

	* palette.c: i is not longer an unsigned short in
	Palette_Setup8to24

2002-04-29 23:28  lordhavoc

	* gl_draw.c, gl_textures.c, r_clip.c: more cleaning -
	glTexParameterf replaced with glTexParameteri

2002-04-29 23:24  lordhavoc

	* gl_backend.c, gl_backend.h, gl_draw.c, r_clip.c: changed
	texrgbscale to int rather than float, this allowed me to change all
	remaining glTexEnvf calls to glTexEnvi

2002-04-29 23:03  lordhavoc

	* gl_draw.c: no longer uses glColor3f at all

2002-04-29 23:02  lordhavoc

	* glquake.h: disabled lookup of unused multitexture function
	(glMultiTexCoord2f)

2002-04-29 22:43  lordhavoc

	* vid_shared.c: disabled lookup of unused multitexture function
	(glMultiTexCoord2f)

2002-04-28 13:15  lordhavoc

	* snd_mem.c: fix for misparsing of sound length in "data" chunk of
	WAVE, this should fix stereo sound crashs

2002-04-28 12:41  lordhavoc

	* snd_mem.c: some cleaning which seems to have fixed (I hope?) a
	crash in stereo 16bit sound resampling when source and destination
	rates are the same

2002-04-28 12:37  lordhavoc

	* pr_edict.c: fix for savegames containing newlines inside strings
	(now they are converted to escape codes, which COM_Parse will
	happily dismantle again when loading)

2002-04-28 12:35  lordhavoc

	* cl_parse.c, protocol.h: minor cleaning of obsolete protocol stuff
	(svc_fog is now considered unused, because it really never was
	used)

2002-04-11 21:24  lordhavoc

	* makefile.mingw: cleaned up the newlines (carriagereturn
	carriagereturn linefeed?  weird!)

2002-04-11 02:33  lordhavoc

	* gl_backend.c, gl_rsurf.c, mathlib.c, model_alias.c,
	model_brush.c, model_shared.c, model_sprite.c, r_clip.c, r_light.c,
	zone.c, zone.h: removed silly uses of 'long' (now int, or qbyte *,
	depending on the way it was used), and changed memheader sentinels
	to work on processors which can not handle unaligned memory access
	(Sparc for example)

2002-04-11 02:30  lordhavoc

	* gl_rmain.c: timerefresh works more sanely again

2002-04-05 19:43  lordhavoc

	* cl_main.c, server.h, sv_main.c, sv_user.c: added back the hacky
	NAT routing fix since it actually does work, the win32 problems
	were unrelated and have been fixed

2002-04-05 01:34  lordhavoc

	* cl_parse.c, net_dgrm.c: MSG_Read functions are never used inside
	if's anymore (this fixes some problems with MSVC)

2002-04-05 01:32  lordhavoc

	* r_explosion.c: minor cleanup/simplification (though a bit of a
	de-optimization) of explosion shading, might fix a glitch or two on
	the edges, not sure

2002-04-01 01:14  lordhavoc

	* darkplaces.dsp: newline change?

2002-04-01 01:00  lordhavoc

	* cl_main.c, server.h, sv_main.c, sv_user.c: removed hacky network
	code that tried to make DP work through NAT routers (but infact
	just broke everything, sigh)

2002-04-01 00:58  lordhavoc

	* host.c: fix for dedicated server spewing error about cl_avidemo

2002-03-29 21:04  lordhavoc

	* cl_screen.c, common.c, common.h, gl_backend.c, gl_backend.h,
	host.c, image.c, image.h, snd_mix.c: added cl_avidemo cvar (saves a
	series of tga images named gamedir/dpavi000000.tga and so on, the
	parameter to it is the framerate to save, locks framerate to this
	while saving, set back to 0 to stop - note there is sound saving
	code but it is commented out because it's always desynchronized to
	the video because quake has such a lousy sound engine)

2002-03-29 21:00  lordhavoc

	* model_brush.h: forgot to commit this before

2002-03-29 19:04  lordhavoc

	* filematch.c: force filenames to lowercase in listdirectory code
	on windows

2002-03-27 02:21  lordhavoc

	* makefile: -lXIE does not seem to be necessary, disabled (but left
	a comment incase anyone needs it)

2002-03-27 01:13  lordhavoc

	* gl_rmain.c, gl_rsurf.c: removed fog shaderstage, merged it into
	the normal stage

2002-03-26 19:44  lordhavoc

	* gl_rsurf.c, model_brush.c, model_brush.h: reorganized shader
	rendering calls to process the whole surface chain multiple times
	in the shader function (pretty fast), rather than calling the
	shader function multiple times per surface (slow!)

2002-03-26 19:42  lordhavoc

	* cl_particles.c: smoke is alpha again (not additive), rather dark
	in appearance, lingers longer

2002-03-26 19:40  lordhavoc

	* protocol.c: massive speedups (removed a few 256k memsets)

2002-03-26 16:34  lordhavoc

	* menu.c: added some (not yet used) key config menu code, part of a
	redesign for loading the key config menu layout from configs (more
	specifically default.cfg in DP mod and any others that use it)

2002-03-26 09:47  eviltypeguy

	* filematch.c: Added newline at end for lame gcc versions ;)

2002-03-26 04:40  molivier

	* menu.c: Some menu customizations for BloodBath

2002-03-26 01:55  molivier

	* pr_cmds.c: Fixed PF_registercvar

2002-03-25 16:47  lordhavoc

	* gl_rsurf.c, model_brush.c, model_brush.h: minor speed increase in
	surface shaders, by splitting out surfaces with and without
	fullbrights into different shader code

2002-03-25 15:00  lordhavoc

	* darkplaces.dsp, makefile.mingw: updated MSVC and mingw files to
	compile filematch.c

2002-03-25 14:51  lordhavoc

	* filematch.c, makefile, common.c, common.h: now loads
	gamedir/*.pak instead of gamedir/pak#.pak, sorted by ASCII value
	(note: lowercase overrides uppercase)

2002-03-25 14:48  lordhavoc

	* cl_screen.h: reduced the drawqueue buffer from 1mb to 256k
	(really it only needs about 60k)

2002-03-25 14:46  lordhavoc

	* host.c: seed the random number generator with the current time at
	startup (quake never seeded it)

2002-03-25 04:38  molivier

	* net_main.c: DarkPlaces should always wait for connections in
	BloodBath mode

2002-03-21 23:12  molivier

	* common.c, host.c, menu.c: A few minor changes for BloodBath
	support (including the map list); more to come

2002-03-20 11:06  lordhavoc

	* menu.c: cleaned up nehahra demo list cleaned up level/episode
	system, now it is much easier (and cleaner) to add new
	maps/episodes/games

2002-03-20 11:05  lordhavoc

	* common.c, common.h: added -bloodbath game

2002-03-20 09:31  lordhavoc

	* common.c: fix for CreatePath creating a directory of the drive's
	letter in windows (d:\quake created a d directory, then d:
	(ignored), then d:\quake, now creates d: (ignored), then d:\quake) 
	(thanks Elric)

2002-03-20 09:29  lordhavoc

	* menu.c: fixed options menu item count (thanks Elric)

2002-03-17 08:32  lordhavoc

	* cl_main.c, cl_particles.c, client.h, protocol.h: added
	EF_STARDUST effect (showering golden sparks, and the entity glows)
	reduced rocket glow a little made blood stains brighter again (so
	you can at least see the floor) EF_STARDUST and EF_FLAME now create
	a fixed size effect rather than attempting to use the model
	bounding box (which is too big usually)

2002-03-17 07:56  lordhavoc

	* protocol.c: fix for EF_FLAME and lots of other bugs with
	16bit/8bit fields (modelindex, frame, effects)

2002-03-16 07:00  lordhavoc

	* cl_input.c, cl_parse.c, common.c, protocol.c, protocol.h,
	sv_main.c: changed protocol back to using float coordinates, unless
	the mod specifies EF_LOWPRECISION on an entity, then it is sent
	using shorts (if it is within the short range, otherwise it uses
	floats), this loses some bandwidth but makes everything look nice
	(lifts aren't jerky, etc)

2002-03-16 06:51  lordhavoc

	* makefile: added note not to use athlon optimizations in current
	gcc versions

2002-03-16 06:49  lordhavoc

	* net_dgrm.c: whitespace

2002-03-16 06:46  lordhavoc

	* sv_phys.c: don't do down traces if sitting on the floor of world
	(world never moves, so we can skip it), restores a lot of the speed
	lost in recent commits

2002-03-16 06:45  lordhavoc

	* world.c: Check bbox for overlap even on bmodels again (disabling
	it was a speed loss)

2002-03-15 06:40  lordhavoc

	* cl_particles.c: darkened blood

2002-03-14 11:54  lordhavoc

	* cl_particles.c: changed blood settings (note: these are saved
	cvars, so clear your config for them to take effect)

2002-03-14 11:52  lordhavoc

	* cl_particles.c: randomized blood and smoke color a bit
	(darker/brighter randomly), got rid of smoke texture color (so now
	it fogs for free, no state thrash), looks a bit worse on blood, but
	oh well

2002-03-14 11:46  lordhavoc

	* r_lerpanim.c: Hide no such frame warning if developer is off

2002-03-14 11:26  lordhavoc

	* model_sprite.c: workaround for absolutely empty sprites (Nehahra
	s_null.spr)

2002-03-14 08:46  molivier

	* darkplaces.dsp, makefile.mingw: Removed references to
	r_particles.c

2002-03-14 05:30  lordhavoc

	* cl_particles.c, client.h, makefile, r_particles.c: Merged
	r_particles.c back into cl_particles.c to reduce overhead
	(renderparticle stuff is gone now)

2002-03-13 16:04  lordhavoc

	* sv_phys.c: MOVETYPE_STEP entities should now fall when support is
	removed (even if it is not a MOVETYPE_PUSH object beneath them),
	and fish fall if in the air

2002-03-13 16:02  lordhavoc

	* world.c: skip bbox check on bmodels because it is fast enough to
	trace against their hull and has less problem cases commented out
	no longer useful clip.trace.allsolid check in SV_Move

2002-03-13 15:59  lordhavoc

	* r_sprites.c: sprite code now uses left vector instead of right,
	and upright facing sprites now work correctly

2002-03-13 15:57  lordhavoc

	* gl_rsurf.c: fog water when r_wateralpha is 1

2002-03-13 15:56  lordhavoc

	* sv_main.c: greatly improved chances of an entity being visible
	(in traceline test), checks nearest point (typically corner) on
	bbox as well as a random trace

2002-03-13 05:58  lordhavoc

	* sv_phys.c, world.c: fix for
	fall-through-floor-when-embedded-in-another-entity situation (now
	the entity only falls through entities it is embedded in, and
	blocks on all others), and another fix for grenade bounce sound,
	also some cleanup of the toss physics code, and corpses no longer
	block against eachother

2002-03-13 05:46  lordhavoc

	* makefile: added athlon CPU choice (for gcc 2.96 and up)

2002-03-13 04:23  lordhavoc

	* sv_phys.c: fixed grenades to behave more like quake again (60
	normal-dot-velocity tolerance for stopping), fixed continuous
	bounce sound (repeated touch when sitting on floor), you can now
	walk on SOLID_SLIDEBOX/SOLID_BBOX objects (like in Q2/Q3), if two
	objects are stacked and the bottom one moves out from under, the
	top one will fall (always wished quake would do that)

2002-03-13 02:41  lordhavoc

	* cl_particles.c: knight/scrag/vore trail effects are half as
	intense now

2002-03-12 21:56  lordhavoc

	* vid_wgl.c: whoever last modified this forgot a rather important ;

2002-03-12 09:14  lordhavoc

	* cl_particles.c: more subtle rocket smoke

2002-03-12 08:57  lordhavoc

	* cl_particles.c, cl_screen.c, console.c, gl_backend.c,
	gl_models.c, gl_rmain.c, gl_textures.c, host.c, image.c, image.h,
	keys.c, net_dgrm.c, r_explosion.c, r_light.c, r_light.h, vid_wgl.c:
	added cl_particles_blood_size_min, cl_particles_blood_size_max, and
	cl_particles_blood_alpha cvars changed trails back to quake-style
	(spawn over distance, not over time) pt_fade now takes a fade rate
	(in p->time2) many tweaks to particle effets loading screens work
	correctly now cleaned up backend code a bit, now does not freak out
	if a texture upload occurs during rendering added r_quickmodels
	(default: on) which makes single-pass models (the vast majority of
	models) store vertex data directly into the backend arrays (using
	R_Mesh_Draw_GetBuffer) model vertex transforms are now applied
	*after* lighting, this avoids transforming the normals, and
	prepares for someday adding transforms to the backend fixed view
	blend in gl_rmain.c to work correctly with fov values above 90
	moved image resampling and mipmapping from gl_textures.c to image.c
	now updates screen twice while connecting to a server (so it
	displays the 'trying...' messages) improved directional shading of
	explosions disabled r_lightmodelhardness since the default was
	nearly 1.0 anyway, 1.0 is a special quick case R_LightModel now
	tints the model and can accept vertices/normals in either model or
	world coordinates (previously required world coordinates)

2002-03-09 21:04  lordhavoc

	* model_brush.c: check for empty submodels (lacrima.bsp for
	example)

2002-03-04 03:10  lordhavoc

	* r_explosion.c: slowed down explosion so it lasts about as long as
	the light flash

2002-03-04 03:09  lordhavoc

	* sv_phys.c: greatly improved movetype bounce stopping check to
	consider the angle of the surface

2002-03-04 03:08  lordhavoc

	* sv_main.c: don't send entities outside addressable origin range
	(+-32767)

2002-03-01 04:53  lordhavoc

	* cl_screen.c: fix for being stuck on a loading screen when it
	could not find the map (and any other such failures)

2002-03-01 04:52  lordhavoc

	* menu.c: added Texture Combine option to menu

2002-03-01 04:27  lordhavoc

	* cl_demo.c, cl_parse.c, cl_screen.c, console.c, gl_backend.c,
	gl_backend.h, gl_models.c, gl_rmain.c, host.c, host_cmd.c, menu.c,
	r_sky.c, screen.h, vid_3dfxsvga.c, vid_glx.c, vid_wgl.c: reenabled
	loading plaques (and cleaned up that code a lot) moved
	screenshot/envmap code from gl_backend.c to cl_screen.c (except for
	the GL SCR_ScreenShot function of course) cleaned up trailing
	whitespace in console.c backend between-batch overhead is now
	pretty much non-existent (set up state at start of frame, keep it
	until end of 3D rendering) default batch size is now 0 triangles
	(never batch) index array is not offset for first mesh in batch
	(which might be the only mesh in the batch) does not lock arrays
	until it tries to render the first mesh moved
	GL_LockArray/GL_UnlockArray from gl_models.c to gl_backend.c made
	GL calls in r_sky.c unnecessary (now uses R_Mesh_ClearDepth) made
	every enum in GL_PrintError (used by CHECKGLERROR) optional, for
	consistency (not that any GL headers would lack most of them)
	inlined MYgluPerspective removed a few unnecessary GL calls in
	frame setup code reformatted uses of CHECKGLERROR to be on the same
	line as the function they are checking (looks cleaner) increased
	MAX_TEXTUREUNITS from 4 to 8 (not that there is any code trying to
	use more than 2 textures anyway) calling R_RenderView with no
	worldmodel is no longer fatal (just returns) R_Mesh_Clear renamed
	to R_Mesh_Start R_Mesh_Finish added (ends 3D rendering) cleaned up
	some cruft in screen.h moved gldepthmin/max from vid_ files to
	gl_backend, and then commented it out anyway (not currently used)

2002-02-28 16:13  lordhavoc

	* makefile.mingw: changed mingw makefile to by default not compile
	for any specific processor

2002-02-28 02:36  lordhavoc

	* gl_models.c, gl_rsurf.c: fixed fogging on models and opaque
	liquids (teleport/lava)

2002-02-28 02:35  lordhavoc

	* r_sprites.c: made sprite interpolation optional with a #define
	(enabled currently, looks too bad ingame without it)

2002-02-27 23:15  lordhavoc

	* cl_input.c, vid_shared.c: fixed some majorly messed up fixes to
	the angle clamping

2002-02-27 22:43  lordhavoc

	* vid_glx.c: fixed some sloppyness in my earlier input merging

2002-02-27 18:58  lordhavoc

	* conproc.c, in_win.c, makefile.mingw, snd_win.c: fix mingw
	warnings

2002-02-27 17:38  lordhavoc

	* cl_input.c, cl_main.c, in_svgalib.c, in_win.c, input.h, vid.h,
	vid_glx.c, vid_shared.c: cleaned up mouse input system fixed a bug
	with svc_setangle on pitch (it was immediately getting clamped in
	some cases, which made it quite useless)

2002-02-26 21:07  lordhavoc

	* cd_win.c: fixed warnings in mingw

2002-02-26 21:06  lordhavoc

	* winquake.h: removed unneeded protocol

2002-02-26 20:57  lordhavoc

	* gl_backend.c: added glFlush call when done feeding geometry, to
	get a very nice speed boost, and removed unnecessary glFinish
	(since VID_Finish does one itself)

2002-02-26 20:00  lordhavoc

	* makefile.mingw, mingw_note.txt: darkplaces now compiles in mingw

2002-02-26 19:58  lordhavoc

	* bspfile.h, cd_linux.c, cd_win.c, cdaudio.h, cgamevm.c, cgamevm.h,
	cl_input.c, cl_main.c, cl_parse.c, cl_particles.c, cl_screen.c,
	cl_screen.h, cl_tent.c, client.h, common.c, common.h, console.h,
	crc.c, crc.h, fractalnoise.c, gl_backend.c, gl_draw.c, gl_models.c,
	gl_rsurf.c, gl_textures.c, image.c, image.h, mathlib.c, mathlib.h,
	menu.c, model_alias.c, model_brush.c, model_brush.h,
	model_shared.c, model_shared.h, model_sprite.c, modelgen.h, net.h,
	net_dgrm.c, net_loop.c, net_udp.c, net_udp.h, net_wins.c,
	net_wins.h, net_wipx.c, net_wipx.h, palette.c, palette.h,
	pr_cmds.c, pr_comp.h, pr_edict.c, pr_execprogram.h, progs.h,
	protocol.c, protocol.h, quakedef.h, r_clip.c, r_crosshairs.c,
	r_explosion.c, r_light.c, r_particles.c, r_sky.c, r_textures.h,
	render.h, sbar.c, server.h, snd_mem.c, sound.h, sv_light.c,
	sv_main.c, sys_win.c, ui.c, vid_3dfxsvga.c, vid_shared.c,
	vid_wgl.c, wad.c, wad.h, winquake.h, world.c, zone.h: renamed byte
	to qbyte throughout engine to eliminate a mingw conflict

2002-02-26 15:20  lordhavoc

	* world.c: hopeful fix for flymove !trace.ent error

2002-02-25 05:46  lordhavoc

	* cl_parse.c, model_shared.c: removed a few CheckSentinelsGlobal
	calls to get a loading speedup

2002-02-25 04:58  lordhavoc

	* gl_backend.c: removed gl_mesh_merge feature due to unknown
	buggyness

2002-02-25 04:52  lordhavoc

	* gl_backend.c, gl_backend.h, gl_models.c, gl_rsurf.c,
	model_alias.c, model_alias.h, model_shared.h, r_light.c: cleaned up
	backend code a bit more, added R_Mesh_Draw_GetBuffer (untested -
	returns addresses in geometry buffers to fill in, to save memcpy on
	singlepass objects), rewrote Q2 model loading (now Q2 models are
	the same as Q1 models after loading), removed Q2 model renderer
	(and good riddence!), changed aliasvert array from 3 float to 4
	float alignment to make copies faster

2002-02-25 00:31  lordhavoc

	* in_svgalib.c, in_win.c, vid.h, vid_glx.c, vid_shared.c: added
	in_pitch_min and in_pitch_max cvars to limit pitch (default: -90 to
	+90)

2002-02-24 23:14  lordhavoc

	* gl_backend.c: clean up

2002-02-24 19:47  lordhavoc

	* r_sky.c, render.h: removed mergesky code

2002-02-24 19:45  lordhavoc

	* gl_rsurf.c, r_sky.c, render.h: removed r_mergesky

2002-02-24 18:06  lordhavoc

	* cl_main.c, gl_backend.c, gl_backend.h, gl_rmain.c, view.c:
	removed gl_viewmodeldepthhack fixed gl_mesh_merge bug (which was
	causing bizarre glitchs) added mesh index validation when DEBUGGL
	is enabled

2002-02-24 15:48  lordhavoc

	* gl_textures.c: improved internal texture management error
	messages

2002-02-24 15:40  lordhavoc

	* r_light.c, r_particles.c, r_sprites.c: Forgot to commit removal
	of DrawDecal

2002-02-23 23:22  lordhavoc

	* gl_backend.c, gl_backend.h: restructured transparent mesh
	processing to do conversion from straight index list to transtris
	during AddTransparent

2002-02-23 21:06  lordhavoc

	* gl_backend.c: cleaned up lots of unused code, restructured where
	certain operations are done (index lists are now relative to
	mesh->firstvert until R_Mesh_Render, for instance) working toward
	major speed gains by avoiding geometry copying

2002-02-23 14:48  lordhavoc

	* gl_backend.c: cleanup of float/byte colors, now colors are always
	floats until R_Mesh_Render converts them to bytes before use

2002-02-23 14:00  lordhavoc

	* r_explosion.c: fix for explosions sometimes not being freed at
	very high framerates

2002-02-23 02:50  lordhavoc

	* pr_cmds.c: CRITICAL fix to checkextension function, it absolutely
	did not work until this fix.

2002-02-23 01:35  lordhavoc

	* sv_phys.c, world.c: major cleanup to pusher and SV_Move code,
	major fixes to pusher code (everything should work right now)

2002-02-23 01:32  lordhavoc

	* pr_edict.c: whitespace

2002-02-23 01:31  lordhavoc

	* r_crosshairs.c: improved client number check to prevent potential
	crashs

2002-02-23 01:30  lordhavoc

	* common.c: removed -zone mention from SZ_GetSpace overflow error

2002-02-22 02:41  lordhavoc

	* r_explosion.c: fixed bugs with explosion intensity shading
	according to view direction

2002-02-20 00:59  molivier

	* gl_draw.c: Modified 3 casts to get rid of a few warnings in
	MSVC6.

2002-02-20 00:08  lordhavoc

	* makefile: changed clean to delete *.o

2002-02-19 02:56  lordhavoc

	* cl_input.c, cl_main.c, cl_parse.c, cl_screen.c, client.h,
	in_svgalib.c, in_win.c, net_dgrm.c, net_loop.c, pr_edict.c,
	progs.h, protocol.h, server.h, sv_main.c, sv_user.c, vid_glx.c:
	added viewzoom extension to QC and client (smooth sniper zooming,
	with sensitivity scaling) protocol should be able to masq now (not
	a perfect fix like net_chan, but a fix for most people - I hope) -
	server waits to send serverinfo until first reply from client (any
	clc_ message will do), client spams clc_nop every 3 seconds until
	it gets serverinfo (FIXME: maybe only once would do?) upgraded
	aiming angles sent from client to floats in DPPROTOCOL_VERSION2
	mode updated cl_shownet 2 svc name list in cl_parse.c (it was quite
	outdated)

2002-02-18 02:49  molivier

	* darkplaces.dsp: Updated DSP file

2002-02-17 22:35  lordhavoc

	* chase.c, cl_input.c, cl_main.c, cl_parse.c, client.h, common.c,
	common.h, pr_cmds.c, progs.h, protocol.c, protocol.h, server.h,
	sv_main.c, sv_user.c, view.c: new entity protocol, GREATLY improved
	over quake, massive net traffic reduction

2002-02-17 20:57  lordhavoc

	* gl_textures.c: fixed dedicated erroring on startup

2002-02-17 12:56  lordhavoc

	* protocol.c, protocol.h: new entity protocol nearly complete, but
	still unused

2002-02-15 15:50  lordhavoc

	* cd_linux.c, cd_win.c, menu.c, snd_dma.c, sound.h: changed
	bgmvolume/volume to always be registered, sliders for them always
	work (even with -nosound), but the items are displayed ghosted if
	-nosound or -nocdaudio is used changed all Cvar_SetValue calls to
	Cvar_SetValueQuick

2002-02-15 15:21  lordhavoc

	* sys_linux.c: removed (unused) quake endscreen text

2002-02-15 15:16  lordhavoc

	* cl_screen.c: reduced view warping when underwater

2002-02-15 15:15  lordhavoc

	* menu.c: disable sliders for volume and vgmvolume (CD volume) when
	they do not exist

2002-02-15 14:28  lordhavoc

	* cl_screen.c, cl_screen.h, gl_backend.c, gl_draw.c, gl_rmain.c,
	gl_rsurf.c, gl_screen.c, glquake.h, makefile, menu.c,
	model_brush.h, palette.c, palette.h, protocol.c, protocol.h,
	r_crosshairs.c, render.h, screen.h, vid.h, vid_3dfxsvga.c,
	vid_glx.c, vid_wgl.c: moved a lot of 2D/screen stuff out of
	gl_screen.c into cl_screen.c moved remainder of gl_screen.c into
	gl_backend.c removed gl_screen.c inlined GL_BrightenScreen in
	gl_draw.c moved a lot of GL stuff out of gl_rmain.c into
	gl_backend.c converted polyblend to R_Mesh based replaced
	lighthalf/gl_lightmode with v_overbrightbits renamed contrast to
	brightness, and brightness to contrast (to match monitor controls)
	merged hardware and software brightness/contrast/gamma into
	v_contrast, v_brightness, v_gamma, etc, switchable using v_hwgamma
	(automatically forced off if hardware gamma support is unavailable)
	added ghostable menu items (unavailable gamma, for example)
	rearranged options menu 2D resolution slider added (from 320x240 to
	full resolution) fixed misuse of strncmp for bindings menu (thanks
	Elric) adjustable crosshair size renamed GL_BeginRendering to
	VID_GetWindowSize renamed GL_EndRendering to VID_Finish made
	screenshot and envmap share one function for grabbing images moved
	underwater warping into cl_screen code starting work on new entity
	protocol (not hooked up yet)

2002-02-15 13:40  lordhavoc

	* cl_particles.c: particle tweaks

2002-02-15 13:33  lordhavoc

	* chase.c: double precision RecursiveHullCheck

2002-02-15 13:29  lordhavoc

	* r_particles.c: made smoke/blood texture a little brighter

2002-02-15 13:28  lordhavoc

	* model_alias.c: validate more when loading zymotic models, also
	reverse triangles so they don't render inside out (FIXME: fix this
	in the converter)

2002-02-15 13:27  lordhavoc

	* r_light.c: made corona texture brighter, and rendering of it
	darker, fixes 'white' coronas around lava balls (they needed more
	overbright)

2002-02-15 13:24  lordhavoc

	* world.h, sv_main.c, sv_move.c: double precision
	RecursiveHullCheck

2002-02-15 13:21  lordhavoc

	* gl_models.c: cleaned up zym cruft from debugging

2002-02-15 13:20  lordhavoc

	* cvar.c, cvar.h: added Cvar_SetQuick and Cvar_SetValueQuick (both
	take a cvar_t * instead of a name)

2002-02-15 13:19  lordhavoc

	* sv_phys.c, world.c: fixed rotating+moving pushers (teleport ball
	in end.bsp), cleaned up code a lot double precision
	RecursiveHullCheck

2002-02-13 16:43  lordhavoc

	* gl_models.c: fixed zymotic model transforms (lots of cruft
	leftover that I will clean up soon)

2002-02-06 17:18  eviltypeguy

	* sv_phys.c: Remove pointless and wasteful variable assignment

2002-02-05 07:22  lordhavoc

	* sv_main.c: check if model is NULL when doing trace checking

2002-02-04 19:08  lordhavoc

	* server.h, sv_main.c, world.c: cleaned up entity culling in server
	code, implemented new option - sv_cullentities_trace - traces a
	line from eye to random locations in the model box, if a trace
	succeeds it marks the entity visibility timeout for 1 second in the
	future, and if it fails and the timeout has expired by then, it
	culls the entity.  this method works great for most cases, and is
	far more aggressive (and faster) than pvs culling

2002-02-04 02:36  molivier

	* cgame.c, darkplaces.dsp: Updated DSP file. Fixed a bunch of
	warnings with MSVC6

2002-02-03 08:51  lordhavoc

	* sv_phys.c: fixed numerous bugs in SV_Trace_Toss

2002-02-03 08:50  lordhavoc

	* progs.h: removed steporigin etc, they aren't used anymore

2002-02-03 03:34  lordhavoc

	* cl_decals.c, cl_main.c, cl_particles.c, client.h, gl_rmain.c,
	gl_rsurf.c, makefile, r_decals.c, r_particles.c, render.h: removed
	decals fixed viewmodel disappearing with masked sky (skybox or
	skyquality 2) removed flare particle from rockets (might add it
	back later)

2002-02-03 02:40  lordhavoc

	* gl_backend.c, gl_backend.h, gl_screen.c: rearranged r_speeds
	report a bit, and split up reporting of meshtris into normal and
	transparent categories, also displays number of meshs of each type
	made byte color array format work (byte format is very slightly
	faster than float) disabled float color array format to save some
	memory added gl_mesh_sorttransbymesh cvar (default: on) to get a
	performance gain in mingled mesh conditions (by never mingling
	triangles of different meshs), this mode can batch render
	transparent triangles too (unlike the other two modes) increased
	default maxtriangles to 8192

2002-02-03 02:34  lordhavoc

	* makefile: changed back to profiling, with optimizations, and back
	to alsa 0.5 sound

2002-02-03 02:32  lordhavoc

	* cl_parse.c: fixed monster interpolation in normal quake, which
	makes dpcrush not lerped unfortunately

2002-02-03 02:30  lordhavoc

	* cl_light.c: passing 0 time to CL_AllocDlight now gives a die time
	of 0, not cl.time + 0

2002-02-03 02:29  lordhavoc

	* cl_main.c: muzzleflashs do not keep stacking up on consecutive
	frames now

2002-02-03 02:27  lordhavoc

	* gl_rmain.c: moved viewmodel rendering to avoid polluting the main
	model rendering time

2002-02-03 02:26  lordhavoc

	* r_light.c: removed some old commented out code

2002-02-03 02:25  lordhavoc

	* host.c: lights should not decay now when console is down (pausing
	game), and cleaned up sound update call to not use renderer
	variables

2002-02-03 02:24  lordhavoc

	* r_explosion.c: changed explosion color calculations, they look
	much better now

2002-02-03 02:23  lordhavoc

	* r_light.c: made coronas small and intense, much more noticable
	now

2002-02-02 10:58  lordhavoc

	* r_light.c: coronas now scale with the light radius

2002-02-01 07:28  knghtbrd

	* cgame.c: cgame.c:60: warning: implicit declaration of function
	`memset', fixed

2002-02-01 07:22  knghtbrd

	* buildnumber.c, cgamevm.h, makefile: cgamevm.h:11:6: no newline at
	end of file, fixed.

2002-02-01 03:40  lordhavoc

	* cgame.c: added gib shower effect, they leave no trails but make
	blood marks where they hit...  (note: this is still highly
	experimental and cgame might be removed at some point, and no mods
	use this anyway)

2002-02-01 03:37  lordhavoc

	* cgame_api.h, cgamevm.c: added CGVM_Stain function

2002-02-01 01:22  lordhavoc

	* gl_rsurf.c: removed unnecessary if in setting up divide table for
	dlighting

2002-01-31 23:20  molivier

	* cgame.c, cgamevm.c, darkplaces.dsp, gl_draw.c: Removed warnings
	in MSVC6. Updated the DSP file.

2002-01-31 08:41  lordhavoc

	* builddate.c, buildnumber.c, cg_math.h, cgame.c, cgame_api.h,
	cgamevm.c, cgamevm.h, chase.c, cl_decals.c, cl_main.c, cl_parse.c,
	cl_particles.c, cl_tent.c, client.h, cmd.c, common.c, console.c,
	cvar.c, fractalnoise.c, gl_backend.c, gl_rsurf.c, gl_textures.c,
	host.c, host_cmd.c, makefile, mathlib.c, mathlib.h, menu.c,
	model_alias.c, model_brush.c, model_brush.h, pr_cmds.c, protocol.h,
	quakedef.h, r_explosion.c, r_light.c, render.h, sv_main.c,
	sys_shared.c, vid_glx.c, view.c, zone.c: got rid of buildnumber.c
	and buildnum program, now uses builddate.c (touched each time it is
	built to keep the date changing) clientside TraceLine can now hit
	brush model entities (TraceLine_ScanForBModels updates list of
	entities to check) added *highly experimental* clientside gamecode
	(currently embedded in the engine, just trying things out) which
	currently doesn't do anything really made CL_RelinkEntities only
	called when the client is connected and there is a world model
	added fractalnoisequick (variant of fractalnoise that does not
	allocate/free a temporary buffer, and to achieve this does not use
	the range remapping) added stainmap effects (stained lightmaps),
	which will probably soon replace decals spark showers now pay
	attention to the velocity in the TE_SPARKSHOWER packet (if the mod
	uses this), bullet impacts still have no velocity added
	TE_PLASMABURN (combination of TE_SMALLFLASH and a stain on the
	walls) added svc_cgame (DO NOT USE THIS, EXPERIMENTAL, but so is
	the cgame code itself) Cmd_TokenizeString now uses a fixed size
	buffer instead of many little allocations (speedup by not having
	Z_Malloc/Z_Free happening constantly) cvar code tries very hard to
	avoid reallocating string now va() function now uses a cycling set
	of 8 string buffers to try to avoid conflicts console logging no
	longer uses va() reduced default mesh buffer size from 21760
	triangles to 4096 (transparent triangles are costly enough it's not
	a good idea to exceed this anyway) texture management code now uses
	3 memory pools to give better memory reports according to type of
	data R_UpdateTexture has better memory behavior on non-procedural
	textures now (replaces inputtexels if it has not been uploaded yet,
	otherwise just uploads it directly) added -developer commandline
	option (which is rather hacky) to force developer on for entire
	startup process, to get logging before the configs are read decals
	stick to brush model entities now stains stick to embedded bmodels
	(ones that are part of the map, not ones instanced from outside
	like ammo boxes) skingroups above 0 are not automatically precached
	now (if you have a lot of mods installed in your id1 directory,
	they tend to not use all the skins, which is wasteful) starting a
	new game (from the singleplayer menu) forces deathmatch and coop to
	0 now lightmaps are precached again (can't remember why I ever
	disabled this) changed VectorSet's parameter order to be more
	consistent with other vector ops removed a duplicate registration
	of the vid_mouse cvar (in vid_glx.c)

2002-01-31 04:16  lordhavoc

	* net.h, net_dgrm.c, net_main.c: qsockets are now dynamically
	allocated/freed, this drops memory use by about 2mb

2002-01-29 22:35  eviltypeguy

	* snd_dma.c: Fix for memset glibc bug crash
	
	(why would it read from PROT_WRITE only memory? silly thing...)

2002-01-28 23:10  lordhavoc

	* cl_screen.c: changed free(dat) to Mem_Free(dat) (EWWW I HAD A
	FREE STILL??)

2002-01-28 01:09  lordhavoc

	* gl_textures.c: replaced a bunch of one-line 3-statement while
	loops, with nicer looking one-line for loops

2002-01-27 00:33  lordhavoc

	* gl_rsurf.c: fix problem with dynamic lights on lightmaps wider
	than 18 pixels (oops!)

2002-01-26 23:58  lordhavoc

	* r_light.c: halved corona size

2002-01-26 16:16  lordhavoc

	* buildnumber.c, gl_rmain.c, r_light.c, r_light.h: added coronas
	(glow) to dynamic lights

2002-01-26 16:14  lordhavoc

	* gl_backend.c: added gl_mesh_dupetransverts cvar (found it is a
	slowdown though) moved meshfarclip checking from R_Mesh_Draw to
	R_Mesh_Render

2002-01-26 15:36  lordhavoc

	* gl_rsurf.c: additive water enabled transparency on world polygons
	(not a good idea in existing quake maps, but maybe someday...)

2002-01-26 15:33  lordhavoc

	* cl_particles.c, client.h, r_particles.c: made most particles
	additive (speedup in fog)

2002-01-26 15:30  lordhavoc

	* r_explosion.c: made explosions additive, softened edges (hacky
	but looks good enough), cleaned up some of the physics

2002-01-26 15:27  lordhavoc

	* mathlib.c, mathlib.h: changed most #define macros to use (,,,)
	format instead of {;;;} so they will gobble a ; like a normal
	function

2002-01-26 15:25  lordhavoc

	* cl_tent.c: got rid of cl_glowinglightning cvar, lightning no
	longer glows

2002-01-26 15:24  lordhavoc

	* cl_main.c: made "entities" command show scale and alpha made
	rocket glow a little brighter (25%)

2002-01-26 15:18  lordhavoc

	* gl_textures.c, model_brush.c, r_textures.h: renamed
	R_GetFragmentLocation to R_FragmentLocation

2002-01-25 18:20  lordhavoc

	* view.c: due to Mercury's insistance you can disable bobbing by
	using cl_bobcycle == 0 as well as cl_bob == 0 (cl_bobcycle == 0
	causes NaN bob)

2002-01-25 04:33  molivier

	* darkplaces.dsp, gl_backend.c: Updated MSVC6 project files.
	Vanilla MSVC6 doesn't know the GL_TABLE_TOO_LARGE error... Strange.

2002-01-25 00:31  lordhavoc

	* sbar.c: added back intermission overlays (oops)

2002-01-24 16:45  lordhavoc

	* buildnumber.c, cl_main.c, cl_parse.c, cl_screen.c, cl_screen.h,
	cl_tent.c, client.h, console.c, console.h, draw.h, gl_backend.c,
	gl_backend.h, gl_draw.c, gl_models.c, gl_rmain.c, gl_screen.c,
	gl_textures.c, glquake.h, host.c, host_cmd.c, keys.c, makefile,
	menu.c, model_brush.c, model_shared.c, net_dgrm.c, pr_cmds.c,
	quakedef.h, r_crosshairs.c, r_decals.c, r_particles.c, r_sky.c,
	r_sprites.c, render.h, sbar.c, sv_main.c, ui.c, ui.h, vid_wgl.c,
	view.c, view.h, wad.c: added cl_screen.c/h (eventually most 2D
	stuff should be moved here) removed view.h (merged into client.h)
	cleaned up the animation interpolation code (CL_LerpUpdate) a bit
	more increased interpolation 'teleport' tolerance from 400 units to
	1000 units per frame changed calls to Mod_ForName to not use
	checkdisk (except for viewthing model changes and map changes)
	added viewent to r_refdef moved v_blend to r_refdef all 2D art now
	goes through Draw_CachePic cachepic replaced qpic (in all non-wad
	code) moved all engine generated pics (mousepointer, crosshairs) to
	gl_draw.c (they are called by Draw_CachePic) cachepic now uses a
	hash lookup instead of just a string search added drawqueue to
	r_refdef all 2D art now goes through DrawQ_ functions (drawqueue)
	DrawQ_String now stretchs the character texture a tiny bit, and
	always uses default filtering cleaned out some old cruft in console
	drawing code fixed some silly bugs in showfps made showfps display
	use only 4 characters, and made the text larger, and moved it down
	a little moved showfps from gl_screen.c to sbar.c moved
	Draw_ConsoleBackground to console.c removed drawinput parameter
	from Con_DrawConsole (it was always true) c_alias_polys now counts
	all meshs rendered (a model may be rendered multiple times), not
	just the total number of triangles in the model, much more accurate
	r_speeds2 renamed to r_speeds disabled all Mem_CheckSentinelsGlobal
	calls during gameplay (they were wasting time) r_speeds now
	displays time spent throughout SCR_UpdateScreen code, not just
	R_RenderView frame is now rendered in 'finish begin render' order
	instead of 'begin render finish' order in SCR_Updatescreen - not
	sure if this is a speedup or not BLOCK_SIZE in gl_textures.c
	renamed to block_size and now adjustable (r_max_scrapsize cvar),
	r_restart for changes to take effect, 1024 (default) or less
	recommended menu, r_speeds, and showfps now have a darkened (50%
	black) background beneath them to improve readability menu is now
	centered on the screen menu text is now white translatepic code now
	updates texture rather than constantly cache mismatching cleaned up
	cshift code cleaned up viewent setup code W_GetLumpinfo failing to
	find a lump is no longer fatal added R_Mesh_DrawDecal for the
	highly specialized task of adding decals/particles/sprites to the
	mesh system (trying to get a minor speed gain) decals, particles,
	and sprites now use R_Mesh_DrawDecal

2002-01-21 23:01  lordhavoc

	* gl_textures.c: moved CHECKGLERROR to detect errors *after* rather
	than before uploading a texture

2002-01-21 22:58  lordhavoc

	* r_light.c: made lights half as bright

2002-01-21 21:36  lordhavoc

	* cl_main.c, host.c, host_cmd.c: make dedicated work again

2002-01-21 21:34  lordhavoc

	* gl_textures.c: fake answers for R_GetFragmentLocation when
	running dedicated

2002-01-21 21:33  lordhavoc

	* model_shared.c: models don't allocate a texture pool when running
	dedicated

2002-01-21 21:32  lordhavoc

	* cl_decals.c, r_decals.c: more thorough checking of 'this should
	never happen' cases

2002-01-21 21:31  lordhavoc

	* sv_main.c: flush unused models when running dedicated server

2002-01-21 20:46  lordhavoc

	* model_brush.c: fixed 4 warnings in MSVC related to assigning
	-1000 to unsigned shorts

2002-01-20 19:02  lordhavoc

	* model_brush.c: removed a lot of memory checks now that it works
	again

2002-01-20 18:57  lordhavoc

	* model_brush.c: fix for bug in memory checking

2002-01-20 18:50  lordhavoc

	* model_brush.c: yet more memory testing

2002-01-20 18:39  lordhavoc

	* model_brush.c: changed way windings are allocated, may fix memory
	corruption bug on MSVC

2002-01-20 18:09  lordhavoc

	* model_brush.c: added some memory corruption checks, trying to
	find a bug

2002-01-19 15:22  lordhavoc

	* zone.c, zone.h: improved error reporting on memory functions
	memlist command now has an optional 'all' parameter to list the
	individual allocations inside pools

2002-01-19 13:36  lordhavoc

	* model_brush.c: rearranged error checking during portal building
	so it will only Host_Error when an error occurs, and changed
	tempmempool allocations for portal processing to use the loadmodel
	mempool so portals can be freed after an error (using modelflush)

2002-01-18 16:31  lordhavoc

	* buildnumber.c, cl_decals.c, cl_main.c, cl_particles.c, cl_tent.c,
	client.h, gl_rmain.c, render.h: moved cl_visedicts to
	r_refdef.entities

2002-01-18 12:33  lordhavoc

	* buildnumber.c, cl_particles.c, client.h, gl_backend.c,
	gl_backend.h, gl_rmain.c, gl_rsurf.c, gl_screen.c, r_particles.c,
	render.h: cleaned up a lot of particle rendering properties (mainly
	related to rain code), rain looks nice now.  added depthdisable to
	rmeshinfo_t gl_backend now uses glDrawRangeElements on non-win32
	(need to use dynamic GL binding to get it on win32), nice speedup
	rearranged r_speeds2 time reporting code, now times more things (in
	gl_screen.c especially)

2002-01-18 12:21  lordhavoc

	* r_decals.c: minor optimization to fogged decal rendering

2002-01-18 12:20  lordhavoc

	* gl_models.c: view model is no longer fully fogged (it was a
	divide by zero)

2002-01-18 12:17  lordhavoc

	* sv_phys.c: grenades no longer stick when you fire down a slope

2002-01-17 09:38  molivier

	* gl_backend.c: Fixed a couple of warnings on MSVC6

2002-01-16 17:30  lordhavoc

	* buildnumber.c, cl_parse.c: removed no longer used static light
	parsing code

2002-01-16 17:22  lordhavoc

	* buildnumber.c, cl_parse.c, r_light.c: made directional static
	lighting work, then disabled it because it is not practical without
	reliable data from the lighting utility

2002-01-16 17:09  lordhavoc

	* cl_particles.c: removed (experimental, and broken) particles with
	polygonal explosion (after some testing I found it looked lousy)
	fixed particles disappearing when using slowmo 0

2002-01-16 12:31  lordhavoc

	* buildnumber.c, gl_rsurf.c, model_brush.c, model_brush.h: changed
	behavior about 'Bad Surfaces Extents', now only a warning, and such
	surfaces are rendered fullbright

2002-01-16 11:17  lordhavoc

	* darkplaces.dsp: updated project to match added/removed files

2002-01-16 11:08  lordhavoc

	* buildnumber.c, cl_particles.c, gl_backend.c, model_shared.c:
	hushed unitialized warning on end in cl_particles.c when using MSVC
	fixed direct use of glActiveTextureARB/glClientActiveTextureARB
	type cast parameters to glDepthMask

2002-01-16 10:47  lordhavoc

	* buildnumber.c, gl_textures.c, vid_shared.c: fix for missing (byte
	*) cast, and fix for WIN32 function lookup code in vid_shared.c

2002-01-16 10:41  lordhavoc

	* buildnumber.c, cl_main.c, cl_particles.c, gl_poly.c, gl_poly.h,
	gl_warp.c: fixed a typo in cl_particles.c that happened to work in
	Linux (random() instead of rand()), removed unused files, and moved
	CL_UpdateTEnts call

2002-01-15 22:20  lordhavoc

	* cl_effects.c, r_decals.h: forgot to remove these

2002-01-15 22:16  lordhavoc

	* buildnumber.c, chase.c, cl_decals.c, cl_demo.c, cl_light.c,
	cl_light.h, cl_main.c, cl_parse.c, cl_particles.c, cl_tent.c,
	client.h, cmd.c, cmd.h, common.c, common.h, console.c, cvar.c,
	cvar.h, draw.h, fractalnoise.c, gl_backend.c, gl_backend.h,
	gl_draw.c, gl_models.c, gl_rmain.c, gl_rmisc.c, gl_rsurf.c,
	gl_screen.c, gl_textures.c, glquake.h, hcompress.c, host.c,
	host_cmd.c, image.c, image.h, in_svgalib.c, in_win.c, makefile,
	mathlib.c, mathlib.h, menu.c, model_alias.c, model_alias.h,
	model_brush.c, model_brush.h, model_shared.c, model_shared.h,
	model_sprite.c, model_sprite.h, modelgen.h, net_main.c, palette.c,
	palette.h, portals.c, pr_cmds.c, pr_edict.c, pr_exec.c,
	pr_execprogram.h, progs.h, protocol.c, protocol.h, quakedef.h,
	quakeio.c, r_clip.c, r_crosshairs.c, r_decals.c, r_explosion.c,
	r_lerpanim.c, r_light.c, r_light.h, r_modules.c, r_part.c,
	r_particles.c, r_sky.c, r_sprites.c, r_textures.h, render.h,
	sbar.c, snd_dma.c, snd_mem.c, sound.h, spritegn.h, sv_light.c,
	sv_main.c, sv_phys.c, sv_user.c, sys_linux.c, sys_shared.c,
	sys_win.c, transform.c, transform.h, ui.c, vid_3dfxsvga.c,
	vid_glx.c, vid_shared.c, vid_wgl.c, view.c, wad.c, wad.h, world.c,
	world.h, zone.c, zone.h: rewrote memory system entirely (hunk,
	cache, and zone are gone, memory pools replaced them all) models
	can be reloaded at any time (Mod_CheckLoaded, etc) entire renderer
	can be restarted using r_restart command batch triangle mesh
	rendering system (gl_backend.c) most rendering code does not touch
	GL anymore gl_textures now supports procedural textures, and
	fragment textures (small textures combined into larger images)
	lightmaps can now be mipmapped (r_miplightmaps) broke up r_part.c
	and r_decals.c into cl_particles.c, r_particles.c, cl_decals.c, and
	r_decals.c to improve renderer/client separation, but explosions
	are still renderer moved CL_NextDemo from cl_main.c to cl_demo.c
	cleaned up demo stop/disconnect code removed render modules stuff
	from all cl_ files renderer uses separate light array, and
	recalculates radius for lights based on color, and calculates
	subtract value to give it a soft edge at the radius perimeter small
	surfaces do not use lightmaps (unfortunately they still look
	slightly different in dynamic lighting) items can now bob according
	to cl_itembob* cvars moved CL_SignonReply from cl_main.c to
	cl_parse.c monster movement interpolation is now done clientside
	instead of serverside, Nehahra movie should look better now cvars
	now have a .integer field containing the integer value of their
	string (nearly all .value accesses have been changed to .integer
	for speed reasons) pmodel is now only available in Nehahra mode
	(pmodel was a bad hack) r_farclip cvar removed, farclip now
	dynamically adjusts to level as you explore it parsing of wad names
	out of HL maps is now in renderer code changed isworldmodel stuff
	in model loading cleaned up CL_ParseUpdate a bit (related to
	clientside monster interpolation) renamed r_glowinglightning to
	cl_glowinglightning moved FindNonSolidLocation to bmodel code
	lightning beam models are now only looked up once entity_t now
	contains an entity_persistent_t which holds data persistent from
	frame to frame (interpolation mainly), entity_render_t is wiped
	every frame marked a lot more things as static increased command
	buffer (script execution buffer) from 8k to 32k COM_LoadMallocFile
	has been renamed to COM_LoadFile, and all other variants are gone
	rounding on MSG_Read/Write stuff has been changed to fix negative
	rounding (C rounds toward zero, old code assumed it always rounded
	down) improved cachepic (menu images) system to load from wad
	statusbar now uses cachepic system cachepics are cleared when
	renderer is restarted fixed fog on transparent objects, should
	always look correct now moved R_TimeRefresh_f from gl_rmisc.c to
	gl_rmain.c moved R_NewMap from gl_rmisc.c to gl_rmain.c deleted
	gl_rmisc.c removed support for glfog masked sky rendering is now
	done by first rendering the sky scene, clearing the depthbuffer,
	rendering invisible depth polys over it, then rendering the scene,
	this is for more flexibility C-code based shader system (not
	scripted) deleted hcompress.c due to more thorough memory
	corruption detection, a (harmless with old zone system) buffer
	overflow bug in the client name command was fixed untested (and
	quite possibly broken) quaternion math stuff added to mathlib.h
	removed support for colormod entity effect (massive mess to support
	it everywhere) improved QC PR_RunError reports moved QC opcode
	execution loop into pr_execprogram.h, included multiple times
	fairly major sbar cleanup rearranged GL extension detection again
	added EXT_texture_env_combine support

2001-12-29 13:20  eviltypeguy

	* console.c: Small fixes to tab completion

2001-12-17 00:25  knghtbrd

	* buildnumber.c, common.c, makefile, model_alias.c, r_part.c,
	vid_glx.c: -safe now does something approximately close to correct.
	 Not a full fix for what it does and doesn't do, but this will
	suffice for now.  Added the -nomouse flag to GLX.  Debugging is a
	bitch without it, really.  Also made a few minor changes for gcc v3
	building.  I'm not through with makefile yet, though.

2001-12-04 23:06  molivier

	* darkplaces.dsp: Updated MSVC6 project files

2001-12-04 05:28  lordhavoc

	* buildnumber.c, chase.c, cl_demo.c, cl_effects.c, cl_light.c,
	cl_light.h, cl_main.c, cl_parse.c, cl_tent.c, client.h, common.c,
	common.h, console.c, draw.h, gl_draw.c, gl_models.c, gl_poly.c,
	gl_poly.h, gl_rmain.c, gl_rmisc.c, gl_rsurf.c, gl_screen.c,
	glquake.h, host.c, host_cmd.c, image.c, image.h, keys.c, makefile,
	mathlib.c, mathlib.h, menu.c, model_alias.c, model_brush.c,
	model_brush.h, model_shared.h, model_sprite.c, portals.c,
	pr_cmds.c, pr_edict.c, quakedef.h, r_clip.c, r_crosshairs.c,
	r_decals.c, r_decals.h, r_explosion.c, r_lerpanim.c, r_lerpanim.h,
	r_light.c, r_light.h, r_part.c, r_sprites.c, render.h, sbar.c,
	sv_main.c, sv_phys.c, sv_user.c, sys.h, sys_linux.c, sys_shared.c,
	sys_win.c, transform.c, transform.h, ui.c, ui.h, vid.h,
	vid_3dfxsvga.c, vid_glx.c, vid_wgl.c, view.c, view.h, world.c,
	world.h: rewrote RecursiveHullCheck, no longer gets stuck on angle
	changes, and is generally more correct all the time (no longer uses
	PointContents checks either) added content value to
	RecursiveHullCheck and TraceLine, they can now treat any content
	change as an impact TraceLine now can take NULL impact and normal
	if they are not desired TraceLine now sets trace_endcontents to the
	impacted content value rewrote
	nehahra/rogue/hipnotic/standard_quake variables to be gamemode
	(GAME_NORMAL, GAME_HIPNOTIC, GAME_ROGUE, GAME_NEHAHRA, etc)
	unfinished code for directional static lighting on models
	(CL_ParseEntityLump) game now uses current mode as title everywhere
	(window title, server title, etc), so it would say
	'DarkPlaces-Hipnotic' for example added Draw_AdditiveString variant
	of Draw_String, switchs to additive blending and back to alpha
	afterward engineversion string is now generated in sys_shared major
	rewrite of transpolyrender, now uses glDrawElements (with batching
	of same texture/mode) and array locking transpolyparticle added to
	quickly add particles to transpoly list (30% or so savings) split
	wallpolyrender into two pieces, first renders walls, second renders
	fog over them, decals are rendered between the two, so decals are
	now fogged added field of vision distortion when underwater (in
	MYgluPerspective) changed gl_lightmapalign to align to the
	specified byte boundary instead of pixel boundary, and removed
	NVIDIA mentions (it is not their problem, it is a matter of the
	texture unpack alignment, but I stuck with 4 byte alignment because
	it is likely faster for most people) fixed animating textures
	rearranged a little bmodel code (probably no effect) got rid of
	r_solidworldnode and r_pvsworldnode cvars (only the fastest choices
	are available now) screenshots are now corrected to match lighthalf
	if it is being done using hardware gamma removed some old unused
	cruft from host.c added RGB gamma correction code to image.c added
	VectorRandom to mathlib.h model skins are no longer mipmapped by
	default (r_mipskins 0, but this is saved in configs so most people
	might not notice) because quake skins were not designed for it, and
	it is a 25% texture memory use increase on model skins removed old
	unused Mod_FloodFillSkin code transparent textures no longer clip
	other geometry in the hidden surface removal (ouch this was a bug)
	maps should be able to use engine fields without the mod knowing
	about them now (alpha, etc), engine fields are appended to the list
	of progs fields particle and decal textures are now all stored in
	one 'particle font' texture, for a rather hefty speed gain (no
	texture switchs) all particles are now alpha blended (additive
	wasn't necessary on them, but is still available), to kill off
	state changes new splash effect from raindrops added a few
	bithacking float optimizations here and there (most with alternates
	if you define SLOWMATH) new explosion effect (on by default, but a
	major speed drain, turn off with r_particles_explosions 0) particle
	textures are now all in one image (a 'particle font'), massive
	speed gains with mixed particle types all particles are alpha blend
	now (additive still supported, just not used), for more speed gains
	particles now use 24bit RGB colors, rather than palette colors (the
	quake palette has been included however, because many particles
	still use it) a lot of old cruft has been removed from r_part ui
	items can now be strings rather than pics (actually they can be
	both, but I have not found a real use for this, perhaps a second
	draw location needs to be added for the string, so a button could
	have a label centered on it) unfinished X11 gamma ramp support
	(need to allocate colors before setting them, haven't figured this
	out yet) changed pitch range in GLX to let you look straight up and
	down, like in wgl version mostly redesigned animation interpolation
	management code (R_LerpUpdate is now CL_LerpUpdate and performed on
	all network entities, R_LerpAnimation has been tweaked to not crash
	on bmodels and is now automatically used on all visible entities in
	the renderer, lerping info has has been split out of
	entity_render_t into entity_persistent_t so that entity_render_t
	contains no persistent data) renderer now only uses entity_render_t
	structures renderer now uses only currentrenderentity, and rarely
	passes individual properties around cleaned out some old global
	variables relating to rendering moved most of glquake.h to render.h
	envmap is now actually a vaguely useful command (renders cubic
	environment map images of the current scene, changed to write tga
	images rather than raw rgba, and take a basename to use, and name
	them like skyboxes expect, and place them in the env directory)
	many things that should be private to a particular file have been
	marked static models now contain a SERAddEntity function (to add
	themselves to the SER clipping list to verify visibility) models
	now contain DrawEarly and DrawLate functions (to render before and
	after wallpoly/decals/skypoly/etc, respectively) dlight management
	functions moved out of cl_main and into cl_light rewrote
	RelinkStaticEntities (does the same, just cleaner) renamed
	RelinkEntities to RelinkNetworkEntities, split out
	LerpPlayerVelocity, and made a RelinkEntities function which calls
	the various functions rewrote or altered portions of
	RelinkNetworkEntities relating to origin muzzleflash lights are now
	clipped to keep them out of walls fixed up code relating to
	vid.conwidth/height and vid.width/height (which is now gone,
	converted to vid.conwidth/height) and renamed
	glx/gly/glwidth/glheight to vid.realx/y/width/height (updated each
	frame using GL_BeginRendering) rewrote most (all?) code relating to
	r_refdef, it is now always recalculated as well dynamic lights will
	only update a lightmap if they actually alter it (optimization)
	models now have 3 bounding boxes, used depending on angles (normal,
	yaw rotation only, and full rotation) bmodel bounding boxes are
	recalculated from vertices server now uses model bounding box
	instead of entity bounding box for visibility testing (since entity
	bounding box is often smaller) server no longer portal-visibility
	checks entities because it was FAR too slow (sv_vischeckentities is
	still available though) gl_rsurf code now relies on there being a
	currentrenderentity (even if it is cl.worldent.render),
	R_SetupWorldEnt added to avoid duplicate code for this engine no
	longer has a version number, only build number makefile now uses
	buildnum (as was originally intended) to increment build number
	every time it is compiled, build numbers will be rising rapidly
	from now on timedemos will now force up console instantly rocket
	trails are more dense renamed VectorMA (function) to VectorMASlow,
	renamed VectorMAQuick (#define) to VectorMA, don't know why I had
	changed it before, had already cleaned up the parameter issues
	where it is used converted most of lighting in decal code to
	integer added support for all sprite types (untested)

2001-11-12 11:33  lordhavoc

	* sv_main.c: reenabled some invisible entity checking (probably no
	difference)

2001-11-12 07:52  lordhavoc

	* ui.h: added comments about use of the functions, and regrouped
	engine-use-only ones to avoid confusion

2001-11-07 18:25  lordhavoc

	* pr_edict.c: got rid of two trigraph warnings in gcc 3.0

2001-11-07 18:23  lordhavoc

	* model_alias.c: changed swapintblock loop to hopefully get rid of
	a gcc 3.0 warning

2001-11-07 18:20  lordhavoc

	* cl_tent.c: fix for gcc 3.0 warnings on MSG_ReadByte in function
	parameters

2001-11-05 23:16  molivier

	* darkplaces.dsp, darkplaces.dsw: Added MSVC6 project files

2001-11-02 04:45  lordhavoc

	* gl_poly.c, gl_poly.h: two-layer sky rendering now uses
	GL_ARB_texture_env_combine if available to render both layers in
	one pass (nice speedup), and sky rendering code has been simplified
	a little, also optimized the per vertex direction calculations to
	use RSqrt code instead of normal 1/sqrt

2001-11-02 03:06  lordhavoc

	* vid_shared.c: fixed gl_combine so it is enabled by default (if
	present)

2001-11-02 03:02  lordhavoc

	* gl_rmain.c, gl_rsurf.c, glquake.h, vid.h, vid_3dfxsvga.c,
	vid_glx.c, vid_shared.c, vid_wgl.c: removed support for
	GL_SGIS_multitexture (ancient) redesigned entire extension setup
	system (now resides only in vid_shared.c) all extension functions
	are checked against NULL before the extension is enabled (if one is
	NULL it complains appropriately) now also looks for
	glClientActiveTextureARB (needed for multitexture in vertex arrays)

2001-11-02 02:54  lordhavoc

	* sys_shared.c: minor buffer-size-safe improvement in Sys_Printf,
	and some other changes to it

2001-11-02 02:52  lordhavoc

	* chase.c: possible improvement to keep camera out of walls (still
	ends up in a wall occasionally, just less often)

2001-11-02 02:50  lordhavoc

	* sv_phys.c: corrected a typo in a comment referring to the e4 hall
	in start as e1m4

2001-11-02 02:49  lordhavoc

	* menu.c: fix for misnumbered video mode menu in menu key code	(it
	should never be misnumbered again... it is now a calculated index)

2001-11-02 01:18  lordhavoc

	* keys.c: clear keybindings[] array during Key_Init (bounds checker
	freaks if it isn't cleared before it is used)

2001-11-01 22:15  lordhavoc

	* makefile: changed -march=686 to -march=i686

2001-10-30 13:55  lordhavoc

	* gl_poly.c, gl_rmain.c, gl_rsurf.c, gl_screen.c, glquake.h,
	model_brush.h, render.h, vid_shared.c: added support for
	GL_ARB_texture_env_combine, currently only used on wall rendering
	(for 4x overbright support)

2001-10-30 13:51  lordhavoc

	* gl_models.c, model_alias.c, model_shared.c, model_shared.h: added
	support for transparent model skins

2001-10-30 13:48  lordhavoc

	* gl_textures.c, r_textures.h: added R_TextureHasAlpha function to
	check if a loaded texture has alpha

2001-10-29 15:43  lordhavoc

	* sys_shared.c: added include unistd.h and fcntl.h on non-win32

2001-10-29 15:38  lordhavoc

	* portals.c: removed unused portalstack array

2001-10-28 23:23  lordhavoc

	* progs.h, sv_main.c, world.c: got rid of leafnums array in edict
	structure for pvs checking, pvs is now checked based on predicted
	locations of entities, and some reorganizational optimizations of
	WriteEntitiestoClient changed an SV_Move call to use the proper
	MOVE_ define (no behavior change, only cleanup)

2001-10-28 23:20  lordhavoc

	* sv_move.c: changed SV_Move calls to use MOVE_NORMAL or
	MOVE_NOMONSTERS instead of false/true as the type parameter (no
	behavior change, only cleanup)

2001-10-28 23:17  lordhavoc

	* pr_edict.c: fixed ED_Print so that it can not cause buffer
	overflows on large entities

2001-10-28 23:16  lordhavoc

	* makefile, quakedef.h, sys_linux.c, sys_shared.c, sys_win.c,
	vid_wgl.c, winquake.h: moved Sys_Printf and related code/data to
	sys_shared.c (new), removed all uses of isDedicated (replaced with
	cls.state == ca_dedicated), timestamps should work on all targets
	now, and made some minor whitespace changes

2001-10-28 22:51  lordhavoc

	* gl_textures.c, host.c, palette.c: changing all isDedicated
	references to cls.state == ca_dedicated
	
	also changed where Chase_Init is called in Host_Init (no behavior
	change, just cleanup)

2001-10-28 22:45  lordhavoc

	* mathlib.c: forgot to put a newline at the end of the file

2001-10-28 22:43  lordhavoc

	* sv_user.c: fixed input reading code bug in dedicated servers
	(clients are not kicked off immediately on connecting now... 
	clearly an important fix) minor whitespace changes and changed a
	SV_Move call to use MOVE_NOMONSTERS instead of 1, no effect on code
	behavior

2001-10-28 22:40  lordhavoc

	* sv_phys.c: changed SV_Move call to use MOVE_NORMAL instead of
	false, no effect on code behavior

2001-10-28 22:37  lordhavoc

	* pr_cmds.c: changed SV_Move calls to always use the correct MOVE_
	defines in the type parameter (true or false were often passed, due
	to a legacy of it being simply 'nomonsters', apparently during
	quake's development), no code change, just cleanup

2001-10-28 22:34  lordhavoc

	* portals.c: rearranged some variable declarations (no code
	changes)

2001-10-28 22:32  lordhavoc

	* gl_rsurf.c: minor whitespace tweak on loc1 label, removed old
	debugging warnings about not checking certain portals

2001-10-28 22:30  lordhavoc

	* common.c, gl_rmain.c, mathlib.c: moved ixtable definition and
	initialization code to mathlib (and added Mathlib_Init call to
	common.c), fixes bugs in dedicated server (previously ixtable was
	being initialized in the renderer)

2001-10-28 22:28  lordhavoc

	* console.c: removed duplicate comment on a line

2001-10-28 22:27  lordhavoc

	* cl_main.c: changed way that "entities" (CL_PrintEntities_f)
	displays entities, and now skips inactive entities (forgot to
	update it's code a long time ago, apparently)

2001-10-28 19:28  lordhavoc

	* ui.c: no longer needs ui/mousepointer.lmp

2001-10-28 19:11  lordhavoc

	* common.h: fix for snprintf check (can't check if functions exist,
	changed to WIN32 check)

2001-10-28 15:06  lordhavoc

	* cl_parse.c, net_dgrm.c: fix for two Con_Printf calls that are
	passed a string as the format string

2001-10-28 14:10  lordhavoc

	* palette.c: don't change gamma ramps when running dedicated

2001-10-28 12:49  lordhavoc

	* menu.c: added hidden surface removal option (r_ser cvar)

2001-10-28 12:48  lordhavoc

	* common.h: added #define snprintf _snprintf for win32

2001-10-28 12:48  lordhavoc

	* winquake.h: add externs for window_x and window_y

2001-10-28 12:47  lordhavoc

	* in_win.c: forgot to update this file apparently

2001-10-28 01:18  lordhavoc

	* cl_parse.c, gl_rmain.c, gl_rsurf.c, mathlib.c, model_brush.c,
	model_brush.h, render.h: made the Sorted Edge Rasterizer (hidden
	surface removal) optional as the r_ser cvar, can be a speed
	difference added back the old portal-passage worldnode code
	(sometimes faster) recalculate node bounding boxes when loading
	(based on leaf bounding boxes which are calculated from portal
	generation) added untested code for qftol (much faster double to
	integer conversion on x86, not used yet) added a couple Hunk_Check
	calls while loading things (just to be a little more paranoid)
	minor whitespace cleanup, some commented out code removed

2001-10-26 13:17  lordhavoc

	* chase.c, cl_effects.c, cl_input.c, cl_main.c, cl_parse.c,
	cl_tent.c, common.c, console.c, cvar.c, cvar.h, draw.h, gl_draw.c,
	gl_models.c, gl_poly.c, gl_rmain.c, gl_rsurf.c, gl_screen.c,
	gl_textures.c, host.c, in_svgalib.c, in_win.c, makefile,
	model_alias.c, model_brush.c, model_brush.h, model_sprite.c,
	net_dgrm.c, net_main.c, palette.c, portals.c, portals.h, pr_cmds.c,
	pr_edict.c, quakedef.h, r_clip.c, r_crosshairs.c, r_decals.c,
	r_explosion.c, r_light.c, r_part.c, r_sprites.c, snd_dma.c,
	spritegn.h, sv_main.c, sv_phys.c, sv_user.c, ui.c, ui.h, vid_glx.c,
	vid_shared.c, view.c: added CVAR_SAVE and CVAR_NOTIFY flags to
	cvar_t structure (at the beginning), updated all cvar definitions
	to match, a lot more cvars are saved now.\nadded server-side portal
	checking of entity visibility, only entities which really are
	visible are sent to clients now (some slowdown on server, but
	reduces network traffic and makes wallhacks useless)\nadded mostly
	untested mouse and keyboard user interface code (input support not
	completely finished yet, and no code using the UI yet)\n

2001-10-18 07:48  lordhavoc

	* buildnumber.c: Forgot to update build number for 105 release

2001-10-17 17:59  lordhavoc

	* gl_models.c, r_explosion.c: probable fix for severe model
	rendering bugs in 3DFX voodoo4/5 win32 drivers, and G400 win32
	drivers (they don't seem to handle a sizeof == 0 case for the array
	pointer stepping)

2001-10-17 12:17  lordhavoc

	* vid_wgl.c: little whitespace change

2001-10-17 12:15  lordhavoc

	* in_svgalib.c, in_win.c, vid_glx.c, vid_shared.c: added
	force_centerview to glx (by moving it to vid_shared)

2001-10-17 12:14  lordhavoc

	* cvar.c: fix for cvar tab completion crash

2001-10-17 11:43  lordhavoc

	* r_sprites.c: fix for oriented sprites not appearing

2001-10-16 05:49  lordhavoc

	* makefile: forgot to commit updated makefile

2001-10-15 10:12  lordhavoc

	* cmd.c, console.c, model_brush.c, quakeio.c: mallocs, callocs, and
	frees changed to qmalloc/qfree

2001-10-15 09:25  lordhavoc

	* console.c: fix for command/cvar/alias completion bug (example:
	imp gave iimpulse)

2001-10-15 06:41  lordhavoc

	* chase.c: changed defaults for chase_active camera position, and
	the settings are now saved to the config

2001-10-15 06:41  lordhavoc

	* cl_main.c: move dynamic lights up 30 units for the client player
	when firstperson (so the gun gets lit by glow effects)

2001-10-15 06:36  lordhavoc

	* gl_rsurf.c: fix the off-by-one fix (oops)

2001-10-15 06:23  lordhavoc

	* gl_rsurf.c, r_light.c: fix an off-by-one issue with
	model->numleafs in PVS related code (dynamic lighting and world
	rendering), numleafs excludes leaf 0, how strange...
	
	no missing (black) leaf bug anymore...

2001-10-15 05:13  lordhavoc

	* cmd.h: added function definitions for tab completion back (oops)

2001-10-15 04:46  lordhavoc

	* buildnumber.c, cl_input.c, cl_main.c, cl_parse.c, cmd.h,
	common.c, common.h, gl_models.c, gl_rmain.c, gl_rmisc.c,
	gl_rsurf.c, gl_screen.c, gl_textures.c, glquake.h, host.c,
	host_cmd.c, image.c, mathlib.c, mathlib.h, menu.c, model_brush.c,
	model_brush.h, progs.h, protocol.h, quakeio.c, quakeio.h, r_clip.c,
	r_clip.h, r_light.c, r_part.c, r_sprites.c, render.h,
	snd_alsa_0_5.c, sv_main.c, sv_user.c, sys_linux.c, sys_win.c,
	transform.c, transform.h, vid.h, vid_3dfxsvga.c, vid_glx.c, view.c,
	wad.c, world.c: Major update, been neglecting CVS for some time...
	
	clipping engine (r_clip.c) to determine exactly what is visible
	(this has altered MANY parts of the rendering engine)
	
	fixed visibility bug with multiple players on a listen server
	
	vid_glx.c has been improved/cleaned up greatly and now pays
	attention to vid_mouse and vid_dga and will not grab the mouse
	until after the first frame
	
	snd_alsa_0_5.c has been fixed (Qprintf vs fprintf bug)
	
	nehahra works again (was missing svc_skybox support)

2001-07-20 13:25  taniwha

	* .cvsignore: ignore ChangeLog

2001-07-20 13:24  taniwha

	* cmd.c, cmd.h, console.c, console.h, cvar.c, cvar.h, keys.c: very
	nice command line tab completeion from Shawn Walker
	<eviltypeguy@qeradiant.com> with my later modifications so that
	commands are completed as much as possible.

2001-06-15 13:55  lordhavoc

	* gl_poly.c, gl_poly.h, render.h: another attempt to fix skybox
	loading

2001-06-10 14:21  taniwha

	* host_cmd.c: fix loading savegames

2001-06-10 13:03  lordhavoc

	* makefile: added -lz to the non-ALSA compile line, switched to
	non-ALSA compile by default (to match the sound driver default
	being non-ALSA) added a lot of descriptive comments

2001-06-07 12:38  taniwha

	* gl_rmain.c: apply a fix for LordHavoc as his tree is not yet
	ready for committing

2001-06-07 12:36  lordhavoc

	* gl_poly.c: fix for skybox

2001-06-03 16:40  lordhavoc

	* world.h: added a newline to the end

2001-06-02 20:18  taniwha

	* common.c: hopefully fix external file gzip support

2001-05-30 19:02  lordhavoc

	* gl_poly.c: skyquality and mergesky are saved to the config now

2001-05-30 01:36  lordhavoc

	* image.c: fixed PCX loader bug to do with palettes added bounds
	checking for PCX, TGA, and LMP loaders

2001-05-30 01:28  lordhavoc

	* common.c, common.h: added loadsize variable set by COM_LoadFile

2001-05-30 01:03  lordhavoc

	* model_alias.h: added newline at end to appease gcc

2001-05-30 01:02  lordhavoc

	* image.c: fix for mistake in pcx loader (had two pointers swapped)

2001-05-30 00:09  lordhavoc

	* buildnumber.c: increased build number to 103

2001-05-30 00:08  lordhavoc

	* gl_poly.h, menu.c, screen.h: added sky quality and show framerate
	options to menu

2001-05-29 23:16  taniwha

	* .cvsignore, makefile: compile dependencies

2001-05-29 23:04  lordhavoc

	* common.c, in_win.c, quakeio.c, quakeio.h: fixes for zlib support,
	eliminated win32 FAR warnings and other warnings

2001-05-29 22:10  taniwha

	* sys_win.c: oops, forgot to fix the Qread and Qwrite calls

2001-05-29 21:57  lordhavoc

	* cl_parse.c, gl_draw.c, gl_poly.c, gl_poly.h, gl_rmain.c,
	gl_warp.c, render.h: rearranged sky rendering code reenabled sky
	sphere code added r_skyquality cvar (0 = no sky, higher values
	improve quality of quake sky rendering, no change to skybox) sky
	sphere uses identical texture calculations as glquake style now
	added r_mergesky cvar (speed loss in my testing, but could be
	useful for very low fillrate cards, albeit a bit jerky)

2001-05-29 21:50  lordhavoc

	* gl_textures.c, r_textures.h: added TEXF_ALWAYSPRECACHE

2001-05-29 21:50  taniwha

	* common.c, image.c: check in LordHavoc's changes for him after
	cleaning up the mess of conflicts I caused. I hope I got it right
	:)

2001-05-29 21:50  lordhavoc

	* glquake.h: removed unused skytexturenum

2001-05-29 21:44  lordhavoc

	* gl_rmisc.c: removed unused skytexturenum code

2001-05-29 21:39  lordhavoc

	* common.h: commented out COM_LoadCacheFile

2001-05-29 21:38  lordhavoc

	* cmd.c: converted script loading to use COM_LoadMallocFile instead
	of COM_LoadHunkFile

2001-05-29 19:36  taniwha

	* cl_demo.c, client.h, common.c, common.h, cvar.c, cvar.h, host.c,
	host_cmd.c, image.c, keys.c, keys.h, makefile, menu.c, menu.h,
	model_brush.h, pr_edict.c, progs.h, quakeio.c, quakeio.h, r_part.c,
	snd_alsa_0_5.c, snd_oss.c, sys_linux.c, sys_win.c, wad.c: gzip
	support from quakeforge (QFile and friends). also includes a couple
	of compile fixes

2001-05-29 09:25  lordhavoc

	* buildnumber.c: updated to build 102

2001-05-29 09:00  lordhavoc

	* cl_main.c, cl_parse.c, in_win.c, protocol.h, quakedef.h,
	render.h: split render portion of entity_t struct into
	entity_render_t got rid of glowsize and glowtrail fields in
	entity_render_t (since they were only used inside RelinkEntities
	anyway) removed some commented out struct stuff fixed mouse
	hide/show code in win32 (could get stuck shown)

2001-05-26 19:50  lordhavoc

	* cd_win.c, cl_effects.c, cl_main.c, cl_parse.c, client.h,
	common.c, console.c, gl_draw.c, gl_models.c, gl_poly.c, gl_poly.h,
	gl_rmain.c, gl_rmisc.c, gl_rsurf.c, gl_screen.c, gl_textures.c,
	gl_warp.c, glquake.h, host.c, host_cmd.c, in_svgalib.c, keys.c,
	menu.h, model_alias.h, model_brush.c, model_brush.h,
	model_shared.c, model_shared.h, model_sprite.h, model_zymotic.h,
	net.h, net_dgrm.c, net_udp.c, net_wins.c, net_wipx.c, palette.c,
	palette.h, pr_edict.c, progs.h, quakedef.h, r_crosshairs.c,
	r_decals.c, r_decals.h, r_explosion.c, r_light.c, r_modules.c,
	r_modules.h, r_part.c, render.h, server.h, snd_alsa_0_9.c,
	snd_mix.c, sound.h, sv_main.c, sv_phys.c, sv_user.c, transform.c,
	transform.h, vid.h, vid_3dfxsvga.c, vid_glx.c, vid_shared.c,
	vid_wgl.c, view.c: cleaned up nearly all of the externs in .c files
	(moved to appropriate .h files)

2001-05-26 15:24  lordhavoc

	* makefile: added protocol.o

2001-05-26 12:44  lordhavoc

	* cl_input.c, cl_main.c, cl_parse.c, client.h, gl_draw.c,
	gl_models.c, gl_poly.c, gl_rmain.c, gl_rmisc.c, gl_rsurf.c,
	gl_screen.c, gl_warp.c, glquake.h, host.c, host_cmd.c, image.c,
	in_svgalib.c, in_win.c, makefile, menu.c, model_alias.c,
	model_brush.c, model_brush.h, model_zymotic.h, net_loop.c,
	net_main.c, net_wins.c, palette.c, palette.h, pr_cmds.c,
	pr_edict.c, progs.h, protocol.c, protocol.h, quakedef.h,
	r_decals.c, r_part.c, render.h, screen.h, sv_main.c, sv_phys.c,
	sv_user.c, sys.h, sys_linux.c, sys_win.c, sys_wind.c, vid.h,
	vid_3dfxsvga.c, vid_glx.c, vid_shared.c, vid_wgl.c, view.c,
	winquake.h: some whitespace changes rearranged a few cvar
	definitions to be in more appropriate places removed remnants of
	efrags system added bitprofile command to report popularity of
	entity update components fixed a number of baseline bugs and
	inconsistencies in the server and client (discovered using
	bitprofile) general baseline generation code added (protocol.c)
	added freelook cvar and menu option exterior model capability added
	(so a model could be visible only when you are using chasecam,
	needed for visible weapon models) fixed some inconsistencies in
	frame number sizes (should have been 16bit) in 16bit modelindex
	messages, and 8bit sound numbers that should have been 16bit
	renamed Sys_FloatTime to Sys_DoubleTime rewrote win32
	Sys_DoubleTime code and minor work on UNIX Sys_DoubleTime removed
	most of svc_entitiesbegin/svc_entitiesend code (big entity update
	protocol improvement planned) hardware gamma/brightness/contrast
	support hardware and software gamma/brightness/contrast adjustable
	in the menu gl_lightmode (also known as lighthalf) switchable in
	the menu can pick a crosshair in the menu changed renderer
	references to r_refdef.vieworg to use r_origin instead stripped out
	ancient transpoly code that was not being used renamed qgamma array
	to texgamma significant cleanup of mouse hide/show code in win32
	improved eprint for better readability (better printing of
	floats/vectors) added pr_fields and pr_globals commands to print a
	list of entity fields and global variables in loaded progs moved
	some entity_state_t related stuff to protocol.c and protocol.h made
	delta compression optional (sv_deltacompress cvar) removed a lot of
	cruft disabled stair step-up blending (never worked that well
	anyway) removed sys_wind.c (I seriously doubt it worked)

2001-05-26 11:26  knghtbrd

	* makefile: Cleaned up clean target Changed defaults to reflect the
	majority of systems

2001-05-13 00:49  lordhavoc

	* gl_rsurf.c: now renders inward portals rather than outward
	portals in r_drawportals (more useful)

2001-05-12 08:31  lordhavoc

	* buildnumber.c, cl_main.c, cl_parse.c, gl_rsurf.c, model_brush.c,
	model_brush.h, pr_cmds.c, render.h, sv_main.c, world.c: build
	number 101 all leaf bounding boxes are recalculated based on
	portals (superior to qbsp's method) bounding box removed from node
	structure vismarkframe stuff removed from node and leaf structures
	minor tweaking to some network stuff (trying to track down a bug)
	R_BSPWorldmode and R_LeafWorldmode have been removed, related cvars
	have been removed R_NoVisWorldnode is only used when in a solid
	leaf now have been trying to track down very rare disappearing leaf
	bug in portal worldnode code (or portal building?), unsuccessfully
	redesign of entity dlight code, much cleaner and saner (all dlight
	effects can be combined at once now as well, no override occurs)

2001-05-12 04:09  lordhavoc

	* cl_parse.c: forgot to put in extern qboolean hlbsp;

2001-05-12 04:03  lordhavoc

	* cl_parse.c: disabled wad3 loading from "wad" key in worldspawn of
	map when not loading an HL map
	
	minor tweaks to entity update range code

2001-05-12 03:54  lordhavoc

	* makefile: removed net_vcr from the list of objects

2001-05-11 01:27  lordhavoc

	* buildnumber.c, cl_demo.c, cl_main.c, cl_parse.c, client.h,
	common.c, console.c, console.h, gl_models.c, gl_refrag.c,
	gl_rmain.c, gl_rmisc.c, gl_rsurf.c, gl_screen.c, glquake.h, host.c,
	host_cmd.c, keys.c, makefile, menu.c, model_brush.c, model_brush.h,
	model_shared.h, quakedef.h, r_decals.c, r_decals.h, r_light.c,
	r_light.h, r_part.c, r_sprites.c, render.h, sbar.c, screen.h,
	server.h, snd_dma.c, sv_main.c, sv_phys.c, sys.h, sys_linux.c,
	sys_win.c, sys_wind.c, view.c: ***map loader generates portals for
	the map*** (can you tell this is a big deal? :) increased build
	number to 100 (it's the truth) made loadingplaque work correctly
	disabled (commented out) loadingplaque removed efrags each model is
	checked against visible leafs (made efrags obsolete) put .active
	field into client entity states (more correct than checking
	modelindex) disabled all cachedir stuff (#if CACHEENABLE) removed
	scr_copytop and other no-longer-relevant variables removed
	Con_NotifyBox (wasn't used) cleaned up visframe stuff removed a lot
	of unnecessary fields from mnode_t and a few from mleaf_t clarified
	r_visframecount stuff (now referred to as r_vismarkframecount, and
	similarly visframe field in mnode_t/mleaf_t is now called
	vismarkframe) got rid of offsets[] array in texture_t rewrote
	r_notexture_mip related code (fixing black default texture) got rid
	of skyisvisible variable (check currentskypoly instead) got rid of
	gl_texsort simplified surface rendering process greatly
	(R_DrawSurfaces) surface rendering should now be totally sequential
	(good for caches) renamed r_newworldnode to r_leafworldnode (will
	be removed in next commit) disabled r_oldclip code (will be removed
	in next commit) renamed R_WorldNode to R_BSPWorldNode (will be
	removed in next commit) renamed R_NewWorldNode to R_LeafWorldNode
	(will be removed in next commit) made copy of R_WorldNode that
	ignores vis data, called R_NoVisWorldNode added R_PortalWorldNode,
	3-80% speed gain depending on situation, improved culling of
	non-relevant leafs/surfaces added r_portalworldnode cvar to test
	new code (this will become the standard worldnode in next commit)
	minor optimization to wateralpha code minor redesign of
	R_TextureAnimation and animated texture stuff in texture_t cleaned
	up timing issues in water (now synced to cl.time, not realtime) and
	menu code (now synced to realtime, not host_time) removed host_time
	removed SCR_ModalMessage (this got rid of the 'are you sure?'
	question on newgame) changed quit messages got rid of
	SCR_BringDownConsole reorganized 2D screen drawing code (now draws
	console when loading plaque is displayed, etc) some cleanup on
	texture loading redesigned R_Decal to make use of BSP tree in
	finding nearest surfaces renamed and redesigned R_DrawDecals to
	GL_DrawDecals and no longer uses transpoly particles are now only
	rendered if inside a visible leaf sprites are now only rendered if
	touching a visible leaf ambient sounds no longer play after
	disconnecting fixed severe delta compressed entity bugs in client
	sped up MOVETYPE_NONE a bit

2001-05-04 20:32  lordhavoc

	* menu.c, net.h, net_main.c: stripped out serial and modem stuff
	(was not supported anyway) a little bit of new very incomplete menu
	code

2001-05-04 11:52  lordhavoc

	* host.c, sv_phys.c, sys_linux.c: No more busy-waiting when
	framerate cap is reached (in both Linux and win versions)
	MOVETYPE_WALK on non-clients now links the edict like it should
	(major bugfix)

2001-04-27 23:07  lordhavoc

	* host.c, net_main.c, net_vcr.c, net_vcr.h, sys_linux.c: removed
	unused net_vcr (and all other traces of vcr system), apparently a
	predecessor to quake demos

2001-04-25 22:38  lordhavoc

	* bspfile.h, cl_effects.c, cl_input.c, cl_main.c, cl_parse.c,
	cl_tent.c, client.h, gl_refrag.c, gl_rmain.c, gl_rmisc.c,
	gl_rsurf.c, mathlib.c, mathlib.h, model_alias.c, pr_cmds.c,
	protocol.h, quakedef.h, r_light.c, r_part.c, r_sprites.c, render.h,
	sbar.c, sv_main.c, sv_move.c, transform.c, view.c: a big change
	with a little description...
	
	rearranged client entity_t structure redesigned entity update
	system (same protocol) added support for split entity updates in
	the future for rate capping glow trails and view relative entities
	should work now (untested)

2001-04-23 15:49  lordhavoc

	* gl_textures.c: oops, two loop counting bugs, fixed

2001-04-23 15:03  lordhavoc

	* gl_textures.c: added back support for textures smaller than 4
	pixels wide (Nehahra uses one)

2001-04-20 08:48  lordhavoc

	* gl_rsurf.c: added newmap function to render modules (so
	explosions and other things are reset on map load) CL_AllocDlight
	redesigned (takes all settings for dlight on parameter line)
	dlights now use a pointer to their owner entity instead of a key
	number light emitting entities now glow properly (directional
	lighting disabled on the entity that owns the dlight) cl_shownet no
	longer spews empty lines when recieving less updates from server
	than client framerate some whitespace cleanup fixed some missing
	parentheses on a condition in R_BuildLightmap (mixed &&, &, and ||,
	eek) fixed vertex array problems with fog sky increased
	MAX_TRANSPOLYS from 8192 to 65536 added a general purpose decal
	engine, superior to the decal particles (lower CPU use, better
	lighting) added bullet hole decals and bullet hole texture
	generator added r_speeds2 time reporting for moveexplosions,
	drawexplosions, and drawdecals cleaned up dlight logic, all code
	now relies on radius, which is cleared when the dlight dies, this
	removed all potential flickering problems and offers a minor
	speedup optimized R_ResampleTexture further to improve load times
	moved heap size commandline parameter stuff from platform specific
	startup code to Host_Init, now all platforms understand -mem,
	-winmem, and -heapsize WAD3 texture transparency now supported
	again r_explosionclip cvar is now saved to config r_drawexplosions
	cvar added r_particles cvar is now saved to config
	r_dynamicparticles cvar renamed to r_particles_lighting
	r_particles_bloodshowers cvar added to disable blood shower effects
	r_particles_blood cvar added to disable blood effects
	r_particles_smoke cvar added to disable smoke effects
	r_particles_sparks cvar added to disable spark effects
	r_particles_bubbles cvar added to disable bubble effects fixed
	smoke texture problem (0 alpha-noise portions were not written to
	texture, leaving portions of previous texture in buffer) changed
	nearly every particle effect to look better and use less particles
	and fillrate, major speed gains resulted blood particles no longer
	fade inflight as it made the effects less impressive and resulted
	in a lot of mostly transparent decals major particle size bug
	fixed, all view aligned particles (everything but rain and decals)
	were 50% larger than they were supposed to be particles now use
	transpolyvertub (unsigned byte colors) instead of transpolyvert for
	a speedup

2001-04-20 08:38  lordhavoc

	* cl_effects.c, cl_main.c, cl_parse.c, cl_tent.c, client.h,
	fractalnoise.c, gl_draw.c, gl_models.c, gl_poly.c, gl_poly.h,
	gl_rmain.c, gl_rmisc.c, gl_screen.c, gl_textures.c, host.c,
	image.c, image.h, makefile, model_brush.c, quakedef.h,
	r_crosshairs.c, r_decals.c, r_decals.h, r_explosion.c, r_light.c,
	r_light.h, r_modules.c, r_modules.h, r_part.c, r_sprites.c,
	render.h, snd_win.c, sys_linux.c, sys_win.c: added newmap function
	to render modules (so explosions and other things are reset on map
	load) CL_AllocDlight redesigned (takes all settings for dlight on
	parameter line) dlights now use a pointer to their owner entity
	instead of a key number light emitting entities now glow properly
	(directional lighting disabled on the entity that owns the dlight)
	cl_shownet no longer spews empty lines when recieving less updates
	from server than client framerate some whitespace cleanup fixed
	some missing parentheses on a condition in R_BuildLightmap (mixed
	&&, &, and ||, eek) fixed vertex array problems with fog sky
	increased MAX_TRANSPOLYS from 8192 to 65536 added a general purpose
	decal engine, superior to the decal particles (lower CPU use,
	better lighting) added bullet hole decals and bullet hole texture
	generator added r_speeds2 time reporting for moveexplosions,
	drawexplosions, and drawdecals cleaned up dlight logic, all code
	now relies on radius, which is cleared when the dlight dies, this
	removed all potential flickering problems and offers a minor
	speedup optimized R_ResampleTexture further to improve load times
	moved heap size commandline parameter stuff from platform specific
	startup code to Host_Init, now all platforms understand -mem,
	-winmem, and -heapsize WAD3 texture transparency now supported
	again r_explosionclip cvar is now saved to config r_drawexplosions
	cvar added r_particles cvar is now saved to config
	r_dynamicparticles cvar renamed to r_particles_lighting
	r_particles_bloodshowers cvar added to disable blood shower effects
	r_particles_blood cvar added to disable blood effects
	r_particles_smoke cvar added to disable smoke effects
	r_particles_sparks cvar added to disable spark effects
	r_particles_bubbles cvar added to disable bubble effects fixed
	smoke texture problem (0 alpha-noise portions were not written to
	texture, leaving portions of previous texture in buffer) changed
	nearly every particle effect to look better and use less particles
	and fillrate, major speed gains resulted blood particles no longer
	fade inflight as it made the effects less impressive and resulted
	in a lot of mostly transparent decals major particle size bug
	fixed, all view aligned particles (everything but rain and decals)
	were 50% larger than they were supposed to be particles now use
	transpolyvertub (unsigned byte colors) instead of transpolyvert for
	a speedup

2001-04-05 20:51  knghtbrd

	* vid_glx.c: gl_mtex_enum has moved to vid_shared.c

2001-04-05 20:49  lordhavoc

	* cl_effects.c: missed this one...

2001-04-05 20:48  lordhavoc

	* r_part.c: added default case for particles to report the error
	and remove the particle

2001-04-05 20:44  knghtbrd

	* gl_rsurf.c, r_part.c: Fix a couple gcc warnings

2001-04-05 20:43  lordhavoc

	* gl_rsurf.c: fix for lightmap update check

2001-04-05 20:10  lordhavoc

	* anorms.h, chase.c, cl_demo.c, cl_input.c, cl_main.c, cl_parse.c,
	cl_tent.c, client.h, cmd.c, cmd.h, common.c, common.h, cpu_noasm.c,
	cpu_x86.bat, cpu_x86.nasm, cpu_x86.obj, cvar.c, cvar.h, draw.h,
	fractalnoise.c, gl_draw.c, gl_models.c, gl_poly.c, gl_poly.h,
	gl_rmain.c, gl_rsurf.c, gl_screen.c, gl_textures.c, gl_warp.c,
	glquake.h, host.c, host_cmd.c, image.c, image.h, in_svgalib.c,
	in_win.c, makefile, mathlib.c, mathlib.h, menu.c, model_alias.c,
	model_alias.h, model_brush.c, model_brush.h, model_shared.c,
	model_shared.h, model_sprite.c, model_sprite.h, net.h, pr_cmds.c,
	pr_edict.c, progs.h, protocol.h, quakedef.h, r_crosshairs.c,
	r_explosion.c, r_lerpanim.c, r_lerpanim.h, r_light.c, r_light.h,
	r_part.c, r_sprites.c, r_textures.h, render.h, server.h, snd_dma.c,
	snd_mem.c, snd_mix.c, snd_win.c, sv_main.c, sv_phys.c, sv_user.c,
	sys_win.c, vid.h, vid_3dfxsvga.c, vid_glx.c, vid_shared.c,
	vid_wgl.c, view.c, world.c, zone.c: optimized AngleVectors calls
	(pass NULL for vectors that should not be generated) added
	VectorVectors (takes a forward unit vector, makes right and up
	vectors) corrected silly id spelling mistakes 'allready' and
	'allways' most host_frametime references changed to cl.frametime or
	sv.frametime fixed movement interpolation in listen games (host
	client wasn't lerping the framerate capped server's frames) added
	EF_FLAME effect, untested changed svc_showlmp to use shorts, not
	bytes (except in nehahra compatibility mode) broke svc_fog for now
	removed svc_farclip removed svc_playerposition removed svc_skybox
	increased maximum number of models and sounds to 1024 each (and
	added extra svc_ messages and update bits to handle the new limits)
	made punchangle use preciseangles (on DP servers), added
	punchvector (view origin kick, useful for earthquakes?) redesigned
	entire animation interpolation system (can lerp between
	independently playing framegroups) redesigned animation scene
	lookup in model and sprite rendering to use a single system added a
	simple clientside effect system (meant for playing sprite explosion
	animations entirely on the client, with very nice interpolation and
	framerate control) added te_smallflash added te_customflash added
	te_flamejet (untested) darkened lightning glow and made it
	adjustable (r_glowinglightning cvar is now a scaler, not just an
	option) increased maximum number of clientside entities
	COM_WriteFile will now create a path leading up to the file removed
	cpu_*.* files reorganized fractalnoise code, now behaves more
	correctly stripped out qsg_version stuff, replaced by
	pr_checkextension and extensions have changed completely
	(extensions are documented in dpextensions.qc in DP mod and release
	zips) made skin and sprite mipmapping optional (r_mipskins cvar,
	r_mipsprites cvar), saves about 32% of texture memory if disabled
	rewrote texture management system (again), now uses flags to
	specify texture attributes (all textures without the PRECACHE flag
	are uploaded only when first used, conserves huge amounts of
	memory), and is cleaner code r_precachetextures cvar controls how
	PRECACHE texture flag is used (0 = never precache, 1 = use PRECACHE
	flag, 2 = always precache) changed way text filtering mode is
	decided now requires vertex array support (standard in OpenGL 1.1
	so this is not a problem) takes advantage of
	GL_EXT_compiled_vertex_array extension (no speed gain for my
	Geforce2, may help other people) reverted to GL transforms for
	models (no speed gain for my Geforce2, may help other people)
	gl_transform cvar controls whether to use GL transforms (1) or
	software transforms (0), could not measure any speed difference in
	my testing r_shadows removed due to GL transforms on models model
	and sprite interpolation now handle 4 frame interpolation to
	accomodate new interpolation system RSurf_Draw* functions greatly
	optimized Host_Error will now Sys_Error rather than crash if
	Host_Frame has not yet been executed cleaned up viewthing frame
	reporting code, now uses the new animation system can now look
	directly up and down ByteToNormal and NormalToByte added in
	mathlib.c, also moved anorms.h table to mathlib.c added axial cases
	for BoxOnPlaneSide (BIG improvement) trivert2 vertex format
	removed, now uses alias trivertx_t format as-is (33% less model
	memory usage and possibly quicker loading) redesigned map texture
	loading again (particularly HL maps) water is now lit on both sides
	sprites are now cached like models sprite loading redesigned to use
	new animation system increased maximum packet size to accomodate
	the largest possible PF_vectoyaw optimized a little PF_vectoangles
	optimized a little PF_findchain added PF_findchainfloat added
	PF_effect added PF_te_blood added PF_te_bloodshower added
	PF_te_explosionrgb added PF_te_particlecube added
	PF_te_particlerain added PF_te_particlesnow added PF_te_spark added
	PF_te_gunshotquad added PF_te_spikequad added PF_te_superspikequad
	added PF_te_explosionquad added PF_te_smallflash added
	PF_te_customflash added PF_te_gunshot added PF_te_spike added
	PF_te_superspike added PF_te_explosion added PF_te_tarexplosion
	added PF_te_wizspike added PF_te_knightspike added PF_te_lavasplash
	added PF_te_teleport added PF_te_explosion2 added PF_te_lightning1
	added PF_te_lightning2 added PF_te_lightning3 added PF_te_beam
	added PF_vectorvectors added increased maximum file path length
	explosions are no longer round removed LIGHTSCALE settings removed
	r_donttransformmodels cvar a lot of particle effect changes
	(bouncing sparks, blood sprays from gibs that stick on the walls)
	fixed sound combining so it no longer plays past the end of the
	buffer fixed sound resampling

2001-04-05 10:51  taniwha

	* quakeio.c, quakeio.h: while not yet used (I'd forgotten how much
	side work was involved in getting zlib support into quake), these
	will allow dp to use compressed paks :) The rest will be coming as
	soon as I get everything working.

2001-03-15 08:19  dabb

	* dp-bc.mak: Compile fixes.

2001-03-04 14:30  lordhavoc

	* gl_rsurf.c, model_brush.c: now supports upto 256x256 texel
	lightmaps (rather than 17x17), as_tundra.bsp works now

2001-03-03 17:16  lordhavoc

	* sys_wind.c: forgot this file while changing FALSE and TRUE to
	false and true

2001-03-03 17:04  lordhavoc

	* cl_parse.c, conproc.c, gl_rmain.c, gl_rmisc.c, gl_warp.c,
	image.c, in_win.c, model_brush.c, net_wins.c, pr_cmds.c, r_part.c,
	sv_main.c, sys_win.c, vid_wgl.c, wad.c, wad.h: rewrite of map
	texture loading (mainly to do with HL textures and wads)
	
	and all FALSE and TRUE changed to false and true

2001-03-03 14:49  lordhavoc

	* model_brush.c, wad.c: redesigned transparent HL texture checking
	again, now treats color 255 as transparent but only when the
	texture begins with a { character

2001-03-03 14:10  lordhavoc

	* model_brush.c, wad.c: fixed transparent color in HL textures (was
	red, should be blue... oops)

2001-03-03 14:02  lordhavoc

	* view.c: server speed controls fade out of damage/bonus flashs now
	(more reliable timedemo)

2001-03-02 14:14  lordhavoc

	* cl_parse.c: a little cleanup, and eliminated a lightstyle buffer
	overflow

2001-03-02 14:03  lordhavoc

	* cl_parse.c: added DPPROTOCOL support to svc_version parsing (is
	svc_version even used?)

2001-03-02 13:40  lordhavoc

	* cl_parse.c: added a new hack to make MSVC work which will
	definitely not break any other compilers

2001-03-02 13:28  lordhavoc

	* cl_parse.c: removed hack to make MSVC work as it was breaking gcc

2001-03-02 02:52  lordhavoc

	* cl_parse.c, cl_tent.c, common.c, common.h, gl_models.c,
	gl_rsurf.c, model_alias.c, model_brush.c, model_shared.c,
	pr_cmds.c, r_part.c, sv_main.c, sv_phys.c, wad.c, world.c, zone.c:
	Coordinates are now floats in network protocol (bloats it yes, but
	the accuracy allows unlimited map size, and smoother movement at
	very high framerates) prints dump of last 32 svc messages in packet
	when client encounters unknown svc (corrupt or mis-parsed network
	stream) some aesthetic cleanup of tempentity parsing rewrite of
	COM_FileBase default gl_lightmaprgba to 1 (driver speedup (data
	bloat, but drivers are often more optimized for it), thought I
	defaulted it to 1 all along, but apparently not) model names no
	longer use COM_FileBase (thus they are the full name, like
	"progs/blah.mdl" rather than "blah", "maps/start.bsp" instead of
	"start", etc) fixed bugs in model colormapping, and added external
	skin texture support (example: progs/blah.mdl_0_normal.tga and
	progs/blah.mdl_0_glow.tga, pants and shirts are also supported)
	support for textures inside HL maps, and the transparent color has
	been fixed (HL checks for pure blue, not index 255) default
	r_dynamicparticles to 1 (light smoke/blood) improvement in angled
	corner sticking situations (still get a little bump as you pass
	through, but not actually stuck) fixed rotation support in
	MOVETYPE_FOLLOW, now works perfectly extended description length in
	hunk headers (50 characters now)

2001-02-28 12:41  despair

	* vid_glx.c: Fix for exit segfault preventing fullscreen cleanup,
	and for the segfault as well.  Also enables dga mouse support, and
	adds in_dga_mouseaccel. DGA support needs testing.

2001-02-27 00:11  lordhavoc

	* sv_light.c: oops, hadn't finished this

2001-02-27 00:07  lordhavoc

	* makefile: forgot to commit this

2001-02-27 00:07  lordhavoc

	* r_light.c, sv_light.c, sv_main.c: clean up use of client structs
	in server

2001-02-23 16:21  despair

	* snd_alsa_0_5.c: Minor comment update.

2001-02-23 16:20  despair

	* makefile, snd_alsa_0_6.c, snd_alsa_0_9.c, sound.h: Remove alsa
	0.6 (for some random date of cvs alsa) support, never officially
	released. 0.9 is out, rejoice!

2001-02-23 16:10  despair

	* snd_alsa_0_9.c: Update to latest ALSA development drivers. 
	(Thanks again to Abramo)

2001-02-23 16:08  lordhavoc

	* model_zymotic.h: added model_zymotic.h (forgot)

2001-02-23 15:51  lordhavoc

	* makefile, r_explosion.c: updated makefile and added r_explosion.c
	(forgot)

2001-02-23 15:39  lordhavoc

	* chase.c, cl_main.c, common.c, common.h, gl_models.c, gl_poly.c,
	gl_rmain.c, gl_rsurf.c, gl_screen.c, gl_textures.c, glquake.h,
	host.c, host_cmd.c, model_alias.c, model_alias.h, model_brush.h,
	model_shared.c, pr_edict.c, pr_exec.c, progs.h, r_light.c,
	r_light.h, r_part.c, render.h, sv_main.c, sv_phys.c, sv_user.c,
	transform.c, transform.h, vid_wgl.c, world.c: improved TraceLine in
	chase.c to be more generally useful (should move it to another
	file, though) error checking in qmalloc/qfree expanded COM_LoadFile
	max filename length from 32 to 1024 improved COM_LoadFile error
	messages added COM_ToLowerString and COM_ToUpperString .zym model
	support (not quite complete, in development) unfinished transition
	to hardware model transforms (not used yet) changed polylists to
	draw 5+ point polygons as GL_POLYGON instead of GL_TRIANGLE_FAN (I
	thought I had reverted to GL_POLYGON a long time ago... strange)
	for a minor speedup new explosion effect (no particles) reverted to
	lightmapped dynamic lighting effects (vertex hybrid still available
	as r_dlightmaps 0) extreme speed improvements in which wall
	polygons are lit minor optimization to lightmap building (memset to
	clear blocklights) added and disabled texture caching to disk (it
	turned out to be a slowdown and a massive waste of space, but kept
	in source form incase it is ever useful) much improved missing QC
	function errors (most notably think) partial redesign of the skin
	colormapping engine (not used yet) more consistent light falloff on
	different objects created and scrapped a new particle explosion
	effect (way too fillrate intensive), superseded by the new
	explosion effect only dynamically lights smoke and blood particles
	unless r_dynamicparticles is 2 possible fix for alt-tab bug in
	NVidia drivers (from Dabb)

2001-02-18 07:14  despair

	* makefile: Undo accidental makefile commit.

2001-02-18 07:09  despair

	* makefile, net_udp.c, sys_linux.c: Couple of 1 liner compile
	fixes. Missing header and missing cast.

2001-02-13 14:07  lordhavoc

	* zone.c: report name when Hunk_Alloc fails

2001-02-12 00:24  lordhavoc

	* gl_rmain.c: fix for unitialized variable warnings

2001-02-09 04:11  lordhavoc

	* cl_main.c, gl_models.c, gl_poly.c, gl_refrag.c, gl_rmain.c,
	gl_rmisc.c, gl_rsurf.c, gl_screen.c, gl_warp.c, glquake.h, host.c,
	mathlib.h, model_brush.h, pr_edict.c, quakedef.h, r_part.c,
	r_sprites.c, render.h, sv_main.c, sv_phys.c, sv_user.c, world.c:
	added back r_speeds2, with masses of information (6 lines high),
	and made it print to the screen rather than console print changed
	fps reading to be integer, no fraction (is this desirable?) and
	moved it to bottom right corner changed rendering order yet again
	made sky and waterripple speed dependent on cl.time rather than
	realtime (undecided if this is desirable) made console scrolling
	not subject to slowmo time scaling some whitespace changes/cleanup
	moved some registervariable definitions around optional new
	worldnode function (r_newworldnode, defaults to off), very
	different approach, minimal speed differences...  sigh added
	backface culling on surfaces (r_nobacks, defaults to off), barely a
	gain in worldnode, made 'trivial inclusion' case for all children
	nodes of a completely successful CullBox test, defaults to off
	because it was no speed gain even on the most complex maps I could
	find readability cleanup and minor speedup in lightmap conversion
	added host_minfps (if framerate drops below this it will be slowmo,
	this replaces quake's hardcoded 10fps limit) added host_maxfps
	(limit your framerate if desired, defaults to 1000, this does
	affect timedemo) improved slowmo behavior optimized out most
	vec3_origin uses (created VectorNegate and VectorClear for this
	reason) fixed VectorDistance (old definition didn't work correctly,
	but never got used anyway) darkened blood trails a bit split
	R_DrawParticles into R_MoveParticles and R_DrawParticles (for speed
	profiling reasons) fix for extremely rare and probably unnoticable
	bug in particle compacter fixed a number of prediction issues,
	prediction does not occur in local games anymore, prediction also
	made optional (sv_predict cvar)

2001-02-07 02:22  lordhavoc

	* snd_linux.c, snd_oss.c: renamed snd_linux.c to snd_oss.c

2001-02-06 09:26  lordhavoc

	* gl_draw.c, gl_rsurf.c, gl_textures.c, host_cmd.c, quakedef.h,
	r_light.c, r_light.h, sv_main.c, sys_linux.c: better version
	reports (always mention build number) minor cleanup of qpic system
	(loading and drawing) minor improvement to lighting engine
	tweakability (LIGHTSCALE2) minor cleanup to texture tracking
	(totaltexels now called texeldatasize) r_texturestats texture size
	reports are now correct (was showing 4x what it should have)
	r_texturestats report rearranged to put size on the left for easy
	sorting in console logs cruft removal

2001-02-03 07:54  lordhavoc

	* buildnumber.c: increased build number to 79

2001-02-03 07:54  lordhavoc

	* vid_wgl.c: removed unused cvars

2001-01-29 03:59  lordhavoc

	* cmd.c, common.c, common.h, gl_rsurf.c, gl_textures.c, gl_warp.c,
	host.c, host_cmd.c, model_alias.c, model_brush.c, model_sprite.c,
	pr_edict.c, quakedef.h, sys_linux.c, sys_win.c, sys_wind.c, zone.c,
	zone.h: got rid of Hunk_Alloc, all allocations now have a proper
	name (perhaps a bit too descriptive even), improved texture tally
	to list wasted skin layers (colormapping), made hunk names 24
	characters instead of 8.

2001-01-29 00:14  lordhavoc

	* common.c, common.h, fractalnoise.c, gl_draw.c, gl_models.c,
	gl_poly.c, gl_rsurf.c, gl_screen.c, gl_textures.c, gl_warp.c,
	hcompress.c, host.c, image.c, model_alias.c, model_brush.c,
	model_shared.c, model_sprite.c, palette.c, r_part.c, snd_mem.c,
	sys_linux.c, sys_win.c, sys_wind.c, wad.c: every malloc/calloc/free
	converted to qmalloc/qfree with tracking (memstats command), and
	all uses of Hunk_TempAlloc have gone away

2001-01-28 23:00  lordhavoc

	* common.c, zone.c: reduced default -zone from 512k to 128k (quake
	used 48k)

2001-01-28 22:49  lordhavoc

	* r_part.c: smoke trails no longer rise (but you could hardly tell
	anyway, due to their short length)

2001-01-28 22:47  lordhavoc

	* r_part.c: smoke trails changed again, smoke texture greatly
	improved

2001-01-28 22:10  lordhavoc

	* gl_screen.c, image.c, image.h: make screenshots rightside up
	again (or rather, upside down like TGA wants, which happens to be
	the output format of glReadPixels, a fact I was unaware of, so the
	flipping was turning it to rightside up, which is upside down in
	TGA...	follow that logic?  good :)

2001-01-28 03:03  lordhavoc

	* r_part.c: smoke effects changed a bit (and the smoke texture
	generator as well), rockets trail sparks too

2001-01-28 02:03  lordhavoc

	* gl_rmain.c, vid.h, vid_glx.c, vid_wgl.c: VID_CheckMultiTexture
	case was wrong (now VID_CheckMultitexture)

2001-01-24 22:46  lordhavoc

	* makefile: updated OBJECTS list and added cleaning of
	darkplaces-3dfx

2001-01-22 16:27  lordhavoc

	* vid_3dfxsvga.c: removed unused gldir string

2001-01-22 16:12  lordhavoc

	* vid_glx.c: disabled unused variable

2001-01-22 16:10  lordhavoc

	* vid_glx.c: ripped out vertex array function lookup, require
	OpenGL 1.2.x instead.

2001-01-22 15:58  lordhavoc

	* cl_parse.c, gl_screen.c, gl_warp.c, host_cmd.c, image.h,
	pr_edict.c, progs.h, protocol.h, sv_phys.c, world.c: clarifications
	about the format of svc_fog precache name overflow checks
	gl_screen.c - whitespace changes? sky name overflow checks "tell"
	buffer overflow improvement (not really a fix) edict parsing buffer
	increase (not really a fix) increased number of leafs per entity
	from 64 to 256 (mem hog...  but fixes fall2.bsp  note: quake used
	16 and did not have a problem with fall2?) and added warning when
	it runs out removed rotating pusher hack and added solid checking
	non-working MOVETYPE_FOLLOW rotation support (in-progress)

2001-01-22 15:15  lordhavoc

	* image.c, model_sprite.c: fixed (byte *) - (char *) subtraction

2001-01-22 15:13  taniwha

	* image.c: fix a char type problem

2001-01-12 03:36  lordhavoc

	* image.c, model_sprite.c: Fix for image replacement in sprites,
	now the sprite extension is stripped before the frame names are
	generated (so naming for s_explod.spr is like s_explod_0.tga,
	s_explod_1.tga, etc) and the extension stripping in the image
	loader will only strip off .lmp or .pcx or .tga, not other
	extensions, the sprite extension stripper is similar but for .spr
	and .spr32.

2001-01-07 08:56  lordhavoc

	* model_brush.c: workaround/fix for bounds checking warning

2001-01-07 08:49  lordhavoc

	* common.c: critical fix for COM_FileBase (could go hunting through
	mem for /)

2001-01-07 08:38  lordhavoc

	* model_brush.c: workaround for bounds checking error in loading
	texture lump

2001-01-07 08:11  lordhavoc

	* gl_draw.c: disabled scrap system (what an eye sore that was...)
	and fixed interpolated text condition (now interpolated when
	scaling up, as it was meant to be)

2000-12-20 14:16  lordhavoc

	* r_part.c: smoke and blood changes

2000-12-10 02:59  dabb

	* dp-bc.mak: Added palette.c and r_sprites.c. Compiles now.

2000-12-09 10:15  lordhavoc

	* buildnumber.c: build 78

2000-12-09 10:04  lordhavoc

	* chase.c, cl_main.c, cl_parse.c, client.h, gl_draw.c, gl_models.c,
	gl_poly.c, gl_poly.h, gl_rmain.c, gl_rmisc.c, gl_rsurf.c,
	gl_screen.c, gl_textures.c, gl_warp.c, glquake.h, host.c, image.c,
	in_win.c, model_alias.c, model_brush.c, model_sprite.c, palette.c,
	palette.h, quakedef.h, r_crosshairs.c, r_light.c, r_part.c,
	r_sprites.c, render.h, sv_main.c, sv_phys.c, sys_linux.c,
	sys_win.c, sys_wind.c, vid.h, vid_3dfxsvga.c, vid_glx.c,
	vid_shared.c, vid_wgl.c, view.c, view.h, winquake.h, world.c,
	world.h: bmodel rotation physics now work new vid_glx.c
	(contributed by zinx) removed DPNEHAHRA engine titling fixed some
	lighthalf, fog, and sky related bugs removed some 3D card hacks
	merged GL_Init code for all targets (note: vid_glx.c and
	vid_3dfxsvga.c may be broken) split sprite code out in gl_sprites.c
	rearranged palette management code removed all traces of 8bit
	upload support for now (may be added back) halved memory usage
	(although this prevents renderer restarting for the moment)
	implemented r_texturestats command removed old texture upload code
	rewrote use of host_parms rewrote some code relating to
	host_basepal bigendian support in pcx loading changed external
	texture character equivilant for * from + to # to avoid conflicts
	with animating textures removed cruft here and there force all
	textures to lowercase to mask potentially silly wad lump names in
	maps new crosshairs more stuff is extern in includes some general
	cleanup of the MOVETYPE_PUSH code rewrote portions of vid_wgl.c
	V_UpdatePalette renamed to V_UpdateBlends removed starting dialog
	code in wgl made SV_RecursiveHullCheck accessable in world.h

2000-11-30 09:06  taniwha

	* net_udp.c, net_wins.c: apply the 0 byte udp packet DoS fix from
	nuq.

2000-11-28 05:22  lordhavoc

	* cl_tent.c: made glowing lightning optional

2000-11-26 22:46  lordhavoc

	* r_part.c: spark showers on explosions, better sparks on bullet
	impacts

2000-11-26 22:40  lordhavoc

	* model_shared.c: removed cruft from debugging

2000-11-26 22:05  lordhavoc

	* model_shared.c: put in dprinting of model names as they are
	loaded

2000-11-26 22:04  lordhavoc

	* r_part.c: removed unused tracercount

2000-11-26 17:47  lordhavoc

	* buildnumber.c: build 77

2000-11-26 17:37  lordhavoc

	* r_part.c: rain splatters on the ground and water, and turns to
	steam on slime/lava, bubbles splatter when they leave water

2000-11-26 15:20  lordhavoc

	* fractalnoise.c, gl_models.c, quakedef.h, r_part.c: fractalnoise
	enhancements, better smoke textures, better bubble explosions,
	blood in water

2000-11-26 01:38  lordhavoc

	* gl_draw.c: forgot to extern GL_LoadPicTexture

2000-11-26 01:22  lordhavoc

	* cl_parse.c, gl_draw.c, gl_screen.c, glquake.h, image.c, image.h,
	progs.h, render.h, sbar.h, server.h, sv_main.c: cruft removal,
	general cleanup, fix for delta compression bugs, generic targa
	writer

2000-11-26 01:18  lordhavoc

	* model_alias.c, model_alias.h: work around gcc lacking support for
	no-size arrays in structures

2000-11-23 07:09  dabb

	* dp-bc.mak: Cleaned up a bit..

2000-11-23 07:03  dabb

	* dp-bc.mak: Fixed some of the mess. Might work now...

2000-11-23 05:15  lordhavoc

	* buildnumber.c: build 76

2000-11-23 05:14  lordhavoc

	* draw.h, gl_draw.c: minor redesign of console loading/drawing,
	cruft removal, change to Draw_GenericPic parameter types

2000-11-23 00:25  lordhavoc

	* gl_draw.c: cruft removal

2000-11-23 00:24  lordhavoc

	* vid_3dfxsvga.c, vid_glx.c: very minor cruft removal

2000-11-21 07:36  dabb

	* dp-bc.mak: Borland C++ makefile for Darkplaces. Does NOT use asm
	objs yet, but works otherwise.

2000-11-21 06:54  dabb

	* sys_win.c: Borland C++ compile fix - works/compiles now.

2000-11-21 06:49  dabb

	* console.c: Borland C++ compile fixes

2000-11-21 02:17  lordhavoc

	* gl_rmain.c: fix for sprite scale bug (it was scaling vup and
	vright!)

2000-11-21 01:13  lordhavoc

	* gl_rsurf.c: merged RSurf_DrawWall/EmitWall/etc back into
	RSurf_DrawWall for speed reasons (split version was only for
	profile testing)

2000-11-21 01:12  lordhavoc

	* gl_textures.c: fixed duplicate application of gamma correction

2000-11-21 01:11  lordhavoc

	* view.c: removed cruft

2000-11-21 01:11  lordhavoc

	* gl_models.c: removed fullbright torch hack :)

2000-11-21 01:09  lordhavoc

	* gl_draw.c: skip all of Draw_String when rendering is disabled

2000-11-21 01:02  lordhavoc

	* image.c, image.h, model_sprite.c: added support to image loader
	for loading mask as well (used for fog effects), removed some
	cruft, and made sprite loader check for external textures

2000-11-21 00:58  lordhavoc

	* r_part.c: more particle effect changes...

2000-11-21 00:49  lordhavoc

	* cvar.c: fixed spelling error (allready -> already)

2000-11-18 01:53  lordhavoc

	* gl_draw.c, gl_models.c, gl_poly.c, gl_rmain.c, gl_rmisc.c,
	gl_rsurf.c, gl_screen.c, gl_textures.c, gl_warp.c, glquake.h,
	vid_3dfxsvga.c, vid_glx.c, vid_wgl.c: implemented r_render and
	r_upload cvar options for CPU profiling (not hardware bound), note:
	defining NORENDER will disable both (useful for making profile
	builds)

2000-11-18 00:37  lordhavoc

	* cl_main.c, r_light.h: removed unused 'minlight' option from
	dlight struct, and made muzzleflash light maller

2000-11-18 00:12  lordhavoc

	* world.c: backport of PM_RecursiveHullCheck for speedup

2000-11-18 00:07  lordhavoc

	* gl_models.c: removed cruft

2000-11-17 17:08  lordhavoc

	* gl_models.c: removed cruft

2000-11-17 17:05  lordhavoc

	* r_light.c: light only the front faces, cuts down on noticable
	visdata anomolies

2000-11-17 03:28  lordhavoc

	* draw.h, gl_draw.c, menu.c, sbar.c, vid_wgl.c: obliterated
	Draw_TransPic and relatives, also fixed Draw_TransPicTranslate, and
	restored pics to normal brightness

2000-11-17 03:24  lordhavoc

	* gl_rsurf.c, gl_screen.c: combined glClear calls, may be a speedup

2000-11-17 03:22  lordhavoc

	* vid_3dfxsvga.c: removed glClearColor because it was being reset
	in gl_screen anyway

2000-11-17 03:20  lordhavoc

	* cl_main.c: changed texture slots in use message (developer mode
	only) to not mention glquake

2000-11-17 02:33  lordhavoc

	* gl_rmain.c, gl_rsurf.c, glquake.h, model_brush.h: speedups to
	R_WorldNode, and some shrinkage on the surface struct

2000-11-17 02:32  lordhavoc

	* sys_win.c: disabled Sys_PageIn for quicker startup (whether this
	is good or not is questionable)

2000-11-17 00:33  lordhavoc

	* buildnumber.c, cl_main.c, cl_parse.c, cl_tent.c, client.h,
	common.c, draw.h, gl_draw.c, gl_poly.c, gl_rmain.c, gl_rmisc.c,
	gl_rsurf.c, gl_screen.c, gl_warp.c, glquake.h, host.c, host_cmd.c,
	image.c, model_alias.c, model_alias.h, model_brush.c,
	model_shared.c, model_shared.h, modelgen.h, net_wins.c, pr_exec.c,
	quakedef.h, r_light.c, r_part.c, render.h, sv_main.c, vid_glx.c,
	vid_shared.c, vid_wgl.c, view.c, world.c, gl_models.c,
	gl_textures.c, image.h, r_crosshairs.c, r_light.h, r_modules.c,
	r_modules.h: updated to version 1.50, build 75.  change log as best
	I can remember: rewrote model loading and rendering multi-pass
	colormapping on any model (NO UPLOADS!) fullbrights on models
	(feature of new multi-pass model renderer) rewrote texture
	management rewrote texture uploading heavily optimized static light
	sampling fancy new crosshair fixed network angle rounding (shots
	are fired where you're pointing, not down and to the right) HL map
	hull sizes are supported (still sink into grates though) removal of
	some commented out junk other minor stuff I can't remember now

2000-11-12 14:40  lordhavoc

	* buildnumber.c: increased build number to 73

2000-10-31 07:33  taniwha

	* snd_alsa_0_6.c: from newtree. at worst will need a header tweek

2000-10-30 19:31  lordhavoc

	* gl_poly.c, gl_poly.h, gl_rmain.c, gl_rsurf.c, host_cmd.c,
	model_brush.c: lighthalf related transpoly cleanup major cleanup of
	surface rendering code for readability sake SV_ChangeTeam added for
	sake of QC in mods (allows the mod to review all color changes and
	decide what to do with them, setcolor is useful for this) minor
	light chunk loader cleanup (including a questionable bugfix
	relating to .lit files for maps without light data)

2000-10-30 19:20  lordhavoc

	* buildnumber.c: incremented buildnum

2000-10-30 17:34  lordhavoc

	* pr_cmds.c: added setcolor builtin

2000-10-30 17:33  lordhavoc

	* image.c: increased max pcx size to 320x256

2000-10-28 12:04  lordhavoc

	* makefile: added buildnumber.c to makefile

2000-10-28 11:49  lordhavoc

	* host.c: recursive host_error improvement (prints both error
	messages)

2000-10-28 11:47  lordhavoc

	* r_part.c: particle audit, only one kind of gravity now, many
	unused particle types removed, blood trails look cooler without
	gravity, etc

2000-10-28 11:45  lordhavoc

	* sv_main.c: remove never used svc_playerposition code

2000-10-26 04:57  lordhavoc

	* cl_tent.c, protocol.h, r_part.c, render.h: particle effect
	changes and code cleanup

2000-10-26 04:54  lordhavoc

	* cl_input.c, common.c, common.h, sv_user.c: changes to dpprotocol
	code (precise aiming mainly)

2000-10-24 03:26  lordhavoc

	* r_part.c: fix for blob particle crash

2000-10-21 03:25  lordhavoc

	* chase.c: fixed chase_active (TraceLine no longer returns '0 0 0'
	when there was no impact)

2000-10-21 03:24  lordhavoc

	* view.c: fix for player model tilting in chase_active mode

2000-10-21 03:22  lordhavoc

	* sv_main.c: fix for serious bug in .nodrawtoclient,
	.drawonlytoclient, and .viewmodelforclient comparisons - they now
	work

2000-10-21 03:15  lordhavoc

	* glquake.h, r_part.c: major particle engine speedup and cleanup of
	old commented out code, also moved particle defines from glquake.h
	to r_part.c where they belong (all particle code should live in
	r_part.c)

2000-10-17 02:38  lordhavoc

	* buildnumber.c, gl_rsurf.c: increased build number, changed
	default lightmap format to RGB (higher quality in 16bit modes),
	though this is likely to break windows Matrox G400 drivers in
	multitexture (the reason it was defaulted to RGBA previously)

2000-10-17 00:38  taniwha

	* gl_rsurf.c, makefile, snd_alsa.c, snd_alsa_0_5.c, snd_alsa_0_6.c:
	almost compiles on linux again. also bring in the latest
	and_alsa*.c from newtree

2000-10-16 15:13  lordhavoc

	* gl_rsurf.c, model_brush.h: fixed all known vertex lighting mode
	problems (except sorting issues)

2000-10-16 15:11  lordhavoc

	* gl_rmain.c: fix for transpolys disappearing while turning

2000-10-16 13:48  lordhavoc

	* gl_rmain.c, gl_rsurf.c, model_brush.h, r_light.c: yet another
	rewrite of the dlight engine, this time FAST new stuff: much higher
	quality (loose shadowing) gl_vertex cvar to try vertex lighting
	(warning: very obvious transpoly sorting problems)

2000-10-16 13:46  lordhavoc

	* mathlib.h: minor speedup to VectorNormalize #define's

2000-10-15 08:45  lordhavoc

	* buildnumber.c, chase.c, cl_main.c, cl_parse.c, cl_tent.c,
	common.c, common.h, console.c, cpu_x86.nasm, cpu_x86.obj,
	gl_draw.c, gl_poly.c, gl_poly.h, gl_rmain.c, gl_rmisc.c,
	gl_rsurf.c, gl_screen.c, glquake.h, host.c, mathlib.h,
	model_brush.h, net_dgrm.c, protocol.h, quakedef.h, r_light.c,
	r_part.c, render.h, sbar.c, server.h, sv_main.c, sv_user.c,
	sys_win.c, vid_wgl.c, view.c, world.c: Gigantic commit - dlight
	system rewritten added serverside prediction removed dark light
	support removed explosion sparks removed blastparticles code
	particle effects changed added build numbering removed SetPal
	removed remnants of surface cache code fixed SZ_Clear in
	Host_Spawn_f forgot what else...

2000-10-05 15:53  lordhavoc

	* host_cmd.c: Clear message buffer before calling ClientConnect,
	rather than after.

2000-10-02 21:00  taniwha

	* makefile: hopefully fix the 3dfx target

2000-10-02 17:05  mercury

	* in_svgalib.c: Not adding, it has been here all along, you just
	have not seen it.  REALLY!

2000-09-26 12:25  lordhavoc

	* gl_screen.c: epsilon checking on brightness and contrast cvars

2000-09-25 19:28  taniwha

	* .cvsignore: ignore darkplaces-glx

2000-09-21 21:47  lordhavoc

	* common.c: raised pack file count back to 16384 and fixed stack
	overflow

2000-09-21 20:52  lordhavoc

	* common.c: decreased pack file count limit to 4096 due to stack
	overflow

2000-09-21 20:37  lordhavoc

	* common.c: upped pack file count limit to 16384 from 2048

2000-09-21 18:44  lordhavoc

	* gl_rsurf.c: lighting improvement in rgba mode, may crash some
	windows drivers

2000-09-21 18:42  lordhavoc

	* snd_win.c: -sndspeed option in windows (default: 11025)

2000-09-21 18:42  lordhavoc

	* snd_mem.c: Fix for crashs when downsampling sounds.

2000-09-20 20:09  lordhavoc

	* model_alias.c: disabled texcoord checks in alias models, due to
	CTF v_star bug

2000-09-20 20:07  lordhavoc

	* snd_dma.c, snd_mem.c, snd_win.c: 44.1khz sound, interpolated
	resampling, killed cvar loadas8bit

2000-09-20 18:47  lordhavoc

	* snd_mem.c: ResampleSfx clean up and a bug fix on resampled stereo

2000-09-18 11:45  lordhavoc

	* bspfile.h, mathlib.c, mathlib.h, model_brush.h, snd_mix.c,
	sound.h, sys.h, sys_linux.c, sys_win.c, sys_wind.c: removal of
	various id386 junk

2000-09-18 08:53  lordhavoc

	* pr_cmds.c: copyentity builtin added

2000-09-18 08:52  lordhavoc

	* cl_tent.c, glquake.h, r_part.c: explosions push away particles

2000-09-18 08:50  lordhavoc

	* host.c: minor tweak to the forcing of color 255 to black

2000-09-17 15:30  lordhavoc

	* sbar.c: transparent statusbar

2000-09-16 12:53  taniwha

	* makefile, snd_alsa.c: add ALSA support

2000-09-15 13:34  taniwha

	* COPYING: I think that this really should be in here

2000-09-13 18:00  lordhavoc

	* gl_rmain.c, gl_rsurf.c, model_brush.h, r_light.c, r_part.c:
	Implemented r_ambient (mainly for sake of Nehahra's insanely dark
	maps).

2000-09-12 08:12  deek

	* host.c, makefile, sys_linux.c: host.c, sys_linux.c: Clear up
	linefeeds in Sys_Printf() -- we don't need to add them, they should
	already be in there. Also, add optional timestamping to console -
	doesn't work well with messages that call Sys_Printf() multiple
	times, but for the rest it works fine.
	
	cvar names: timestamps (int), timeformat (string)

2000-09-11 12:28  lordhavoc

	* cl_parse.c, cl_tent.c, gl_poly.c, gl_rmain.c, gl_rsurf.c,
	gl_warp.c, pr_edict.c, pr_exec.c, protocol.h, r_light.c, r_part.c:
	clean up, r_farclip cvar, lit particles (optional), stuff

2000-09-11 11:23  lordhavoc

	* menu.c: fix for uppercase nehahra movie names (oops, 'twas
	Ender's code).

2000-09-11 10:56  mercury

	* glquake.h, keys.h, makefile, vid_3dfxsvga.c: -3dfx support for
	linux!

2000-09-06 15:11  lordhavoc

	* cl_parse.c, cl_tent.c, console.c, gl_draw.c, gl_rmain.c,
	gl_rmisc.c, gl_rsurf.c, gl_screen.c, glquake.h, host.c, r_light.c,
	r_part.c, render.h, sbar.c, sbar.h, vid.h, vid_glx.c, vid_wgl.c,
	view.c: Various graphical tweaks (mainly particle related), some
	code removed.

2000-09-06 06:24  lordhavoc

	* cd_linux.c, cl_input.c, cl_main.c, cl_parse.c, cl_tent.c,
	common.c, common.h, cpu_noasm.c, cpu_x86.bat, cpu_x86.nasm,
	cpu_x86.obj, gl_draw.c, gl_rmain.c, gl_rmisc.c, gl_rsurf.c,
	gl_screen.c, gl_warp.c, glquake.h, host.c, host_cmd.c, image.c,
	makefile, mathlib.h, menu.c, model_alias.c, model_alias.h,
	model_brush.c, net.h, net_bsd.c, net_dgrm.c, net_main.c, net_udp.c,
	net_udp.h, pr_cmds.c, pr_exec.c, quakedef.h, r_part.c, server.h,
	snd_dma.c, snd_linux.c, sv_main.c, sv_phys.c, sv_user.c,
	sys_linux.c, sys_win.c, vid.h, vid_glx.c, vid_shared.c, vid_wgl.c,
	wad.h, winquake.h, world.c: Linux GLX, a lot of code
	shrinkage/cleanup, assembly support.

2000-09-03 02:29  dabb

	* transform.h: Borland C++ compile fixes.

2000-08-31 09:49  lordhavoc

	* model_brush.c: extern fix

2000-08-31 09:48  lordhavoc

	* glquake.h, model_alias.c, r_part.c, vid_wgl.c, view.c: Better
	smoke textures, no floodfillskin, some cleanup.

2000-08-31 08:32  lordhavoc

	* r_light.c: Fix for glowing objects sometimes appearing black.

2000-08-31 08:08  lordhavoc

	* fractalnoise.c: Very minor speedup to fractal noise generator.

2000-08-31 07:43  lordhavoc

	* model_alias.c: Major speedup to model loading, using
	lightnormalindex table now.

2000-08-31 07:25  lordhavoc

	* net_wipx.c: -noipx changed to -ipx at Dabb's request.

2000-08-31 07:09  lordhavoc

	* cl_input.c, cl_main.c, cl_parse.c, cl_tent.c, client.h,
	gl_poly.c, gl_rmain.c, gl_rsurf.c, gl_warp.c, glquake.h,
	host_cmd.c, mathlib.h, model_alias.c, r_part.c: misc. cleanup,
	bubble trails fixed, improved lightmap compatibility.

2000-08-25 05:32  lordhavoc

	* chase.c, cl_input.c, cl_main.c, host.c, host_cmd.c, server.h:
	pmodel fixes (now works properly in listen/singleplayer)

2000-08-24 12:53  lordhavoc

	* cl_parse.c, gl_rmain.c: Fog variables redesigned slightly. (no
	longer cvars)

2000-08-24 00:14  dabb

	* snd_win.c, sv_phys.c, world.c, net_wins.c, net_wipx.c,
	gl_rsurf.c, gl_screen.c: Borland C++ compile fixes.

2000-08-23 17:58  lordhavoc

	* cl_parse.c: SVC_FOG changed (uses a short instead of a float so
	QC can write it).

2000-08-23 16:42  lordhavoc

	* cl_main.c, client.h, host_cmd.c, model_brush.c: HalfLife texture
	transparency fixed, pmodel enhanced (Nehahra).

2000-08-23 04:26  lordhavoc

	* cl_demo.c, cl_input.c, cl_main.c, cl_parse.c, cl_tent.c,
	common.c, gl_draw.c, gl_poly.c, gl_rmain.c, gl_screen.c, host.c,
	image.c, model_alias.c, model_brush.c, model_shared.c,
	model_sprite.c, pr_cmds.c, pr_edict.c, pr_exec.c, snd_dma.c,
	snd_mem.c, sv_main.c, sv_phys.c, sys_win.c: Too many fixes to
	mention. (sys_ticrate now controls packet rates, and other stuff)

2000-08-22 18:40  lordhavoc

	* gl_poly.c, model_brush.c, sv_main.c: Fix for HalfLife texture
	transparency and renderamt (originally misunderstood).

2000-08-22 17:57  lordhavoc

	* pr_edict.c, progs.h: Corrected misspelling in HL support
	(rendertype is now rendermode).

2000-08-22 17:03  lordhavoc

	* pr_edict.c, progs.h, sv_main.c: HalfLife renderamt support (why?
	boredom...)

2000-08-22 16:27  lordhavoc

	* chase.c, host_cmd.c, in_null.c, net_bsd.c, nonintel.c,
	pr_edict.c, progs.h, sv_user.c: pmodel command support for Nehahra
	multiplayer (select skins/models by one number - hack)

2000-08-21 19:59  lordhavoc

	* mathlib.h, spritegn.h, net.h, pr_comp.h, progdefs.h, protocol.h,
	resource.h, sbar.h, winquake.h, sound.h, sys.h, zone.h,
	model_brush.h, model_sprite.c, model_shared.c, fractalnoise.c,
	model_shared.h, model_sprite.h: Initial upload.

2000-08-21 19:59  lordhavoc

	* mathlib.h, spritegn.h, net.h, pr_comp.h, progdefs.h, protocol.h,
	resource.h, sbar.h, winquake.h, sound.h, sys.h, zone.h,
	model_brush.h, model_sprite.c, model_shared.c, fractalnoise.c,
	model_shared.h, model_sprite.h: Initial revision

2000-08-21 19:56  lordhavoc

	* pr_exec.c, model_alias.h, snd_mem.c, sv_main.c, snd_mix.c,
	transform.c, transform.h, snd_win.c, snd_dma.c, sv_move.c,
	screen.h, sv_phys.c, image.c, sys_win.c, world.c, sys_wind.c,
	wad.c, model_alias.c, model_brush.c, server.h, zone.c, anorms.h,
	modelgen.h, vid_wgl.c, bspfile.h, cdaudio.h, client.h, cmd.h,
	world.h, conproc.h, progs.h, console.h, crc.h, view.c, cvar.h,
	draw.h, vid.h, render.h, view.h, gl_warp_sin.h, net_dgrm.h,
	net_loop.h, net_vcr.h, input.h, keys.h, menu.h, net_wins.h,
	net_wipx.h, wad.h: Initial upload.

2000-08-21 19:56  lordhavoc

	* pr_exec.c, model_alias.h, snd_mem.c, sv_main.c, snd_mix.c,
	transform.c, transform.h, snd_win.c, snd_dma.c, sv_move.c,
	screen.h, sv_phys.c, image.c, sys_win.c, world.c, sys_wind.c,
	wad.c, model_alias.c, model_brush.c, server.h, zone.c, anorms.h,
	modelgen.h, vid_wgl.c, bspfile.h, cdaudio.h, client.h, cmd.h,
	world.h, conproc.h, progs.h, console.h, crc.h, view.c, cvar.h,
	draw.h, vid.h, render.h, view.h, gl_warp_sin.h, net_dgrm.h,
	net_loop.h, net_vcr.h, input.h, keys.h, menu.h, net_wins.h,
	net_wipx.h, wad.h: Initial revision

2000-08-21 19:53  lordhavoc

	* common.c, cd_win.c, chase.c, cl_demo.c, cl_input.c, host_cmd.c,
	cl_parse.c, cl_tent.c, cmd.c, common.h, conproc.c, console.c,
	crc.c, cvar.c, host.c, in_null.c, sbar.c, r_part.c, in_win.c,
	keys.c, gl_poly.h, mathlib.c, sv_user.c, net_win.c, net_dgrm.c,
	net_loop.c, vid_shared.c, net_main.c, net_vcr.c, net_bsd.c,
	net_wins.c, net_wipx.c, hcompress.c, nonintel.c, pr_edict.c:
	Initial upload.

2000-08-21 19:53  lordhavoc

	* common.c, cd_win.c, chase.c, cl_demo.c, cl_input.c, host_cmd.c,
	cl_parse.c, cl_tent.c, cmd.c, common.h, conproc.c, console.c,
	crc.c, cvar.c, host.c, in_null.c, sbar.c, r_part.c, in_win.c,
	keys.c, gl_poly.h, mathlib.c, sv_user.c, net_win.c, net_dgrm.c,
	net_loop.c, vid_shared.c, net_main.c, net_vcr.c, net_bsd.c,
	net_wins.c, net_wipx.c, hcompress.c, nonintel.c, pr_edict.c:
	Initial revision

2000-08-21 19:50  lordhavoc

	* gl_warp.c, r_light.c, gl_refrag.c, gl_rmain.c, gl_rmisc.c,
	gl_rsurf.c, gl_screen.c, gl_poly.c, cl_main.c, pr_cmds.c,
	glquake.h, quakedef.h, gl_draw.c, menu.c: Initial upload.

2000-08-21 19:50  lordhavoc

	* gl_warp.c, r_light.c, gl_refrag.c, gl_rmain.c, gl_rmisc.c,
	gl_rsurf.c, gl_screen.c, gl_poly.c, cl_main.c, pr_cmds.c,
	glquake.h, quakedef.h, gl_draw.c, menu.c: Initial revision

