2007-01-23 04:12  havoc

	* todo: 504 (-7)

2007-01-23 04:02  havoc

	* cl_demo.c, client.h: changed the not-very-useful min/avg/max part
	  of timedemo results to one-second min/avg/max

2007-01-23 02:40  havoc

	* cl_main.c, clvm_cmds.c, csprogs.c: fixed bug in
	  CSQC_AddRenderEdict (it was using the tempentity's modelindex
	  rather than the vm entity, meaning that csqc entities never had a
	  visible model) reduced code by merging cl.csqc_model_precache
	  lookups into CSQC_GetModelByIndex and CSQC_GetModelFromEntity
	  functions

2007-01-23 01:43  havoc

	* cl_collision.c, cl_collision.h, cl_input.c, cl_main.c, client.h,
	  clvm_cmds.c, csprogs.c: eliminated cl.csqc_entities array and
	  related fields

2007-01-23 01:27  havoc

	* cl_input.c, cl_main.c, client.h, clvm_cmds.c, csprogs.c,
	  csprogs.h, view.c: significant cleanup of CL_UpdateEntities,
	  GL_UpdateNetworkEntity, CL_LinkNetworkEntity, V_CalcRefdef
	  handling, and CSQC issues related to these eliminated linkframe
	  from entity_t (this means CL_UpdateNetworkEntity may sometimes
	  process an entity twice, and CL_LinkNetworkEntity is no longer
	  recursive as it does not need to be)

2007-01-23 00:16  havoc

	* sv_main.c: fix a couple warnings (one of them more serious than
	  the other)

2007-01-22 23:14  havoc

	* common.c: added support for single-quoted strings in
	  COM_ParseTokenConsole

2007-01-22 23:13  havoc

	* common.c: removed \ escape character support from
	  COM_ParseTokenConsole because it breaks \ bindings in configs and
	  may have other issues

2007-01-22 23:01  havoc

	* cl_main.c, cl_parse.c, client.h, csprogs.c, csprogs.h, fs.c,
	  fs.h, server.h, sv_main.c: implemented csprogs.dat downloading
	  with special dlcache/name.size.crc file naming, this is in need
	  of testing added csqc_progsize cvar to csqc signon process (still
	  compatible with old servers)

2007-01-22 20:31  havoc

	* vid_sdl.c: two improvements to vid_restart in the SDL client:
	  hardware gamma is now restored after vid_restart, and the brief
	  fullscreen window (used to reset the SDL GL attributes) is now
	  only used during vid_restart, not the initial client startup

2007-01-22 19:34  havoc

	* sv_main.c: STAT_TOTALSECRETS and STAT_TOTALMONSTERS are now
	  networked so deathmatch 7 mode in dpmod shows the total monsters
	  now

2007-01-22 19:20  havoc

	* server.h, sv_main.c, svvm_cmds.c: modified droptofloor to treat
	  trace.startsolid as an acceptable situation, this prevents many
	  items falling out of various user-made maps (including a critial
	  item in level x2m4 of X-Men: Ravages of Apocalypse) added
	  sv_gameplayfix_droptofloorstartsolid cvar to control this
	  behavior

2007-01-22 15:59  havoc

	* svvm_cmds.c: added framecount and framerate checks to PF_effect

2007-01-22 15:53  havoc

	* common.c: added \' and \\ support to parsers, and added such
	  escape code support to ' quoted strings and regular words

2007-01-22 15:51  havoc

	* common.c: implemented \" and \n support in quoted string parsers
	  (console and otherwise)

2007-01-22 15:42  havoc

	* cl_main.c, cl_parse.c, client.h: moved EF_MUZZLEFLASH checking to
	  CL_MoveLerpEntityStates to make muzzleflashes reliably work when
	  the client is running slower than the server made muzzleflash
	  1.5x as large and 4x as bright as before, and fade in 50ms
	  instead of 100ms changed dlight decay to scale color instead of
	  radius

2007-01-22 14:37  havoc

	* cl_particles.c: tweaked default TE_TELEPORT effect, it now spawns
	  one large very bright particle in the middle and 1/8th as many
	  small particles, this should improve multiplayer performance on
	  slow graphics cards, also doubled the brightness of the dlight
	  created, and made it last a bit longer

2007-01-22 14:22  havoc

	* sv_phys.c: improved SV_TestEntityPosition in q1bsp/hlbsp by
	  checking the 8 corner points of the box, this fixes the
	  misaligned double-doors bug in the Prydon Gate expansion "The
	  Dark Age" changed Stuck entity warning from developer 1 to
	  developer 100 because it's annoying and not very helpful

2007-01-22 14:20  havoc

	* cl_parse.c: client no longer tries to download missing files from
	  server if it is hosting the server

2007-01-22 13:06  havoc

	* cl_parse.c, fs.c, fs.h: changed FS_ChangeGamedir to
	  FS_ChangeGameDirs and made it fail if any of the gamedirs are
	  missing (if the failmissing parameter is set) and detect various
	  other failures FS_Init now checks if game directories are found
	  and does a Sys_Error if not now does a Host_Error if a QW server
	  specifies an invalid gamedir (missing gamedir is ok however,
	  because QW downloads files)

2007-01-22 11:40  havoc

	* cl_parse.c: changed ping report name matching to allow scoreboard
	  names to be longer than ping report names (because recent
	  versions of ClanRing CTF seem to append READY on the scoreboard
	  but not the ping report)

2007-01-22 11:38  havoc

	* cl_main.c: CL_Effect (called by svc_effect parsing) now sanity
	  checks framerate and framecount

2007-01-22 00:12  havoc

	* gl_rmain.c, model_brush.c, model_shared.h, todo: autodetect
	  whether a map supports transparent water at load time

2007-01-21 21:27  havoc

	* cl_input.c, cl_main.c, cl_parse.c, cl_screen.c, client.h,
	  common.c, fs.c, fs.h, host.c, protocol.h, server.h, snd_main.c,
	  sv_main.c, sv_user.c, todo: implemented individual file downloads
	  on darkplaces servers deferred loading of files until signon 2
	  (necessary for download system) made loading of files operate in
	  two passes, first for existing files and then again for files
	  that need to be downloaded added cl_joinbeforedownloadsfinish
	  cvar to cause the game to begin after the map is loaded, before
	  other downloads finish (not entirely sure this is a good idea,
	  but it's cool) added sv_allowdownloads cvar to allow
	  enabling/disabling of downloads, and sv_allowdownloads_inarchive
	  and sv_allowdownloads_archive cvars to allow server
	  administrators to enable downloading files from archives or even
	  whole archives if so desired (however the client does not
	  currently request archives)

2007-01-21 15:21  havoc

	* gl_rmain.c, glquake.h, r_shadow.c, r_shadow.h, vid_shared.c:
	  reorganized view rendering setup code a bit to reduce potential
	  for state bugs (more thorough and consistent state resets now)
	  added support for glStencilOpSeparate function in OpenGL 2.0 (or
	  GL_ATI_separate_stencil extension prior to that), so ATI cards
	  should get a speed boost now, this path is now also used on
	  NVIDIA hardware, but support for GL_EXT_stencil_two_side
	  extension has been retained to support several other vendors

2007-01-21 12:53  havoc

	* model_shared.c: added some comments in Mod_LoadModel

2007-01-21 12:52  havoc

	* sbar.c: fixed negative time delta problem with sbar item flashing

2007-01-21 12:51  havoc

	* fs.c, fs.h: added FS_FileSize and made FS_FileExtension public

2007-01-21 12:39  havoc

	* gl_draw.c: r_textshadow is now a saved cvar the r_textshadow
	  shadow color is now 1-red-green-blue (basically meaning it is
	  black except for black text where it is white)

2007-01-20 23:52  havoc

	* wad.c, wad.h: very minor cleaning

2007-01-20 10:27  havoc

	* r_sky.c: fix a crash in R_SkyStartFrame when there is no
	  worldmodel

2007-01-20 10:16  havoc

	* fs.c, fs.h: added FS_CheckNastyPath prototype to fs.h so that it
	  can be used elsewhere

2007-01-20 10:14  havoc

	* snd_main.c, snd_mem.c: S_PrecacheSound now clears the
	  SFXFLAG_FILEMISSING flag so that loading will try again on
	  previously missing files whenever the level changes (particularly
	  important if downloads or gamedir changes have occurred)

2007-01-18 12:08  havoc

	* menu.h: increased M_MAX_EDICTS to 32768 note to Black: 640k ought
	  to be enough for everybody using the nexuiz menu, right? ;)

2007-01-18 12:04  havoc

	* csprogs.h: changed CL_MAX_EDICTS to match MAX_EDICTS

2007-01-18 11:58  havoc

	* host_cmd.c: applied div0's patch to the tell command adding
	  player number support (as opposed to the hard-to-type player
	  names) as well as fixing a bug with quoted player names
	  containing spaces accidentally sending part of the player name to
	  the recipient (similar to the quake tell bug which sent the
	  entire player name)

2007-01-18 11:44  havoc

	* collision.c, model_brush.c: added collision_prefernudgedfraction
	  cvar (defaults to 1), which should improve collision stability in
	  'wedge corner' cases (such as creases in terrain)

2007-01-18 11:41  havoc

	* gl_rmain.c: renamed r_bloomstate.vertex3f to r_screenvertex3f and
	  made it constant

2007-01-18 11:39  havoc

	* cl_main.c, cl_particles.c, view.c: fixed problems with cl.time
	  stepping backwards causing a black fade-in and other problems

2007-01-18 09:49  havoc

	* lhnet.c: support partial IP addresses in the ipv4 address parser,
	  this fixes the 20+ second delay when parsing status messages on
	  some modified quake servers that report only partial addresses
	  (hiding the last octet)

2007-01-18 08:04  havoc

	* darkplaces.txt: expanded the Replacement Content section with
	  some example filenames and other information

2007-01-14 12:18  havoc

	* netconn.c: changed extResponse handler to quote the address
	  string when passing it to the menu qc

2007-01-14 11:19  havoc

	* cd_win.c, cl_main.c, cl_parse.c, common.h, console.c, console.h,
	  csprogs.c, fs.c, fs.h, gl_backend.c, gl_textures.c, image_png.c,
	  menu.c, model_alias.c, model_brush.c, model_shared.c, mvm_cmds.c,
	  netconn.c, progsvm.h, prvm_cmds.c, prvm_edict.c,
	  prvm_execprogram.h, quakedef.h, r_shadow.c, r_sky.c, server.h,
	  snd_mix.c, snd_win.c, sys.h, vid_agl.c, vid_wgl.c, zone.c: patch
	  from div0 that enables printf format warnings in gcc patch from
	  div0 that fixes a lot of printf format warnings (some quite bad)

2007-01-14 11:09  havoc

	* host.c, sv_main.c: patch from div0 that adds sv_random_seed for
	  benchmarking servers with bots the same way repeatedly

2007-01-14 11:05  havoc

	* host_cmd.c: patch from div0 to add sv_adminnick cvar which
	  overrides hostname as the name to use in chat from the dedicated
	  server console (or via rcon say and such)

2007-01-14 11:03  havoc

	* sv_user.c: cast time of received moves to float to prevent
	  negative ping estimates when timer is degraded severely

2007-01-14 10:59  havoc

	* mvm_cmds.c: added DP_MENU_EXTRESPONSEPACKET to extensions list

2007-01-14 10:56  havoc

	* mvm_cmds.c, netconn.c, netconn.h: patch from div0 that adds a
	  special "extResponse " type of packet that can be returned to
	  menu qc as a string (to query current version of Nexuiz or
	  anything else of that nature, requires special servers that
	  return such packets, the packets are sent using the "packet"
	  command which already existed from qw support)

2007-01-14 10:53  havoc

	* draw.h, gl_draw.c: patch from div0 to make DrawQ_ColoredString
	  return the length of the printed text

2007-01-14 10:51  havoc

	* netconn.c: patch from div0 to clamp ping reports to 1-9999 range
	  in getinfo server queries

2007-01-14 10:50  havoc

	* makefile.inc: added -Wdeclaration-after-statement to warn about
	  any use of C99 lazy variable declaration (which is not supported
	  by MSVC)

2007-01-12 04:40  havoc

	* cl_demo.c, cmd.c, cmd.h, host_cmd.c, sv_user.c: changed
	  Cmd_AddCommand to only work for console commands, not client
	  commands executed on the server, Cmd_AddCommand_WithClientCommand
	  has been added to allow separate command functions for console
	  commands and client commands, this got rid of a lot of cmd_source
	  == src_command checks this refactoring fixes a security
	  vulnerability in the clcommand builtin provided by
	  KRIMZON_SV_PARSECLIENTCOMMAND, which was able to execute many
	  commands on the server console, and that put the burden on the QC
	  code to validate command safety, which was not intended in short:
	  this fixes a remote console command execution vulnerability that
	  affected a few games/mods

2007-01-12 01:34  havoc

	* fs.c: gamedir is now checked by FS_CheckNastyPath added special
	  isgamedir flag to FS_CheckNastyPath to validate gamedir using
	  more stringent checks than for normal filenames added additional
	  checks in FS_CheckNastyPath for things like . in path elements
	  (still allowed in filename at end but no longer allowed in path
	  elements at all)

2007-01-11 05:48  havoc

	* gl_rmain.c, menu.c, todo: implemented new bloom code (still not
	  using GLSL, but the new bloom is much nicer and more
	  configurable) added r_shadow_glossexponent cvar to control width
	  of specular highlights changed r_shadow_glossexponent default
	  from 8 to 32 (looks more like metal or wet stone)

2007-01-11 05:45  havoc

	* glquake.h, vid_shared.c: implemented detection of
	  GL_EXT_blend_subtract

2007-01-11 05:43  havoc

	* common.h: try harder to identify little endian cpus when
	  BYTE_ORDER is undefined

2007-01-04 22:25  havoc

	* model_alias.c: corrected comment on savings of the optimized
	  skeletal cases

2006-12-31 20:38  havoc

	* r_shadow.c, r_shadow.h: added r_shadow_glossexponent cvar to
	  control specular power (sharpness) changed default
	  r_shadow_glossintensity from 1 to 2, r_shadow_gloss2intensity
	  from 0.25 to 0.5, r_shadow_glossexponent from 8 to 32 (gloss is
	  now much more metallic looking) moved some stencil operation
	  reset code to after the GL_EXT_stencil_two_side extension is
	  turned off (just to be safer)

2006-12-30 21:28  havoc

	* r_shadow.c: fix bug that made some models not cast shadows from
	  the correct location

2006-12-30 17:30  havoc

	* gl_rmain.c, gl_rsurf.c, model_shared.h, r_shadow.c, r_shadow.h:
	  added r_shadows cvar which renders Quake3 cg_shadows 2 style
	  stencil shadows from models

2006-12-30 17:28  havoc

	* model_brush.c: I don't know how this got committed

2006-12-30 17:07  havoc

	* model_brush.c: fix default modellight_lightdir shading direction
	  in q1bsp (this has no effect since diffuse is black)

2006-12-30 16:55  havoc

	* gl_backend.c, gl_backend.h: added a missing const modifier

2006-12-30 10:30  havoc

	* cl_main.c: fix stupid bug in CL_SetInfo when checking for
	  pmodel/emodel as key (it was using Cmd_Argv)

2006-12-28 02:49  havoc

	* netconn.c: patch from div0 that adds sv_public modes -2 (do not
	  allow players to connect) and -1 (do not respond to queries)

2006-12-24 13:34  havoc

	* collision.c: made brush loader trust q3map2 brushes completely,
	  still falls out of terrain maps using .ase models

2006-12-24 10:38  havoc

	* collision.c: changed collision brush loader to not discard planes
	  that don't produce a polygon, this fixes many terrain and ramp
	  problems in q3bsp (q3map2 inserted planes to fix these edge cases
	  but the engine was discarding them) optimized brush collision
	  code to have more early out cases

2006-12-24 02:16  havoc

	* sv_main.c: set world mins/maxs/absmin/absmax at server startup

2006-12-23 17:04  black

	* gl_rmain.c: Init gl_main before gl_draw to make DP start from
	  anywhere without crashing. Additionally it's more logical that
	  way.	(If this breaks something, you can try to stone me or
	  whoever who wrote the code in the first place ;))

2006-12-22 14:05  havoc

	* gl_backend.c, gl_backend.h: raised MAX_TEXTUREUNITS from 16 to 64
	  fixed bug with backendimageunits/backendarrayunits not being
	  limited to MAX_TEXTUREUNITS (caused memory corruption on NVIDIA
	  GeForce 8 series which have 32 texture image units), backendunits
	  was already limited properly

2006-12-21 10:12  havoc

	* model_brush.c, model_brush.h: removed Q3TEXTUREFLAG_ALPHATEST
	  uses in the code, fixing a bug that made alpha test surfaces not
	  be alpha tested (now checks shader->layers[0].alphatest)

2006-12-19 07:47  havoc

	* gl_textures.c, glquake.h, image.c, vid_shared.c: support for
	  GL_ARB_texture_non_power_of_two extension (makes quake textures
	  look a bit sharper on cards that support it and saves video
	  memory) known to be supported on NVIDIA Geforce 6 and above

2006-12-18 19:11  havoc

	* snd_main.c: added a missing extern

2006-12-18 18:21  havoc

	* fs.c, fs.h: patch from div0 to fix screenshot naming when -game
	  is used

2006-12-17 19:25  havoc

	* cl_parse.c, fs.c, host.c: implemented QW gamedir switching and
	  manual gamedir switching (via "gamedir" command in console, can
	  also use +gamedir on commandline), this may have lingering bugs

2006-12-17 19:20  havoc

	* model_brush.c: improved Mod_Q3BSP_LightPoint function to use
	  r_refdef.lightstylevalue[0] to scale the color contribution, this
	  means that dpmod darkmode works in q3bsp now

2006-12-17 19:14  havoc

	* snd_main.c, snd_null.c, sound.h: added snd_reload command to
	  reload all sounds

2006-12-17 19:11  havoc

	* fs.c: removed unused packlist variable and pack->next field

2006-12-16 22:42  havoc

	* cvar.c, cvar.h: added Cvar_UnlockDefaults function (not console
	  accessible)

2006-12-15 20:43  havoc

	* common.c: removed an unused extern for fs_modified

2006-12-15 20:42  havoc

	* cmd.c: modified "stuffcmds" command (which runs commandline
	  arguments preceded by + characters) to only do so once, this
	  allows the quake.rc to be executed multiple times without
	  executing commandline arguments multiple times

2006-12-15 20:32  havoc

	* cl_parse.c, netconn.c: corrected some svc_nop's to clc_nop's
	  (same value but more correct)

2006-12-15 18:38  havoc

	* host_cmd.c, menu.c, quakedef.h, sv_main.c: removed NET_MAXRATE
	  (as it served no useful purpose), changed description of rate to
	  say bytespersecond instead of 500-25000 (which was wrong, the
	  limit was 1000-150000)

2006-12-14 13:12  havoc

	* cmd.c: add a newline at the end of each exec'd config file

2006-12-13 12:18  havoc

	* darkplaces.dev: updated Dev-C++ project file from Spirit

2006-12-12 07:28  havoc

	* cl_screen.c, gl_backend.h, gl_draw.c, gl_rmain.c: display loading
	  plaque much sooner in startup process, and draw it to GL_FRONT
	  buffer rather than drawing it to the GL_BACK buffer and swapping,
	  as if triple buffering is used the GL_BACK buffer might not be
	  shown for some time, but the GL_FRONT buffer is instantaneous

2006-12-11 17:39  havoc

	* sbar.c: moved health counter in quake hud back to its original
	  position, no longer overlapping hipnotic key icons (for some
	  reason Black's patch to add the nexuiz hud in revision 1.27 also
	  moved the quake health counter, I can't discern why...)

2006-12-11 11:07  havoc

	* model_alias.c: optimized Mod_Alias_GetMesh_Vertices to eliminate
	  memset calls and process arrays independently of eachother in the
	  skeletal blending code, it also has an optimized case for
	  one-bone vertices (the most common case)

2006-12-11 11:06  havoc

	* csprogs.c: changed demo playback csqc mismatch error to a warning

2006-12-10 14:30  havoc

	* netconn.c: fix crash when a client reconnects to the same client
	  slot, thanks to div0 for reporting and investigating this bug

2006-12-08 16:18  havoc

	* sv_main.c: patch from div0 that fixes rate limiting code to make
	  use of sv_maxrate (as it was supposed to)

2006-12-06 14:12  havoc

	* gl_rmain.c: fixed bug where non-autosprite transparencies
	  rendered in the same batch as autosprite transparencies were not
	  rendered (fixes light cones disappearing in q3dm0, among other
	  things), this occurred because the code that handles q3 shaders
	  using "deformvertexes autosprite" changed the array pointers but
	  never changed them back when rendering another q3 shader that
	  does not use deformvertexes minor cleanup of RSurf_ActiveEntity
	  (now uses RSurf_CleanUp rather than duplicating code) moved
	  RSurf_CleanUp above RSurf_ActiveEntity

2006-12-06 14:08  havoc

	* gl_rsurf.c: corrected a misspelling in a comment

2006-12-06 12:05  havoc

	* prvm_cmds.c: improved warnings from drawstring/drawpic/drawfill
	  functions (they now state the correct function name, and print
	  the full warning message, previously they were truncated if it
	  was only one problem)

2006-12-06 12:04  havoc

	* csprogs.c: fix connect error when csqc is not present (oops!)

2006-12-06 10:04  havoc

	* gl_rmain.c: fixed black models when csqc is active

2006-12-06 09:34  havoc

	* cl_main.c, csprogs.c, server.h, sv_main.c: fixed bug that caused
	  csqc to only load after a map restart rearranged entity linking
	  when csqc is active to fix the lagging weapon model bug

2006-12-06 09:07  havoc

	* cl_input.c: fixed a bug with cl_movement prediction being applied
	  during demo playback

2006-12-05 10:00  havoc

	* model_shared.c: fixed a bug with blank frames in sprites failing
	  to produce a texture (fixes painkeep exploding shotgun shell
	  sprites which became white rectangles on certain frames)

2006-12-01 02:40  havoc

	* keys.c: added con_closeontoggleconsole cvar based on Dresk's
	  patch, but reduced to a minimal set of changes to one file rather
	  than two

2006-12-01 00:51  havoc

	* cl_screen.c, glquake.h, vid_shared.c: funky interlacing-like
	  rendering feature from div0 (scr_stipple cvar)

2006-11-25 02:27  havoc

	* progs.h, sv_main.c, sv_phys.c, svvm_cmds.c: patch from Dresk
	  which adds DP_SV_ENTITYCONTENTSTRANSITION extension which calls a
	  .contentstransition(oldcontents, newcontents) when the quake
	  physics code detects a contents transition (empty to water for
	  example)

2006-11-24 23:52  havoc

	* clvm_cmds.c, mvm_cmds.c, prvm_cmds.c, prvm_cmds.h, svvm_cmds.c:
	  patch from Dresk for DP_QC_STRINGCOLORFUNCTIONS extension
	  (strlennocol measures length of string with color chars removed
	  (useful for centering text), strdecolorize returns a string with
	  color codes stripped)

2006-11-24 21:32  havoc

	* gl_rmain.c, gl_rsurf.c, model_alias.c, model_brush.c,
	  model_shared.h, model_sprite.c, model_sprite.h, r_shadow.c,
	  r_sprites.c, todo: added proper support for q3 shader animmap
	  commands

2006-11-23 20:35  havoc

	* cl_particles.c, cl_screen.c, gl_backend.c, gl_backend.h,
	  gl_draw.c, gl_rmain.c, gl_rsurf.c, r_explosion.c, r_shadow.c,
	  todo: cleaned up GL_DepthTest and GL_CULL_FACE state management
	  (by adding GL_CullFace), may fix some problems with rtlighting on
	  EF_NODEPTHTEST entities

2006-11-23 01:06  havoc

	* clvm_cmds.c, mvm_cmds.c, prvm_cmds.c, prvm_cmds.h, svvm_cmds.c:
	  added DP_ASINACOSATANATAN2TAN extension which adds common trig
	  functions missing from standard QuakeC

2006-11-17 16:47  havoc

	* fs.c: added #define _FILE_OFFSET_BITS 64 to reduce problems with
	  video recording on 32bit unix platforms (64bit Linux builds do
	  not seem to have problems with this to begin with)

2006-11-15 12:23  havoc

	* cl_screen.c, clvm_cmds.c, quakedef.h, svvm_cmds.c: made
	  cl_viewmodel_scale apply to csqc and gettaginfo fixed bug with
	  concat order in stereo rendering (it was offseting along X in
	  worldspace due to wrong concat order)

2006-11-15 10:33  havoc

	* cl_main.c, cl_parse.c, client.h, csprogs.c, gl_rmain.c,
	  r_shadow.c, r_sprites.c: fixed view location bugs in csqc; it was
	  reading the player entity's render.origin field, which was
	  broken...  removed the origin and angles fields from
	  entity_render_t and eliminated all references renamed
	  CL_BoundingBoxForEntity to CL_UpdateRenderEntity and made it
	  update the entity_render_t inversematrix and scale according to
	  the matrix, and also calls R_LerpAnimation, this reduced code
	  elsewhere

2006-11-12 13:55  havoc

	* libcurl.c: patch from div0 to fix a segfault in curl support when
	  canceling a file that isn't being downloaded

2006-11-09 11:16  havoc

	* netconn.c: patch from div0 that removes connect flood ban when a
	  player disconnects (this prevents people from getting
	  connect-flood-banned for simply reconnecting after a pk3
	  autodownload in Nexuiz)

2006-11-06 09:48  havoc

	* matrixlib.h: found MATRIX4x4_OPENGLORIENTATION to be a speed loss
	  using gcc 4.1.0 with x86_64 architecture, disabled it by default

2006-11-06 09:25  havoc

	* cl_main.c, matrixlib.c, matrixlib.h: implemented
	  MATRIX4X4_OPENGLORIENTATION #define option, this is on by default
	  and may improve performance compared to the D3D-style matrix
	  orientation that was used before

2006-11-06 09:23  havoc

	* model_alias.c, model_alias.h: changed md3 tag storage to be the
	  original float[12] OpenGL-orientation format rather than a
	  matrix4x4 which was wasting some space

2006-11-06 08:31  havoc

	* gl_backend.c, matrixlib.c, matrixlib.h, model_alias.c,
	  r_shadow.c, r_sprites.c: more cleaning of matrix4x4_t struct
	  access

2006-11-06 07:13  havoc

	* cl_main.c, cl_screen.c, clvm_cmds.c, gl_backend.c, matrixlib.c,
	  matrixlib.h, model_alias.c, r_sprites.c, svvm_cmds.c, todo,
	  view.c: cleaned up almost all direct indexing of matrix4x4_t
	  structures to go through proper Matrix4x4 functions removed some
	  weird scaling code in gettaginfo QC builtin

2006-10-23 12:34  havoc

	* netconn.c, server.h: implemented connect flood blocking (100%
	  effective on connect floods with an interval of 5 seconds or less
	  between connects from the same IP address, and limits connect
	  floods slower than that to occupying 2 slots at once due to a 10
	  second timeout) cleaned up connect packet handling code to be
	  more readable and consistent reenabled rejoin code (allowing
	  players to resume the game if their client crashes crashes but
	  comes back with the same port number - rather rare unless cl_port
	  is used, but could help people who do use cl_port)

2006-10-23 12:22  havoc

	* cl_parse.c, client.h: got rid of cl.qw_spectator flag because it
	  can be determined by cl.scores[cl.playerentity].qw_spectator
	  instead

2006-10-20 17:57  havoc

	* model_brush.c: attempt to avoid some Mem_Free errors on NULL
	  pointers if there are no surfaces in the map

2006-10-20 17:16  havoc

	* sbar.c: don't crash in scoreboard code when connected to a qw
	  server as a spectator

2006-10-18 11:08  havoc

	* gl_rmain.c: fix bug with autosprite shaders when deformvertexes
	  is applied twice during render of the same batch (why?  dunno,
	  but it shouldn't break like this!)

2006-10-18 05:52  havoc

	* cl_screen.c, glquake.h, todo, vid.h, vid_agl.c, vid_glx.c,
	  vid_null.c, vid_sdl.c, vid_shared.c, vid_wgl.c: added
	  vid_stereobuffer cvar based on patch from syschuck on the
	  alientrap forums

2006-10-18 05:45  havoc

	* cl_input.c: some clean up of math used to generate trace
	  start/end in prydon cursor code

2006-10-18 05:34  havoc

	* view.c: added cl_viewmodel_scale cvar which controls gun model
	  size

2006-10-03 22:22  havoc

	* snd_main.c: added snd_soundradius cvar (default 1000 as before)
	  to allow games (Nexuiz for instance) and people (mostly fans of
	  dos quake's different sound radius) to adjust the sound radius

2006-09-30 22:52  havoc

	* console.c: implemented condump command (I was told by [515] that
	  he implemented this command but he never sent me the code in his
	  patch and so I was incorrectly under the impression that it was
	  in the engine)

2006-09-20 08:37  havoc

	* sv_phys.c: fixed a (hopefully rare) bug affecting shalrath
	  missiles which caused multiple missiles to explode on successive
	  frames due to the large bounding boxes of the MOVETYPE_FLYMISSILE
	  explosions causing a touch event on the other flying missiles
	  that were not yet near the player, which caused them to explode
	  even though they were being touched by an explosion that was
	  SOLID_NOT

2006-09-19 10:45  havoc

	* sv_phys.c: fix bug that often made enforcer laser bolts 'stick'
	  in the air if a player is standing right next to the enforcer
	  when it fires, this was due to some internal confusion over what
	  constitutes a 'startsolid' case, this has been clarified so that
	  SV_PushEntity only uses trace.bmodelstartsolid, just like the
	  toss/bounce/fly/flymissile/bouncemissile physics expect

2006-09-19 07:12  havoc

	* common.c, common.h: added GAME_DARSANA and GAME_CONTAGIONTHEORY

2006-09-16 12:42  havoc

	* cl_screen.c: disabled junk tag writer that I wrote for byte by
	  byte comparisons to mencoder-processed copies of my AVI files

2006-09-16 12:40  havoc

	* cl_screen.c: removed some unused variables

2006-09-16 12:25  havoc

	* cl_screen.c, client.h, host.c, snd_main.c: removed video capture
	  formats other than AVI I420 as it is the only useful format in
	  practice (lots of jpeg/tga files is annoying to deal with, and
	  few programs support rgb/yv12 raw dumps), this means no more .wav
	  saving either and cleans the code a bit fixed several bugs in
	  sound system when saving avi (lingering .wav code) added
	  cl_capturevideo_realtime cvar to allow realtime capture if
	  desired (requires a fast machine and can have A/V sync issues)

2006-09-16 11:52  havoc

	* todo: 496

2006-09-16 11:50  havoc

	* cl_screen.c, client.h, host.c, snd_main.c, snd_mix.c, snd_null.c,
	  sound.h, todo: implemented direct AVI video capture using the
	  I420 colorspace (aka Intel(r) 4:2:0 codec) with interleaved PCM
	  audio, and would like to thank Microsoft(r) for wasting many
	  hours of my time with AVI format insanity

2006-09-16 10:40  havoc

	* prvm_cmds.c: changed VM_fopen and VM_fclose announcements to
	  require developer >= 100 like the VM_fputs/VM_fgets functions do,
	  and made them console prints instead of VM_Warning calls (not
	  sure why they were to begin with)

2006-09-15 04:07  havoc

	* gl_draw.c: hide warnings about missing gfx/crosshair* images

2006-09-13 23:07  black

	* cl_main.c, csprogs.c, csprogs.h, progsvm.h, prvm_cmds.c,
	  sv_main.c: Try to fix a dedicated server crash by moving the two
	  csqc_ cvar initializations into SV_Init. This is a hack, however,
	  so someone else please clean this up :) The VM's internal name
	  now is always "client", so this should make life easier when
	  debugging (note: this doesn't affect the progs filename used).

2006-09-12 09:22  havoc

	* model_brush.c: changed deluxemapping detection code to deal with
	  odd bsp files produced by q3map2 that contain two lightmaps but
	  the second one is completely unused and blank and thus not
	  suitable as a deluxemap, this fixes black (or very dim) surfaces
	  in some small maps when GLSL is enabled

2006-09-12 08:17  havoc

	* progsvm.h, prvm_cmds.c: moved VM_FILES and VM_SEARCHLIST stuff to
	  prvm_prog_t

2006-09-12 07:56  havoc

	* prvm_cmds.c: remove some unsafe optimizations in VM_Files_Init
	  and VM_Files_CloseAll (using memset on the return value of an
	  indexing macro is generally a bad idea, and doesn't improve code
	  readability)

2006-09-12 06:35  havoc

	* progsvm.h: increased PRVM_MAX_STACK_DEPTH and
	  PRVM_LOCALSTACK_SIZE at div0's request to reduce qc crashes with
	  recursive rocket explosions in Nexuiz

2006-09-01 11:35  havoc

	* vid_shared.c: changed description for gl_finish cvar according to
	  esteel's suggestion

2006-08-29 14:58  havoc

	* cl_main.c, cl_parse.c, client.h, sbar.c: another patch from div0
	  to improve ping parsing behavior in the event that multiple ping
	  reports are received after a query (due to packets backlogging)

2006-08-29 06:50  havoc

	* cl_parse.c: another patch from div0 to fix ping report parsing

2006-08-27 12:13  havoc

	* cl_parse.c: patch from div0 to fix ping report parsing where the
	  first player slots are empty fixed bug in negative ping parser
	  (it was not skipping the - when it was negative)

2006-08-27 11:23  havoc

	* netconn.c: greatly improved chances of connecting to a proquake
	  server on the first try, by sending an svc_nop immediately upon
	  connect

2006-08-27 10:53  havoc

	* cl_input.c, cl_parse.c, protocol.c, view.c: fix bug with gun
	  bobbing in demo playback (where input packets are not sent, and
	  thus the prediction replay was not occurring...)

2006-08-27 10:52  havoc

	* prvm_execprogram.h: fix a bug with the divide by zero warning in
	  the QC VM, it was not updating the relevant xfunction/xstatement
	  variables

2006-08-27 10:20  havoc

	* host.c: changed default timeformat (related to timestamps cvar
	  for logging)

2006-08-26 10:41  sajt

	* sbar.c: Fix for people with proper compilers :)

2006-08-26 09:02  havoc

	* cl_main.c, cl_screen.c, client.h, clvm_cmds.c, csprogs.c,
	  csprogs.h, draw.h, gl_draw.c, gl_rmain.c, mvm_cmds.c,
	  prvm_cmds.c, prvm_cmds.h, todo, view.c: CSQC fixes (less broken,
	  still not spec compliant) CSQC can now link the same entity
	  multiple times (each time modified differently) as per the CSQC
	  spec (this is mainly useful for rendering multi-model players
	  based on one csqc entity, like Quake3's cgame does) changed DrawQ
	  functions to automatically set up 2D rendering if previous
	  rendering was of a 3D view (necessary change for proper CSQC
	  support) changed QuakeC rint builtin implementation to handle
	  very large values (outside of int range) and possibly run a
	  little bit faster, note that it still rounds toward the nearest
	  integer, away from zero (as intended) refactored gun bob, damage
	  kick fade, and stair smoothing code to eliminate a 'multiple fade
	  steps per frame' bug renamed the misnamed VM_ftoi function to
	  VM_ftoe, in accordance with the menu QC builtin ftoe

2006-08-25 17:33  havoc

	* makefile.inc: accidentally removed -fno-strict-aliasing

2006-08-25 14:48  havoc

	* sv_main.c: fix csqc support on dedicated servers (now CRC's the
	  csqc_progname file at level start and sends that to clients, so
	  it does not need to actually load the csqc_progname itself)

2006-08-25 14:27  havoc

	* cl_input.c, cl_parse.c: fix the jittery gun bug related to
	  onground changing rapidly

2006-08-25 14:18  havoc

	* cl_collision.c: disabled support for csqc entities in
	  CL_SelectTraceLine

2006-08-25 10:53  havoc

	* makefile.inc: changed release optimizations from -O2 -ffast-math
	  -funroll-loops to simply -O2, this produced a 0.3% fps loss in my
	  most extreme testing on x86_64, which does not seem significant,
	  and gcc 4.1.0 was breaking the Nexuiz menu with the
	  -funsafe-math-optimizations option (part of -ffast-math)

2006-08-21 13:19  black

	* sbar.c: Fix a stupid typo in the sbar's ctf flag icon filenames.

2006-08-21 09:40  havoc

	* sbar.c: nexuiz hud change to show flag status in CTF

2006-08-19 06:25  havoc

	* gl_rmain.c, libcurl.c, menu.c, prvm_edict.c: patch from div to
	  fix icc warnings

2006-08-16 09:17  havoc

	* cl_screen.c, clvm_cmds.c, console.c: changed several '^' checks
	  to STRING_COLOR_TAG as they should be

2006-08-16 09:13  havoc

	* common.c, common.h, console.c, fs.c, host.c: reorganized
	  Host_Init a bit, merged away a few functions (such as
	  COM_CheckRegistered and COM_InitArgv) and changed some others,
	  now registers several cvars earlier in the startup process
	  integrated patch from div0 for sys_colortranslation and
	  sys_specialcharactertranslation cvars which control the
	  translation of color codes and Quake characters for terminal
	  output on stdout, this gets rid of the hideous ^7 on every line
	  and makes colored text show up properly using ANSI color codes on
	  most platforms (on windows the color codes are simply stripped
	  because ANSI is not supported by windows terminals)

2006-08-15 01:46  havoc

	* sbar.c: no longer has time or team columns in non-QW games

2006-08-15 00:55  havoc

	* host_cmd.c: patch from div0: clamp "ping" reply valies in 0..9999
	  to prevent misparsing in case of uninitialized ping values

2006-08-15 00:54  havoc

	* host_cmd.c, sv_main.c: patch from div0: Send download
	  requirements at an earlier time to cause less message spam with
	  the disconnect-and-reconnect download method

2006-08-15 00:54  havoc

	* cdaudio.h: oops forgot this from the cd loop/play named tracks
	  patch

2006-08-15 00:53  havoc

	* libcurl.c: patch from div0: instead of downloading in game and
	  reloading the map when it is done (which caused crashes because
	  of multiple world models in the model list and didn't also reload
	  sounds and models), disconnect while downloading and execute the
	  connect command to reconnect later

2006-08-15 00:51  havoc

	* keys.c: patch from div0: fix console weirdnesses: * empty lines
	  kill command history (instead don't add empty lines to the
	  history) * cursor position and history line length were done the
	  wrong way, positioning   the cursor outside of the line or only
	  recalling part of a line

	  NOTE: maybe it is better to move the Con_Printf BELOW the return
	  so an empty prompt isn't even displayed? bash does not do it like
	  that, IRC clients do it like that, and personally I don't care

2006-08-15 00:49  havoc

	* cd_shared.c: patch from div0: cd loop and cd play commands now
	  support named tracks (explicitly specifying a music track to
	  play) as well as numbered (cd/fake cd)

2006-08-14 07:14  havoc

	* sv_phys.c: reenabled the quake 'fall out of level' bug, to make
	  the scorpion near the start of hip1m2 fall out of the ceiling as
	  it was meant to (this probably fixes a lot of other bugs in
	  various broken maps)

2006-08-10 11:35  havoc

	* todo: 494

2006-08-05 22:03  havoc

	* common.h: hush warnings about strcat and other redefinitions by
	  undefining them first

2006-08-05 14:31  molivier

	* cl_main.c, cl_parse.c, clvm_cmds.c, cmd.c, common.c, common.h,
	  console.c, cvar.c, dpvsimpledecode.c, filematch.c, fs.c,
	  gl_draw.c, gl_rmain.c, host.c, host_cmd.c, image.c, keys.c,
	  lhnet.c, menu.c, model_alias.c, model_brush.c, model_shared.c,
	  prvm_cmds.c, prvm_edict.c, r_shadow.c, r_sky.c, sbar.c,
	  snd_mem.c, sv_main.c, sys_sdl.c, sys_win.c, vid_agl.c, vid_glx.c,
	  vid_wgl.c: Removed all calls to strcpy; most of them are now
	  calls to strlcpy or memcpy.

2006-08-05 14:30  molivier

	* snd_coreaudio.c: The inclusion of pthread.h was missing

2006-08-04 13:37  molivier

	* cl_video.c, common.h, csprogs.c, dpvsimpledecode.c, keys.c,
	  menu.c, model_brush.c, mvm_cmds.c, prvm_cmds.c, prvm_edict.c:
	  Replaced all calls to str[n]cat and strncpy by calls to strlcat
	  and strlcpy respectively

2006-08-03 17:25  havoc

	* gl_textures.c, glquake.h: fix memory alignment issue when saving
	  odd-width screenshots (set GL_PACK_ALIGNMENT to 1), thanks div0

2006-07-31 20:39  havoc

	* collision.c: more tweaks trying to improve precision on
	  q3map2-compiled terrain models in q3bsp

2006-07-31 15:57  havoc

	* collision.c: trying to improve terrain collision brush issues in
	  q3bsp

2006-07-31 12:00  havoc

	* sys_sdl.c, vid_sdl.c: added gamepad/joystick support to the SDL
	  client, this uses completely different cvars from the windows
	  one, and is noticably less weird as a result :)

2006-07-31 11:59  havoc

	* collision.c, gl_rmain.c, model_brush.c: improved plane distance
	  epsilon checking and improved precision when converting brush
	  planes to polygons (by finding a roughly minimal bounding box for
	  the plane to polygon projection), this should reduce collision
	  brush issues on modeled terrain in q3bsp maps

2006-07-26 15:57  havoc

	* todo: 491

2006-07-26 15:51  havoc

	* todo: fixed an improperly filed change request

2006-07-26 15:43  havoc

	* todo: 495

2006-07-26 12:35  black

	* prvm_execprogram.h: 'Catch' divisions by zero in the VM: print a
	  warning if developer >= 1 and return 0.0 as result of the
	  operation.

2006-07-26 07:24  havoc

	* todo: 498

2006-07-26 07:19  havoc

	* prvm_cmds.c, svvm_cmds.c: use VM_Warning instead of
	  Con_Printf+PRVM_PrintState

2006-07-26 07:16  havoc

	* clvm_cmds.c, mvm_cmds.c, progsvm.h, prvm_cmds.c, svvm_cmds.c:
	  changed PF_WARNING to not do a return changed PF_WARNING define
	  to VM_Warning function changed Con_Printf warnings in QC builtins
	  to VM_Warning calls

2006-07-25 12:38  havoc

	* progsvm.h, prvm_exec.c, prvm_execprogram.h: print out profile
	  report above runaway loop counter error

2006-07-25 08:33  havoc

	* sbar.c: enabled player scoreboard in coop (note that this
	  overrides the intermission screen)

2006-07-24 06:03  havoc

	* common.c, darkplaces.dev, menu.c, svvm_cmds.c: some cleanups and
	  improved warnings added Prydon campaign to multiplayer setup
	  menu, fixed a bizarre crash in game episode lookup code by
	  rewriting it

2006-07-23 13:41  havoc

	* snd_main.c: Mathieu should have set the snd_* cvars properly, not
	  poking .integer

2006-07-23 13:00  havoc

	* snd_win.c: disabled WAVE_FORMAT_EXTENSIBLE support as it does not
	  seem to be working

2006-07-22 12:36  havoc

	* image_png.c: added libpng.so fallback name, primarily for FreeBSD

2006-07-22 00:55  havoc

	* sv_phys.c: remove testing prints (forgot to remove them before
	  commiting)

2006-07-21 12:19  havoc

	* sv_phys.c: fix bug with items in a trap door in the ceiling in
	  some usermade maps that made them ride the door panels into the
	  walls rather than fall

2006-07-21 09:16  havoc

	* snd_win.c: reverting DirectSound buffer position wrapping code to
	  something similar to the old code (except using % instead of &)

2006-07-20 06:29  havoc

	* snd_win.c: changed SECONDARY_BUFFER_SIZE to be a multiple of
	  32768 so that it is roughly a power of 2...

2006-07-19 11:44  havoc

	* todo: 471

2006-07-19 06:50  havoc

	* gl_draw.c, image.c, wad.c, wad.h: changed Draw_CachePic to load
	  both tga/png/jpg and lmp/wad images at once and take the pic size
	  from the lmp/wad, and cleaned up parts of wad and lmp loading,
	  eliminated SwapPic

2006-07-19 00:27  havoc

	* r_modules.c: don't crash if r_restart is used in startup scripts
	  before anything starts the video system (fixed this by starting
	  video system in r_restart if necessary)

2006-07-18 01:24  havoc

	* netconn.c: enabled old quake-style connection/query packets when
	  hosting servers for old protocols, this should allow DP to host
	  compatible NQ servers and such

2006-07-18 01:19  havoc

	* common.c, quakedef.h: fix a buffer overflow bug in
	  InfoString_SetValue (thanks div0!), and increase userinfo and
	  serverinfo strings to 1280 bytes each (from 196 and 512
	  respectively)

2006-07-10 09:56  havoc

	* model_brush.c, model_brush.h: added detection of 4 more
	  surfaceparms to hush warnings

2006-07-10 09:35  havoc

	* cl_parse.c, client.h, sbar.c: changed how ping report hiding
	  operates, so that it only hides one ping report for each ping
	  command issued by the scoreboard

2006-07-10 08:58  havoc

	* cl_parse.c, sbar.c: fix bug where realtime was used instead of
	  cl.time in player times on scoreboard

2006-07-09 11:54  havoc

	* cl_input.c: added bestweapon command

2006-07-09 10:34  havoc

	* cl_parse.c, client.h, host_cmd.c, sbar.c: added ping and status
	  command output parsing in the client, currently this is used to
	  get pings in the scoreboard on Quake servers (and of course older
	  DP servers), the server sends a pingplreport command after the
	  human-readable ping report so that the packet loss display works
	  (but only if the server supports this), changed client to send
	  ping command instead of pings (at least until the next protocol
	  version increase) and the client will not print ping report
	  messages while the scoreboard is displayed.  the status command
	  parsing is not actually used at this time but could be the basis
	  of iplog support

2006-07-09 10:28  havoc

	* cl_input.c: cleaned up cl_netinputpacketspersecond code a little
	  for more readability (no change in behavior)

2006-07-08 11:34  havoc

	* sbar.c: hide ping and packetloss displays if the values are both
	  0 (bots and local player for instance)

2006-07-08 11:24  havoc

	* cl_input.c, host_cmd.c, netconn.c, netconn.h, sbar.c, sv_user.c:
	  added ping and packet loss display to scoreboard, and
	  pings/pingplreport commands to make it work without changing
	  protocol and without breaking demo compatibility either, this can
	  work on any server that supports the pings command and replies
	  with pingplreport revised scoreboard layout and added column
	  titles above it

2006-07-08 10:59  molivier

	* snd_win.c: Added 3D sound support to the Win32 backend
	  (DirectSound and MMSYSTEM), i.e. to the WGL version

2006-07-07 06:19  havoc

	* cl_parse.c, console.c, host_cmd.c, menu.c, model_brush.c,
	  prvm_cmds.c, prvm_edict.c, r_shadow.c: changed most
	  COM_ParseToken calls to COM_ParseTokenConsole, this fixed the
	  kills listing in the savegame menu

2006-07-07 06:19  havoc

	* snd_main.c: whitespace on blank lines removed

2006-07-04 09:03  havoc

	* menu.c: fixed transfusion data check (the mainmenu item numbering
	  starts at 1, not 0)

2006-07-03 21:46  molivier

	* BSDmakefile, fs.c, makefile, makefile.inc: Cleaned the ugly code
	  I committed for DP_FS_BASEDIR support (the environment variable
	  is now only defined when needed)

2006-07-03 09:31  havoc

	* fs.c: fix issue with DP_FS_BASEDIR on Mac

2006-07-03 03:31  havoc

	* menu.c: made nexuiz missing data fallback menu apply to all games
	  when their main menu image is missing (the Open Console and Quit
	  options are more useful than a bunch of checker squares)

2006-07-03 02:56  havoc

	* vid_shared.c: force a gamma update if v_hwgamma value changes
	  between 1 and 2

2006-07-03 02:11  havoc

	* vid_shared.c: added v_hwgamma 2 (forced gamma, ignores driver
	  returning failure) for testing

2006-07-03 02:02  havoc

	* server.h, sv_main.c, sv_phys.c: clean up of FL_ONGROUND checks in
	  MOVE_TOSS/FLY/FLYMISSILE/BOUNCE/BOUNCEMISSILE/STEP code, this
	  fixes items and monsters sometimes being left floating in the air
	  after a trap door opens or when riding a func_train (most notably
	  in the lava room of r1m5 of mission pack 2) added
	  sv_gameplayfix_upwardvelocityclearsongroundflag cvar to allow the
	  upward velocity gameplay fix to be disabled if desired

2006-07-03 00:50  havoc

	* makefile.inc: fixed DP_FS_BASEDIR passing to gcc by adding single
	  quotes around the entire contents of the -D parameter

2006-07-01 00:45  sajt

	* gl_rmain.c: Patch from div0 to fix autosprite

2006-06-28 10:30  sajt

	* libcurl.c: Patch from div0 to fix skyboxes in downloaded maps

2006-06-28 10:11  sajt

	* matrixlib.c: Fixed a bug in Matrix4x4_CopyTranslateOnly... which
	  is never called. Oh well.

2006-06-25 19:42  molivier

	* netconn.h: Removed the extra definitions of hton[sl] and ntoh[sl]
	  since apparently they are not necessary on any platform DP
	  supports

2006-06-25 19:35  molivier

	* fs.c, makefile.inc: You can now set a different default base
	  directory at compile time, by defining DP_FS_BASEDIR to the new
	  value (ex: make DP_FS_BASEDIR=/usr/local/games/quake release)

2006-06-25 19:00  molivier

	* snd_alsa.c, snd_mix.c, snd_oss.c: Decreased the OSS buffer size,
	  and cleaned some code

2006-06-23 21:51  molivier

	* makefile.inc: The name of the SDL config program used by the
	  makefiles is now configurable thanks to the SDL_CONFIG variable
	  (ex: make SDL_CONFIG=sdl11-config sdl-release). Its default value
	  is "sdl-config"

2006-06-23 08:31  havoc

	* vid_shared.c: fix gamma 'flicker' bug caused by
	  gamma_forcenextframe being repeatedly set when gamma fails

2006-06-22 07:58  havoc

	* vid_shared.c: fix some stupid bugs in gamma update code (why
	  didn't I remove the forcenextframe variable?)

2006-06-20 21:38  molivier

	* snd_main.c: Made S_ChooseCheaperFormat() a bit smarter

2006-06-15 08:13  molivier

	* snd_ogg.c: Fixed OGG Vorbis code when using OGGs with a sound
	  frequency smaller than the sound output frequency (the code was
	  wrongly using the OGG sound format instead of the output sound
	  format to compute the streaming buffer size). Thanks to Dresk for
	  reporting this problem

2006-06-14 18:22  havoc

	* prvm_execprogram.h: reduce runaway loop counter limit from 1
	  billion to 10 million, as 1 billion takes a while

2006-06-14 15:48  havoc

	* darkplaces.txt: added a section on replacement content, and some
	  other edits

2006-06-13 18:25  havoc

	* lhnet.c: made FromString reject empty strings

2006-06-13 15:09  havoc

	* gl_rmain.c: changed r_gls_deluxemapping 2 to not attempt to do
	  fake deluxemapping on vertex lit surfaces

2006-06-13 11:15  havoc

	* BSDmakefile, makefile, makefile.inc: patch from div0 to make
	  universal-binary builds of darkplaces possible on Mac OS X

2006-06-12 23:25  havoc

	* vid_shared.c: modified VID_RestoreSystemGamma to force a gamma
	  update on next frame (if it turned off hardware gamma
	  temporarily)

2006-06-12 23:24  havoc

	* vid_glx.c: don't set vid_activewindow to false in Map/Unmap
	  events, just in FocusIn/FocusOut

2006-06-12 22:24  havoc

	* netconn.c: check if master server address string is empty when
	  sending heartbeats and master queries

2006-06-12 14:43  havoc

	* gl_rmain.c: updated GLSL shader to match the one in Nexuiz 2.0,
	  this fixes reliefmapping/offsetmapping on models, and improves
	  performance on NVIDIA by using more half-precision math

2006-06-12 05:38  sajt

	* darkplaces-dedicated.dsp, darkplaces-sdl.dsp, darkplaces.dsp:
	  Added libcurl.[ch] to MSVC project files

2006-06-12 01:24  havoc

	* cl_particles.c, client.h, gl_backend.c, gl_rmain.c, gl_rsurf.c,
	  menu.c, r_explosion.c, r_lightning.c, r_shadow.c, r_sky.c,
	  render.h: added HDR bloom feature, not very different from bloom
	  but looks better, runs a bit slower

2006-06-11 17:35  havoc

	* cmd.c, cvar.h, host_cmd.c: don't allow $ expansion or sendcvar on
	  rcon_password (added CVAR_PRIVATE flag for this purpose)

2006-06-11 17:35  havoc

	* cl_screen.c: don't draw notify lines while r_letterbox is on

2006-06-11 16:13  molivier

	* snd_main.c: Fixed audio capture when the sound engine wasn't
	  restarted right before the capture (thanks to FrikaC for
	  reporting the bug)

2006-06-11 15:50  havoc

	* cl_screen.c, darkplaces-dedicated.dev, darkplaces-dedicated.dsp,
	  darkplaces-sdl.dsp, darkplaces.dev, darkplaces.dsp, gl_rmain.c,
	  makefile.inc, menu.c, r_crosshairs.c, render.h, sbar.c, screen.h:
	  removed crosshair_static cvar (now only the hud crosshair
	  remains) merged r_crosshairs.c into sbar.c

2006-06-11 15:23  havoc

	* r_crosshairs.c: removed team colored crosshair feature, removed
	  crosshair brightness cvar, renamed crosshair_alpha to
	  crosshair_color_alpha

2006-06-11 15:18  havoc

	* r_crosshairs.c: removed crosshair_flashspeed and
	  crosshair_flashrange cvars (flashing is now gone)

2006-06-11 15:12  havoc

	* gl_draw.c: changed the default crosshair textures to use
	  greyscale instead of alpha fading

2006-06-11 15:03  havoc

	* r_crosshairs.c: added crosshair_useteamcolor,
	  crosshair_color_red, crosshair_color_green, and
	  crosshair_color_blue cvars

2006-06-11 14:46  havoc

	* sv_user.c: fixed 'slow gravity' bug when cl_movement players are
	  not replying to all server frames

2006-06-11 11:30  molivier

	* snd_sdl.c: Fixed the 5.1 speaker layout when using SDL on Win32
	  (thanks to Willis for the report)

2006-06-10 20:22  molivier

	* snd_alsa.c, snd_main.c, snd_main.h, snd_oss.c, snd_sdl.c: Added
	  snd_channellayout to configure the speaker layout dynamically (0:
	  auto, 1: standard, 2: ALSA)

2006-06-10 16:23  molivier

	* snd_main.c: When we're recording a demo, we must not stop
	  rendering sound even when the application becomes inactive

2006-06-10 16:00  molivier

	* snd_alsa.c, snd_main.c, snd_oss.c, snd_sdl.c: Removed some debug
	  printings, and made some others requiring developer >= 100. Reset
	  the soundcard after opening in the OSS module.

2006-06-10 14:19  havoc

	* cl_main.c, host_cmd.c: disabled the broken cl_autodemo feature
	  until Sajt fixes it

2006-06-09 19:30  havoc

	* cmd.c, cvar.c, cvar.h, host_cmd.c, menu.c: changed cvar default
	  setup code such that cvar default strings are locked after
	  executing default.cfg the first time (that is to say, their
	  current values are copied into their default strings at this
	  point), this fixes unsaved cvar problems in nexuiz caused by the
	  default string being out of date on cvars that were modified by
	  default.cfg changed Reset To Defaults option in menu to use a
	  newly added cvar_resettodefaults_all command before execing
	  default.cfg to reset the binds

2006-06-09 15:50  havoc

	* model_brush.c: trust the q3bsp NODRAW flag rather than the shader

2006-06-09 11:49  havoc

	* model_shared.c: don't allocate a mempool or texture pool if a
	  model file is not found (prevents buildup of 'progs/beam.mdl'
	  memory/texture pools if it is not found) audited 'if mod->loaded'
	  checks to be more sure about unloading models even if they failed
	  to load

2006-06-09 09:50  havoc

	* cl_input.c: fixed another C99 lazy variable declaration bug in
	  div0's physics patch

2006-06-09 09:35  havoc

	* libcurl.c: another curl message patch from div0

2006-06-09 09:34  havoc

	* libcurl.c: libcurl.2.dylib is apparently compatible for our
	  purposes and neatly adds Mac OS X Panther support

2006-06-09 09:30  havoc

	* model_alias.c: fix typo that caused crashes in detection of model
	  animation in models with only one frame

2006-06-09 09:04  havoc

	* libcurl.c: another patch from div0 to curl messages

2006-06-09 08:50  havoc

	* libcurl.c: fix for continuously spewed curl error messages

2006-06-09 07:28  havoc

	* libcurl.c, libcurl.h: oops, forgot these

2006-06-09 04:03  havoc

	* cl_main.c, cl_screen.c, host.c, host_cmd.c, makefile.inc,
	  model_shared.c, model_shared.h, sv_main.c: web download patch
	  from div0, this adds the "curl" console command, and the ability
	  for servers to send a set of conditional curl commands which will
	  download pk3 archives if specific files are missing

2006-06-09 03:56  havoc

	* cl_input.c: nexuiz prediction patch from div0, this adds two new
	  cl_movement_airaccel_* cvars which change air control physics

2006-06-08 23:39  molivier

	* snd_bsd.c: The BSD audio module had the same bug as the OSS
	  module (incorrectly reporting "audio can't keep up")

2006-06-08 14:35  havoc

	* gl_rmain.c, gl_rsurf.c: fixed r_drawportals

2006-06-08 13:16  havoc

	* collision.c, collision.h, model_brush.c: fixed collision bug on
	  q3 light cones and other non-solid brushes that are not axial,
	  now uses only the brush's supercontents value, not its surface
	  textures

2006-06-08 13:00  havoc

	* gl_rmain.c, model_alias.c, model_alias.h, model_shared.h: no
	  longer converts vertex-morph model formats to float arrays,
	  instead keeping their geometry in the original formats from disk,
	  this saves 1.2MB of memory in e1m2 and might slightly improve
	  load times, it also preserves vertex normals to get rid of
	  shading artifacts on texcoord seams

2006-06-08 12:57  havoc

	* image.c: added more image search paths so that md2 model skins
	  load properly again, and to reduce problems for tenebrae model
	  packs

2006-06-07 10:49  havoc

	* gl_rmain.c: don't crash if a quake button entity is on its
	  alternate frames but doesn't actually have any to show

2006-06-07 10:33  havoc

	* keys.c: don't crash if key bindings functions are called with
	  bogus keynums

2006-06-07 10:33  havoc

	* r_light.c: fix a < 256 check that should have been <
	  MAX_LIGHTSTYLES

2006-06-07 08:34  havoc

	* vid_shared.c: ignore GL_EXT_texture3D extension if it reports a
	  bogus GL_MAX_3D_TEXTURE_SIZE

2006-06-07 08:30  havoc

	* r_shadow.c: extra check for gl_texture3d

2006-06-07 08:28  havoc

	* image.c: fix typo

2006-06-07 08:20  havoc

	* model_brush.c: fix maps/ check to use 5 characters, not 4

2006-06-07 08:19  havoc

	* image.c: prevent Image_MipReduce from getting stuck in an
	  infinite loop on 3D textures

2006-06-07 08:03  havoc

	* prvm_cmds.c: added stack trace printout to VM_remove warnings

2006-06-07 08:02  havoc

	* cvar.c: don't save cvars that are at their default value

2006-06-07 08:02  havoc

	* cl_input.c: fixed an unregistered cvar

2006-06-07 06:52  havoc

	* csprogs.c: disabled loading of csprogs.dat if developer is less
	  than 100

2006-06-07 06:11  havoc

	* clvm_cmds.c, model_brush.c, svvm_cmds.c: added
	  DP_GFX_EXTERNALTEXTURES_PERMAP extension

2006-06-06 13:12  havoc

	* snd_main.c: commented out S_StartSound <whatever> not precached
	  message because it happens constantly if the file could not be
	  found

2006-06-06 08:21  molivier

	* snd_alsa.c, snd_main.c, snd_main.h, snd_mix.c, snd_oss.c,
	  snd_sdl.c: Attempt to fix speaker layout for 5.1 and 7.1 sound,
	  on Windows and Mac OS X; the sound engine now builds its speaker
	  layout based on the OS and the snd_swapstereo cvar. Plus a minor
	  fix for the OSS sound module (was incorrectly reporting "audio
	  can't keep up")

2006-06-06 08:14  molivier

	* prvm_cmds.c: Use our usual defines for detecting the OS type

2006-06-05 00:58  molivier

	* snd_main.c: Fixed the "nosound" cvar. Thanks to Willis for having
	  reported this bug

2006-06-04 12:57  molivier

	* BSDmakefile, mathlib.c, mathlib.h, snd_alsa.c, snd_bsd.c,
	  snd_coreaudio.c, snd_main.c, snd_main.h, snd_mem.c, snd_mix.c,
	  snd_null.c, snd_ogg.c, snd_ogg.h, snd_oss.c, snd_sdl.c,
	  snd_wav.c, snd_wav.h, snd_win.c, sound.h, sys_win.c, vid_agl.c,
	  vid_glx.c, vid_sdl.c, vid_wgl.c: - the Linux sound modules (ALSA
	  and OSS) are now write-based, instead of mmap-based. It should
	  fix the problems with inboard sound cards - added 3 cvars
	  controlling the sound output format: snd_speed, snd_channels, and
	  snd_width (default values: 48000, 2, and 2 respectively). They're
	  saved in the config file.  - the checks for command line options
	  and environment variables modifying the sound output format are
	  now common to all modules. The command line options supported
	  are: -sndmono, -sndstereo, -sndquad, -sndspeed, and -sndbits. The
	  environment variables supported are: QUAKE_SOUND_CHANNELS,
	  QUAKE_SOUND_SPEED, and QUAKE_SOUND_SAMPLEBITS.  - added a (still
	  dumb) function to figure out a better sound format when the
	  initialization of the sound card failed - sound modules can now
	  suggest a sound format if the initialization of the sound card
	  failed - you can now do a "snd_restart" while having modified
	  snd_width and/or snd_channel. Doing a snd_restart with a modified
	  snd_speed isn't yet supported, it will fall back to the previous
	  speed - The WGL video module was blocking the sound output when
	  the application window lost the focus. Now, this code is shared
	  and the AGL, GLX and SDL video modules implement such a mecanism
	  - A lot of minor fixes, changes, factorizations and rewrites all
	  over the sound engine code and its modules - added CeilPowerOf2()
	  in the math library - fixed BSDmakefile for NetBSD

2006-06-04 09:29  havoc

	* view.c: cl_bobmodel is now a saved cvar

2006-06-01 08:59  havoc

	* cl_particles.c, client.h: removed TE_VORESPIKE, no idea how it
	  came into existence and it was never used

2006-05-30 22:53  havoc

	* console.c: don't allow runaway loops caused by Con_Print during
	  notify/console drawing

2006-05-30 12:42  havoc

	* cl_screen.c, client.h, host.c, snd_main.c: fixed several crashes
	  in video capture code when files fail to open eliminated
	  cl_capturevideo_sound cvar (now always on) made sound capture
	  non-realtime, by syncing sound mixer to capture frame while
	  capture is active, this sounds horrible while recording but
	  produces perfectly synced sound output to the .wav file now
	  numbers dpvideo files when saving, each one a higher number than
	  the previous (the next number to use is saved to config), this
	  allows capturing many short video clips without stopping to
	  process the files what this means: cl_capturevideo is now much
	  more useful than before.

2006-05-30 12:37  havoc

	* gl_draw.c: fix unintended use of alpha test on 2d graphics
	  (hud/menu/etc)

2006-05-29 13:59  molivier

	* darkplaces-dedicated.dev, darkplaces.dev: Updated Dev-C++ project
	  files

2006-05-29 07:54  havoc

	* menu.c: changed color control menu correction value to 0.5
	  (medium grey on linear color monitors)

2006-05-29 07:51  havoc

	* vid_shared.c: fixed repeated gamma ramp setting attempts in case
	  of failure (again)

2006-05-28 23:19  havoc

	* vid_shared.c: fix bug that caused constant gamma ramp setting in
	  windows in cases of failure

2006-05-28 22:43  havoc

	* cl_input.c: disable canjump check until it's fixed

2006-05-28 21:38  havoc

	* cl_input.c, cl_main.c, client.h, server.h, sv_main.c, sv_phys.c,
	  sv_user.c: further tweaks to prediction

2006-05-28 21:36  havoc

	* host.c: fix a bug where dedicated servers might not respond to
	  typing in the server console if no map is currently running
	  (which is rare)

2006-05-28 09:27  havoc

	* gl_rmain.c: added a few more GLSL shader program setting calls in
	  R_RenderScene just to prevent problems if a model/map rendering
	  call leaves a GLSL program active

2006-05-28 03:26  havoc

	* server.h, sv_main.c, sv_user.c, todo: added sv_clmovement_* cvars
	  to disable movement prediction of players, or disable it only
	  when their ping is below a certain value (by default 100ms)

2006-05-28 02:23  havoc

	* model_shared.c: no longer sets model->loaded if the model file
	  was not found, since the old Mod_CheckLoaded code is long gone

2006-05-27 22:12  havoc

	* console.c: remove an unused variable

2006-05-27 22:07  havoc

	* console.c: centering of notify lines in nexuiz now ignores color
	  codes

2006-05-27 21:58  havoc

	* cl_screen.c: centerprint no longer counts color codes when
	  centering lines

2006-05-26 05:09  havoc

	* image_png.c: don't hexdump png images while reading them (why did
	  it do this??)

2006-05-26 03:04  havoc

	* host_cmd.c: fix bug that was preventing rcon_address from working

2006-05-26 03:00  havoc

	* server.h, sv_main.c, sv_phys.c, sv_user.c: implemented
	  sv_gameplayfix_qwplayerphysics

2006-05-26 01:46  havoc

	* gl_rmain.c: fix a typo

2006-05-26 01:28  havoc

	* sv_user.c: try not to kick players for supposed speed cheating
	  when float time degrades too much

2006-05-26 01:27  havoc

	* sv_user.c: fixed sv_waterfriction code so it is now used

2006-05-26 01:22  havoc

	* cl_input.c, server.h, sv_main.c, sv_phys.c, sv_user.c: added
	  sv_waterfriction, sv_airaccelerate, sv_wateraccelerate cvars (and
	  corresponding cl_movement_ cvars), now physics are about as
	  configurable as quakeworld

2006-05-25 09:48  havoc

	* fs.c, fs.h: patch from div0 that allows loading new pak/pk3
	  archives while running

2006-05-25 09:41  havoc

	* menu.c: patch from div0 that makes togglemenu support a parameter
	  (either 1 or 0) to not toggle but instead set the menu on or off

2006-05-25 09:39  havoc

	* common.h, filematch.c: changed matchpattern to take a const char
	  *

2006-05-25 06:12  havoc

	* cl_main.c, cl_parse.c, client.h, clvm_cmds.c, menu.c,
	  r_lightning.c, todo: replaced cl_beams_relative cvar with
	  cl_beams_quakepositionhack and cl_beams_instantaimhack and
	  rewrote the relevant code, it now works like quake (except with
	  instant aiming in the case of the instantaimhack) and applies
	  only to your player

2006-05-25 05:57  havoc

	* pr_comp.h, progsvm.h, prvm_edict.c, prvm_exec.c: changed qc
	  profiling to use doubles instead of ints for profile counters, so
	  it can now count beyond 4 billion

2006-05-25 05:54  havoc

	* prvm_execprogram.h: increased runaway jump count limit to
	  1000000000

2006-05-25 05:49  havoc

	* model_alias.c: calculate bounding box properly for psk models,
	  and a cleanup of bounding box generation code for mdl/md2/md3
	  models

2006-05-25 05:46  havoc

	* cl_input.c, cl_main.c, cl_parse.c, client.h, netconn.c,
	  protocol.c: fixed crashes when changing a few settings while
	  playing a demo fixed repeated jumping bug in cl_movement code
	  fixed crashes that would occur if playing a QW demo (not yet
	  supported)

2006-05-25 05:43  havoc

	* host_cmd.c: fix crash when entering "color" command while playing
	  a demo fixed values printed by bottomcolor/topcolor commands (so
	  bottomcolor no longer reports the whole color like color does,
	  instead just the pants color)

2006-05-25 05:41  havoc

	* cl_demo.c: fix playback of demos after playing on a quakeworld
	  server

2006-05-25 05:41  havoc

	* sbar.c: display qw spectators as spectators on the scoreboard fix
	  a crash if holding showscores while playing a demo

2006-05-24 00:54  havoc

	* cl_screen.c, gl_backend.c, gl_draw.c, vid_sdl.c: remove some
	  r_render checks, and added an r_render check to vid_sdl.c
	  VID_Finish

2006-05-17 10:18  havoc

	* todo: 471

2006-05-15 04:40  havoc

	* cmd.c: patch from Dresk that adds a doom3-like "toggle" console
	  command

2006-05-12 10:11  havoc

	* cl_input.c, cl_main.c, cl_parse.c, cl_particles.c, cl_screen.c,
	  client.h, clvm_cmds.c, gl_backend.c, gl_draw.c, gl_rmain.c,
	  gl_rsurf.c, host.c, meshqueue.c, meshqueue.h, prvm_cmds.c,
	  r_crosshairs.c, r_explosion.c, r_light.c, r_lightning.c,
	  r_shadow.c, r_sky.c, r_sprites.c, render.h, view.c: reorganized a
	  lot of renderer variables into r_refdef, and split some things
	  out of r_refdef into r_view and r_viewcache, this reorganization
	  brings DP closer to being able to render to textures

2006-05-12 09:33  havoc

	* cl_input.c: undo something not meant to be committed yet

2006-05-12 09:06  havoc

	* model_alias.c: fix two implicit conversions

2006-05-12 09:05  havoc

	* cl_input.c: fix s->waterlevel = 0 and such

2006-05-11 11:20  havoc

	* model_alias.c: removed the clearing of the root bone in .psa
	  animations, to fix bugs (sorry, this was experimental and
	  apparently broken)

2006-05-11 11:03  havoc

	* netconn.c: fix a warning

2006-05-10 13:52  havoc

	* gl_rmain.c, gl_rsurf.c, model_alias.c, model_shared.h,
	  r_shadow.c, render.h, todo: redesigned skeletal model loading and
	  rendering to use matrix-palette animation (still in software, but
	  that may change at some point), this improved nexuiz -benchmark
	  demos/demo1 framerates by 11.3%

2006-05-10 13:16  havoc

	* mathlib.h: added Vector4Set macro

2006-05-10 12:14  havoc

	* netconn.c: some clean up of packet parsing merged most of the
	  server info parsing code between the two cases (DP server and QW
	  server), and reimplemented server info parsing for NQ servers
	  enabled ping/ack packet processing

2006-05-10 10:26  havoc

	* netconn.c: setinfo *ip on every network connection (currently
	  only meaningful to QW reconnect command, but potentially useful),
	  and removed some unneeded setinfo's since the cvars/commands now
	  work properly

2006-05-10 10:24  havoc

	* cl_main.c, client.h, cvar.c, host_cmd.c: improved setinfo
	  handling so that quakeworld works much better now
	  (name/topcolor/bottomcolor/skin/team/noaim are handled properly
	  now), this means TeamFortress won't kick clients for not
	  responding to team/skin cvars, and is fully playable

2006-05-10 10:02  havoc

	* sv_main.c, world.c, world_cs.c: removed all 3 uses of the
	  brown-text message prefix in the server

2006-05-10 09:59  havoc

	* csprogs.c: added a comment

2006-05-10 08:02  havoc

	* console.c: cleanup of chat prefix character handling, this fixes
	  a bug that was removing quake's brown characters at the beginning
	  of a line

2006-05-09 17:26  havoc

	* cl_input.c, cl_main.c, cl_parse.c, client.h: significantly
	  reworked the cl_movement code, now predicts quakeworld almost
	  completely correctly (only some issues with the different nature
	  of stair stepping, and other differences compared to the FlyMove
	  function on the servers which affect sliding in grooves)

2006-05-09 17:22  havoc

	* netconn.c: don't shuffle servers around when pings come in later
	  and are identical to the existing ones (I.E. made the sort be a
	  stable sort) fixed a bug that caused qwmaster query packets to be
	  bigger than necessary (was writing 7 bytes, should have been 3
	  bytes)

2006-05-09 17:18  havoc

	* model_brush.c: do q1bsp lighting checks starting with + 0.125
	  unit Z offset to improve chances of finding a lighting value
	  rather than returning black when a model origin is almost stuck
	  in the floor

2006-05-09 01:39  havoc

	* gl_rmain.c, model_shared.h: split R_DrawTextureSurfaceList code
	  into several functions and added separate
	  multitexture-combine/singletexture paths

2006-05-08 12:35  havoc

	* lhnet.c: fix NUL termination issue on the test string by not
	  actually printing the packet

2006-05-08 12:33  havoc

	* lhnet.c: fixes to the test program

2006-05-08 12:22  havoc

	* lhnet.c: lhnet fixes - now calls WSAStartup during LHNET_Init and
	  WSAShutdown during LHNET_Shutdown, so gethostbyname will work on
	  windows without any sockets open (as long as LHNET_Init has been
	  called of course), fixed a few things that were breaking
	  compilation with -DSTANDALONETEST and added a new simpler and
	  more useful standalone test program which is now used by default
	  (edit the #if if you want the old one instead)

2006-05-08 07:21  havoc

	* cl_parse.c: fix really stupid bug in qw download code which was
	  saving the same file repeatedly (it wasn't resetting the buffer
	  position on each new download)

2006-05-01 14:30  havoc

	* gl_rmain.c: fix bug with gl_combine 0 transparent water rendering
	  in q1bsp (alpha was not being stored, leaving garbage (typically
	  0) in the vertex alpha, making the water disappear)

2006-05-01 14:14  havoc

	* gl_draw.c: fix a type (description as part of value on
	  r_textshadow)

2006-05-01 14:05  havoc

	* gl_rmain.c, r_shadow.c, r_shadow.h, render.h: optimized
	  rtlighting passes by using RSurf_DrawBatch_Simple, this took a
	  lot of code restructuring but the resulting code is definitely a
	  lot faster fixed bugs in RSurf_DrawBatch_Lightmap related changes

2006-05-01 11:00  havoc

	* gl_rmain.c: restructured RSurf_DrawLightmap to become
	  RSurf_DrawBatch_Lightmap which processes all arrays and sets
	  things up perfectly, then renders all the surfaces with a call to
	  R_DrawBatch_Simple added dynamic surface-merging to
	  R_DrawBatch_Simple, depending on the new r_batchmode cvar it
	  either renders surfaces individually (as before), consecutively
	  (consecutively numbered surfaces are rendered with one call for
	  their combined triangle elements range), or by memcpy merging
	  elements into one array (this has rather chaotic vertex ranges so
	  gl_lockarrays is disabled in this code because it is a consistent
	  speed loss in this case) this optimization increased fps by 4.7%
	  in timedemo bigass1, and offers bigger gains in very high poly
	  q1bsp and q3bsp maps

2006-04-30 05:42  havoc

	* cl_main.c, cl_parse.c, client.h, view.c: changed svc_setangle to
	  cause interpolated turning when spectating (two or more
	  consecutive frames with a svc_setangle message), and instant
	  entity updates when teleporting (just one svc_setangle) so you no
	  longer fly through the level when teleporting changed
	  cl_beams_relative to only apply to the local player (unless set
	  to a value of 2 or higher)

2006-04-28 03:21  havoc

	* vid_glx.c, vid_sdl.c: treat AltGr key as ALT for bind purposes

2006-04-27 22:23  black

	* cl_video.c, cl_video.h, gl_draw.c, keys.c: Add
	  _DrawQ_ProcessDrawFlag to clean-up the glblend setup code.  Add
	  CL_Video_KeyEvent and support for it to Key_Event, now the the
	  fullscreen video is closed automatically when you hit enter,
	  space or escape and the video system catches all input (no more
	  accidentially nagivating around in the menu).  (Please test this
	  and report bugs to black@icculus.org if you find any)

2006-04-27 04:54  havoc

	* gl_rmain.c: fixed fullbright support in glsl path

2006-04-27 02:58  sajt

	* todo: Removed myself from all the todo items. I no longer mind if
	  none of these are ever implemented/fixed, and I check the cvs
	  often enough that I'll see if they ever are. Feel free to remove
	  any of these altogether, e.g. mirrors, hub save, skyrooms...

2006-04-27 02:49  sajt

	* todo: [no log message]

2006-04-26 16:34  havoc

	* cl_particles.c: added proper liquidfriction support

2006-04-26 16:22  havoc

	* cl_particles.c, client.h: optimized handling of decals, which
	  increased timedemo bigass1.dem from 185fps to 191fps, also
	  partially implemented airfriction and liquidfriction

2006-04-26 15:12  havoc

	* cl_particles.c: a simple optimization to particle allocation,
	  increased bigass1.dem performance from 184fps to 185fps

2006-04-26 14:57  havoc

	* cl_particles.c, gl_rmain.c, gl_rsurf.c, meshqueue.c, meshqueue.h,
	  prvm_cmds.c, r_explosion.c, r_lightning.c, r_shadow.c,
	  r_sprites.c: now does batching of transparent surfaces, such as
	  particles, this raised performance in bigass1.dem from 143fps to
	  184fps (it uses a lot of particles)

2006-04-26 12:20  havoc

	* cl_screen.c, gl_backend.c, gl_draw.c, gl_rmain.c, gl_rsurf.c,
	  gl_textures.c, glquake.h, prvm_cmds.c, r_shadow.c, todo,
	  vid_agl.c, vid_glx.c, vid_sdl.c, vid_shared.c, vid_wgl.c: added a
	  lot more CHECKGLERROR macro calls, to identify precisely where
	  any error occurs

2006-04-26 11:09  havoc

	* sbar.c: changed back to 1 second intervals on fps math

2006-04-26 11:08  havoc

	* cvar.c: changed the Cvar_Command: prints to developer.integer >=
	  100

2006-04-25 15:21  havoc

	* prvm_cmds.c: reenabled support of find() with an empty string as
	  the search value, this fixes the Blood Mage monster movement
	  slight optimization to findflags and findchainflags

2006-04-25 15:20  havoc

	* progsvm.h, prvm_edict.c, prvm_exec.c, prvm_execprogram.h: added
	  prvm_printfunction command which prints an assembly dump of the
	  specified qc function, with coloring and optionally statement
	  profiling to show how many times each statement has been executed
	  (prvm_statementprofiling must be on for this), also heavily
	  modified statement printing to be more readable

2006-04-25 08:14  havoc

	* prvm_exec.c, prvm_execprogram.h: significant optimizations to the
	  progs interpreter, changed the runaway loop counter to only count
	  jump instructions (if/ifnot/goto), and redesigned the profile
	  counting to use pointer math on batches of instructions instead
	  of counting each instruction individually changed prvm_profile
	  report to show callcount before statements and builtincost,
	  changed the sorting order to use summed
	  callcount+statements+builtincost (and this made it print call
	  counts for builtin functions as well)

2006-04-25 02:34  havoc

	* sv_phys.c: reenabled the 'stick in place if stuck in a solid'
	  code, but changed it to only apply for bmodelstartsolid, this
	  prevents monsters from falling out of the level even if they're
	  stuck in a wall, for consistency with stock quake

2006-04-21 01:55  havoc

	* cl_main.c, cl_particles.c: changed particle trail handling so
	  that the TE_TEI_G3 effect can spawn particles along the beam just
	  like trails can cleaned up particle texture generation, no longer
	  generates them if loading from disk, now also allows all 64 slots
	  to be used (except the beam one) by generating generic texcoords
	  for all of them

2006-04-21 01:54  havoc

	* keys.c, menu.c, menu.h: added keyup function for menu qc at
	  Black's request

2006-04-20 17:52  havoc

	* cl_particles.c, client.h: replaced rainsplash animation with just
	  a single particle which expands over time to free up significant
	  space in the particlefont (also added sizeincrease parameter
	  support to effectinfo.txt accordingly)

2006-04-20 17:48  havoc

	* model_brush.c: don't complain about shaders with no layers

2006-04-20 12:55  havoc

	* vid_agl.c, vid_glx.c, vid_sdl.c, vid_wgl.c: grab mouse when using
	  menu while watching demos (important for nexuiz)

2006-04-20 12:55  havoc

	* gl_rmain.c: fix some model lighting bugs in the GLSL surface
	  renderer related to stale lightmaps still being bound

2006-04-20 11:17  havoc

	* host_cmd.c: allow changelevel to stop demos (necessary for nexuiz
	  menu)

2006-04-20 11:12  havoc

	* prvm_edict.c, todo: fix missing newline on unknown opcode warning
	  in progs loader

2006-04-20 09:57  havoc

	* cl_screen.c, cl_screen.h, menu.c: renamed scr_screenshot_gamma to
	  scr_screenshot_gammaboost and changed default to 1, this means
	  all screenshots will be unmodified unless the user specifically
	  changes the setting, rather than saving them very bright by
	  default

2006-04-20 09:46  havoc

	* image.c: optimized LoadTGA to have fast paths for all formats,
	  rather than one unified loading loop that tried to support all
	  formats, this saves 1.15 seconds of load time in nexuiz on my
	  machine (before: 2.32 seconds spent in LoadTGA, after: 1.17
	  seconds)

2006-04-20 05:43  havoc

	* gl_rmain.c, gl_rsurf.c, r_shadow.c, r_shadow.h, render.h:
	  significant surface renderer optimizations

2006-04-20 03:47  havoc

	* gl_backend.c, gl_backend.h: added GL_AlphaTest function to
	  enable/disable GL_ALPHA_TEST

2006-04-19 15:33  havoc

	* sbar.c: precache scoreboard title, intermission pics, and finale
	  pic

2006-04-19 09:04  havoc

	* model_brush.c: removed the flawed detection of modelspace
	  deluxemaps (it was always concluding they were modelspace because
	  of unused black pixels and such), now assumes q3bsp deluxemaps
	  are always modelspace

2006-04-18 13:24  havoc

	* host.c: another attempt to fix the warnings

2006-04-18 13:19  havoc

	* host.c: attempting to fix a warning about setjmp clobbering
	  variables

2006-04-18 13:10  havoc

	* gl_rmain.c: fix a bug in AUTOSPRITE2 code caused by overzealous
	  optimization, thanks to Elric for reporting this

2006-04-18 12:44  havoc

	* gl_rmain.c, gl_rsurf.c, model_alias.c, model_brush.c,
	  model_brush.h, model_shared.h, r_shadow.c: reworked most of q3bsp
	  q3 shader loading, now supports more shader effects (the first
	  layer's blendfunc is now used for rendering), still no multilayer
	  stuff though, and still no tcgen environment so some surfaces now
	  look worse because their first pass is an environment effect, but
	  most others look better...  q3 fog shaders are usually invisible
	  now (looks better than blinding white surfaces) added support for
	  more hacky q3 shaders (like sky shaders that don't have
	  surfaceparm sky, and transparent shaders that don't have
	  surfaceparm trans) added support for alpha test in q3 shaders
	  (improves some shaders)

2006-04-18 12:37  havoc

	* gl_backend.c, glquake.h: reset a bit more state each frame

2006-04-18 08:28  havoc

	* cl_screen.c, console.c, menu.c, screen.h: conback lives...
	  again!

2006-04-18 08:19  havoc

	* sbar.c: removed showfps mode 2 (which was weird), modified
	  showfps 1 to use 0.1 second polling intervals so it updates much
	  more often

2006-04-18 08:16  havoc

	* cl_screen.c, console.c, menu.c, screen.h: conback support is
	  dead.

2006-04-18 08:03  havoc

	* cl_screen.c, menu.c, screen.h: removed scr_conspeed, now always
	  instantaneous console opening/closing

2006-04-18 07:49  havoc

	* cl_demo.c, cl_input.c, cl_main.c, cl_parse.c, cl_screen.c,
	  client.h, gl_rmain.c, host.c, netconn.c, quakedef.h, server.h,
	  snd_main.c, sv_main.c, sys_linux.c, sys_sdl.c, sys_win.c,
	  vid_shared.c, vid_wgl.c, view.c: rewrote timing code, now a much
	  better and very different sleeping method, no longer wastes any
	  cpu time changed timing code to have independent sleeping for
	  client and server frames in a listen server changed console
	  execution to occur in sync with server frames if a server is
	  running, this fixes frikbot loading of .way files eliminated
	  several host_* variables, replaced host_realframetime with
	  cl.realframetime (which is how long since the last client frame)
	  removed the clamping of sys_ticrate to >= 0.1, so now sys_ticrate
	  0 is allowed (run as fast as possible), as well as silly values
	  like 0.001 removed serverprofile cvar as it was not easy to
	  preserve it in the rewritten timing merged Host_FilterTime,
	  Host_ServerFrame, Host_Frame, _Host_Frame into Host_Main (which
	  also calls Host_Init), this eliminates some duplicate code in all
	  the sys_ modules

2006-04-17 03:58  havoc

	* gl_rmain.c, gl_rsurf.c, r_shadow.c, render.h: batch by lightmap
	  as well as texture, this cures problems with vertex lit surfaces
	  in deluxemapped q3bsp files (the vertex lit surfaces can't be
	  deluxemapped)

2006-04-16 13:38  havoc

	* model_brush.c, model_shared.h, todo: no longer recalculated q3bsp
	  surface normals, this makes q3map2 'phong shading' features work,
	  no more seams on terrain and such

2006-04-16 13:37  havoc

	* model_alias.c: fix crash when loading .dpm models

2006-04-16 13:36  havoc

	* gl_rmain.c: changed where vertex coloring is applied in the
	  fragment shader, this fixes problems with vertex colored surfaces
	  (note: does not help deluxemapping mode, there is another bug
	  affecting that)

2006-04-16 12:19  havoc

	* gl_rmain.c, model_alias.c, model_brush.c, model_shared.c,
	  model_shared.h: modified Mod_BuildTextureVectorsAndNormals to
	  become Mod_BuildTextureVectorsFromNormals, this is in preparation
	  for properly honoring the surface normals in models and maps
	  (doesn't do anything yet)

2006-04-16 11:34  havoc

	* gl_rmain.c, render.h: commented out r_texture_fogintensity
	  texture generation as it's not used anywhere

2006-04-16 11:30  havoc

	* gl_rmain.c: fix bug in glsl surface shader setup code which was
	  breaking fog

2006-04-16 11:21  havoc

	* cl_particles.c, cl_screen.c, gl_backend.c, gl_backend.h,
	  gl_draw.c, gl_rmain.c, gl_rsurf.c, r_explosion.c, r_lightning.c,
	  r_shadow.c, r_sky.c: eliminated rmeshstate_t .pointer_vertex and
	  .pointer_color (now must use R_Mesh_VertexPointer and
	  R_Mesh_ColorPointer instead - in a lot of code these don't need
	  to be called as often) renamed R_Mesh_State to
	  R_Mesh_TextureState made an alternate variant of
	  R_Mesh_TextureState called R_Mesh_ResetTextureState which acts
	  like it was given an empty rmeshstate_t (but is faster than
	  R_Mesh_TextureState) moved R_Mesh_VertexPointer and
	  R_Mesh_TexCoordPointer calls out of the inner loops of the GLSL
	  surface path other related cleanups

2006-04-16 08:44  havoc

	* gl_rmain.c, gl_rsurf.c, r_shadow.c, render.h, todo: redesigned
	  some of the model animation code, should be a speed gain (no
	  longer processes animation multiple times on models with multiple
	  textures), and executes less code per surface (should speed up
	  map rendering)

2006-04-16 08:40  havoc

	* model_alias.c: fixed zym loading bugs that made models lose
	  surfaces

2006-04-16 08:28  molivier

	* vid_agl.c: AGL fixes: fixed a crash when switching to and from
	  fullscreen several times; explicitely release the display when
	  closing the video module; fixed initial test in VID_Shutdown(); a
	  bit of code cleaning

2006-04-16 06:02  havoc

	* sv_main.c: use entity bbox for network culling if model was not
	  found (this allows dedicated servers to run properly without
	  models installed)

2006-04-16 03:08  havoc

	* model_alias.c: some cleanup of Mod_Alias_GetMesh_Vertex3f fixed
	  md3 animation loading bug (this was causing all frames other than
	  0 to be corrupt)

2006-04-15 13:33  molivier

	* makefile.inc, vid_agl.c: Fixes and cleanups related to the recent
	  AGL patches

2006-04-15 10:24  havoc

	* .cvsignore: added darkplaces-agl to .cvsignore

2006-04-15 10:14  havoc

	* vid_agl.c: fix more warnings

2006-04-15 10:13  havoc

	* makefile.inc: added -framework AGL to the Mac OSX client libs to
	  make it compile

2006-04-15 10:04  havoc

	* vid_agl.c: fix some warnings

2006-04-15 09:53  havoc

	* world.c: fix really stupid typo in SV_Move code, this cures the
	  'monsters walking through walls' bug

2006-04-15 08:46  havoc

	* cl_main.c: fix clientside bmodel collisions (now can walk around
	  on the start.bsp main room floor, lifts, be blocked by doors,
	  etc)

2006-04-15 08:45  havoc

	* sv_phys.c: prints entity number of MOVETYPE_PUSH entities without
	  models (this is mostly useful to level designers who accidentally
	  left a brushless door lying around)

2006-04-15 08:44  havoc

	* model_brush.c: additional debugging code

2006-04-15 08:41  havoc

	* cl_input.c: fixed stair step up bug in cl_movement code which
	  caused prediction to go through walls in some cases

2006-04-15 08:38  havoc

	* cl_collision.c, cl_collision.h, clvm_cmds.c, world_cs.c: fixed
	  really stupid typo in CL_TraceBox regarding bmodel entity
	  collisions (doors and such) which was breaking their collisions
	  eliminated CL_PointQ1Contents

2006-04-14 05:46  havoc

	* sv_phys.c: audit of checkstuck/unstickentity code and relates
	  stuff, this seems to fix the falling out of level bug

2006-04-14 05:45  havoc

	* cl_collision.c, collision.c, model_brush.c, sv_move.c: better
	  SUPERCONTENTS masks for a few TraceBox and PointContents calls
	  slight cleanups

2006-04-13 18:48  havoc

	* cl_particles.c: moved SVC_PARTICLE code to fallback code, this
	  does allow effectinfo.txt to override SVC_PARTICLE but that isn't
	  recommended

2006-04-13 18:41  havoc

	* cl_particles.c: stop complaining about SVC_PARTICLE

2006-04-13 18:33  havoc

	* vid_agl.c: two Mac OSX fixes from ds01 on alientrap forums -
	  input fixed, and fullscren fixed

2006-04-13 00:41  havoc

	* client.h, todo, view.c: changed cshifts[] to use floats instead
	  of ints, this reduces framerate dependence (where damage flashes
	  faded faster at lower framerates)

2006-04-13 00:40  havoc

	* host.c: Sys_Sleep more to save cpu time

2006-04-13 00:40  havoc

	* host_cmd.c: don't hide console when entering a map, only do so
	  for timedemo

2006-04-11 23:47  havoc

	* image_png.c: MacOSX g++ setjmp fix from div0

2006-04-11 13:31  black

	* cl_particles.c: This works for me, works on Windows according to
	  MSDN and should also work everywhere else according to the C
	  standard.

2006-04-11 00:03  havoc

	* cl_particles.c: reverted Black's change to the effectinfo.txt
	  color command

2006-04-10 22:41  black

	* cl_particles.c: An attempt to fix the particle color bug (it
	  coudlnt read hex values).  Also extend it to make it support "R G
	  B" color pairs.

2006-04-09 03:11  havoc

	* snd_main.c: do apply mixahead math as int

2006-04-08 22:02  havoc

	* sbar.c: fix cl.completed_time math after that last commit

2006-04-08 20:56  havoc

	* cd_linux.c, cl_input.c, cl_main.c, cl_parse.c, cl_particles.c,
	  cl_screen.c, cl_video.c, client.h, clvm_cmds.c, console.c,
	  csprogs.c, gl_backend.c, gl_draw.c, gl_rmain.c, gl_rsurf.c,
	  host.c, host_cmd.c, image.c, image_png.c, jpeg.c, keys.c, menu.c,
	  model_alias.c, model_brush.c, model_shared.c, model_sprite.c,
	  mvm_cmds.c, netconn.c, protocol.c, prvm_cmds.c, r_light.c,
	  r_shadow.c, render.h, sbar.c, snd_main.c, snd_mem.c, snd_mix.c,
	  snd_ogg.c, snd_wav.c, sv_main.c, sv_move.c, sv_user.c,
	  svvm_cmds.c, sys_sdl.c, sys_win.c, todo, vid_shared.c, view.c,
	  world.c, world_cs.c: made darkplaces able to compile as C++
	  again, and fixed all conversion warnings when doing so changed
	  several malloc and free calls to Z_Malloc and Z_Free

2006-04-08 18:17  havoc

	* sv_main.c: default sv_gameplayfix_stepdown to 0 because it's
	  generally undesirable

2006-04-04 21:08  havoc

	* todo: 466

2006-04-04 16:01  havoc

	* quakedef.h: increased sv_maxrate limit to 150000 from 25000

2006-04-04 15:51  havoc

	* cl_main.c, cl_parse.c, cl_particles.c, client.h, clvm_cmds.c,
	  r_explosion.c, todo: added particle effect scripting using
	  effectinfo.txt, this means configurable effects in any game that
	  wishes to do so

2006-04-04 15:49  havoc

	* gl_rmain.c, gl_rsurf.c, render.h: don't render skymasking
	  polygons when noclipping

2006-04-04 15:36  havoc

	* netconn.c: added some extra prints to net_slistqw to figure out
	  which masters are working, and removed a few duplicate references
	  to the id qw masters from the list

2006-04-02 10:12  havoc

	* gl_rmain.c, glquake.h, render.h, vid_shared.c: some cleanup of
	  the GLSL shader, no longer uses #ifdef variable declarations
	  because the shader compiler removes unused variables anyway, and
	  now always calculates the eye vector for simplicity reasons
	  removed the SURFACENORMALIZE option (now always on, since it
	  doesn't cost much render time and was on by default) removed all
	  use and detection of half floats (these were originally around
	  11% speedup on GF6 hardware but but in more recent drivers
	  they've dropped to around 3-6%, and spit out a lot of warnings
	  during shader compilation with no apparent way to fix the
	  warnings)

2006-04-02 10:05  havoc

	* cl_input.c: removed a piece of debugging code

2006-04-01 15:49  havoc

	* sv_phys.c: rewrote much of SV_Trace_Toss to fix bugs (it
	  basically wasn't working, though I was unable to figure out why)

2006-03-31 05:38  havoc

	* gl_backend.c: print out the contents of the GLSL shader when it
	  is compiled when using developer 100 or higher

2006-03-29 15:25  havoc

	* gl_rmain.c: fix a crash in r_showsurfaces

2006-03-29 14:54  havoc

	* gl_rmain.c, gl_rsurf.c, r_shadow.c, render.h: optimizations to
	  surface rendering setup

2006-03-29 13:11  havoc

	* cl_main.c, clvm_cmds.c, gl_rmain.c, gl_rsurf.c, model_alias.c,
	  model_brush.c, model_shared.c, model_shared.h, portals.c,
	  r_shadow.c, r_sprites.c, svvm_cmds.c: eliminated model->meshlist,
	  replaced with an embedded model->surfmesh to cut down on pointer
	  indirections, this also eliminated surface->groupmesh some minor
	  optimizations of code to keep track of ent->model in a local
	  variable rather than dereferencing ent every time

2006-03-29 13:08  havoc

	* cl_collision.c: very very minor optimization

2006-03-29 13:04  havoc

	* BSDmakefile: added LDFLAGS_SDL to the pmake file

2006-03-29 12:54  havoc

	* BSDmakefile: remove a superfluous -L

2006-03-29 12:52  havoc

	* makefile.inc: merged special SUNOS LDFLAGS_UNIXCL into
	  LDFLAGS_SUNOSCL to eliminate an ifeq which was breaking on pmake

2006-03-29 12:51  havoc

	* BSDmakefile: remove the -f makefile.bsd

2006-03-29 12:37  havoc

	* BSDmakefile, makefile.bsd: renamed makefile.bsd to BSDmakefile so
	  that pmake will automatically find it (no -f necessary), thanks
	  to div0 for the tip

2006-03-29 11:18  havoc

	* model_alias.c, model_brush.c, model_shared.c, model_shared.h,
	  todo: no longer uses multiple meshes for model loading, they each
	  use one mesh for all surfaces combined now puts all q3bsp map
	  geometry into one mesh at load rather than splitting it into
	  65536 vertex meshes to crutch up broken drivers (they've been
	  fixed already so this is no longer necessary)

2006-03-29 11:14  havoc

	* host.c: in Host_ServerFrame, give the server a bit more execution
	  time

2006-03-29 08:50  havoc

	* cl_screen.c: default scr_menuforcewhiledisconnected to 0

2006-03-29 02:31  havoc

	* palette.c, palette.h, vid_shared.c: added rampsize parameter to
	  BuildGammaTable8 and 16

2006-03-28 15:09  havoc

	* vid_glx.c: an optimization to call XF86VidModeGetGammaRampSize
	  only when opening the window, and assume the rampsize doesn't
	  change after that

2006-03-28 15:02  havoc

	* cl_screen.c, vid.h, vid_agl.c, vid_glx.c, vid_null.c, vid_sdl.c,
	  vid_shared.c, vid_wgl.c: modified gamma handling, now
	  VID_UpdateGamma is only called from VID_Finish, and
	  VID_SetGamma/VID_GetGamma/VID_UpdateGamma take rampsize
	  parameters VID_UpdateGamma now supports ramp sizes other than
	  256, and automatically allocates memory accordingly, this allows
	  hardware gamma on X11 to work on Quadro cards (which report 1024
	  gamma entries according to div0), and allows any other platform
	  to do whatever it wishes

2006-03-28 12:17  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: added loading of hmap2
	  .dlit tangentspace deluxemap files and a rather lame method of
	  lightstyle support (blending the deluxemaps according to
	  lightstyles, not rendering them separately like it should)

2006-03-28 05:01  havoc

	* model_alias.c: added two more psk/psa versions reported by
	  Kazashi

2006-03-28 03:04  havoc

	* world.c: patch from div0 to fix disappearing items in nexuiz
	  (trace_* globals in qc were not being cleared before calling
	  touch)

2006-03-26 10:09  havoc

	* gl_rmain.c: fixed r_speeds stats with r_showsurfaces 1 mode

2006-03-26 09:17  havoc

	* gl_rmain.c, gl_rsurf.c: added r_showsurfaces rendering mode which
	  illustrates how many surfaces are on screen (and renders REALLY
	  FAST) moved r_showcollisionbrushes code to gl_rmain.c

2006-03-26 08:43  havoc

	* cl_screen.c, gl_backend.c, gl_backend.h, gl_rmain.c, gl_rsurf.c,
	  glquake.h, r_shadow.c, render.h, todo, vid_shared.c: eliminated
	  the hacky r_showtris code, now r_glsl 1 mode works with
	  r_showtris rewrote r_showtris and r_shownormals to use opaque
	  lines that write to the depth buffer, this makes them show up
	  quite clearly in all cases moved r_showtris and r_shownormals
	  code into R_DrawSurfaces

2006-03-26 05:28  havoc

	* gl_rmain.c: disable skymasking in q3bsp because it causes issues
	  with q3map2 sky tricks (and reenabled the skipping of skymasking
	  on hlbsp also)

2006-03-26 04:26  havoc

	* model_brush.c: fixed bug that was preventing some deluxemapped
	  q3bsp files from being identified as deluxemapped

2006-03-25 23:31  havoc

	* todo: 448

2006-03-25 11:56  sajt

	* todo: 452

2006-03-25 08:58  sajt

	* cl_main.c, client.h, host_cmd.c: cl_autodemo, when set to true,
	  automatically records every game you play. The filename of the
	  demo is determined by cl_autodemo_nameformat (UNIX time string)
	  and the map name.

	  Note - I'm pretty sure this currently lumps all games played
	  successively into one demo. Feel free to fix that :)

2006-03-25 08:25  sajt

	* common.c, common.h, jpeg.c: 'Cruft' removal (removed
	  GAME_FNIGGIUM) Fixed a very minor 'potential' leak in JPEG
	  loading

2006-03-23 13:34  havoc

	* cl_collision.c, cl_main.c, sv_main.c: fix some TraceBox calls
	  that weren't updated like they should have been, so they were
	  using a totally bogus bounding box

2006-03-23 13:33  havoc

	* cl_input.c: fix EF_SELECTABLE flickering bug with prydon cursor

2006-03-23 13:04  havoc

	* r_sky.c: and a GL_DepthMask call

2006-03-23 12:53  havoc

	* cd_shared.c, cdaudio.h, console.c, cvar.c, fs.c, image.c,
	  model_alias.c, netconn.c, prvm_cmds.c, prvm_edict.c, r_shadow.c,
	  todo, zone.c: changed several DPrint's and developer cvar checks
	  to higher developer cvar levels (>= 10 and >= 100 for example),
	  this makes developer 1 much more pleasant to use, also changed
	  the memory clearing on free to depend on developer_memorydebug
	  (which is already quite slow) rather than developer (which
	  shouldn't slow things down much)

2006-03-23 12:49  havoc

	* r_sky.c: a GL_DepthTest call I forgot in the last commit

2006-03-23 12:47  havoc

	* gl_rmain.c: fixed bug that made light filter cubemaps not work in
	  GLSL mode (was binding a cubemap as a 2D texture...  oops) fixed
	  bug that made sky brush entities not appear when not looking at
	  sky brushes in the world (GL_DepthTest/GL_DepthMask were messed
	  up)

2006-03-23 12:44  havoc

	* cl_main.c: corrected PFLAGS_FULLDYNAMIC pitch angle handling

2006-03-23 12:43  havoc

	* cl_collision.c, collision.c, collision.h, model_brush.c, world.c,
	  world_cs.c: fix bugs with bbox vs bbox traces (the collision
	  box's planes didn't have correct contents/surfaceflags/texture
	  information)

2006-03-23 12:41  havoc

	* matrixlib.c: fixed really stupid bug in Matrix4x4_Normalize - it
	  was transposing the matrix (a legacy of the fact it was based on
	  Invert_Simple)

2006-03-23 03:34  havoc

	* sv_main.c: add back a cls.signon = 0 in the SpawnServer code that
	  is necessary to prevent crashes on level change in singleplayer
	  and listen servers

2006-03-23 03:34  havoc

	* model_brush.c: added more validation of clipnodes loaded from a
	  q1bsp file

2006-03-22 10:18  havoc

	* cd_win.c, snd_win.c, sys_linux.c, sys_win.c, vid_wgl.c: another
	  WIN32_LEAN_AND_MEAN patch from Willis, this one for non-SDL
	  client and dedicated server

2006-03-22 09:51  havoc

	* cl_collision.c, cl_input.c, cl_particles.c, clvm_cmds.c,
	  csprogs.c, csprogs.h, progs.h, progsvm.h, prvm_edict.c,
	  r_crosshairs.c, snd_alsa.c, snd_sdl.c, sv_main.c, sv_phys.c,
	  svvm_cmds.c, todo, view.c, world.c, world_cs.c: implemented
	  DP_TRACE_HITCONTENTSMASK_SURFACEINFO extension, this allows QC to
	  find out if a projectile hit sky, among other capabilities

2006-03-22 06:22  havoc

	* cl_collision.c, cl_particles.c, collision.c, collision.h,
	  model_alias.c, model_brush.c, r_shadow.c, world.c, world_cs.c:
	  changed collision code to report supercontents, surfaceflags, and
	  texture that was hit in a trace (even if it has to fake the
	  information for q1bsp) decals no longer stick to sky (except in
	  stock id1 q1bsp maps which have CONTENTS_SOLID sky)

2006-03-21 11:36  havoc

	* todo: 448

2006-03-21 11:31  havoc

	* gl_rmain.c, todo: fixed bug that made deluxemapping gloss appear
	  even with rtworld on

2006-03-21 11:28  havoc

	* r_shadow.c: fix alpha blended textures in GLSL lighting path

2006-03-21 10:56  havoc

	* cl_screen.c, cl_video.c, console.c, gl_draw.c, menu.c,
	  prvm_cmds.c, sbar.c: changed all Draw_CachePic calls to precache
	  the pic except for two calls in the menu qc vm

2006-03-21 10:55  havoc

	* gl_textures.c: fix a crash that could occur if resizing the
	  resize buffer twice in one upload call, and also fix a bug where
	  the player setup menu's translated player pic was being treated
	  as a subimage update which doesn't work because that image is
	  scaled up, not a natural power of 2

2006-03-21 10:07  havoc

	* mathlib.h: slight readability improvement to
	  PointInfrontOfTriangle

2006-03-21 10:06  havoc

	* gl_textures.c, glquake.h, r_textures.h, vid.h, vid_shared.c:
	  removed detection of GL_NV_texture_shader extension which was
	  previously used for the geforce3 water shader that was removed a
	  long time ago removed support for GL_DSDT_NV textures (which were
	  only used for the geforce3 water shader) removed code pertaining
	  to GL_NV_vertex_array_range (which hasn't been supported for a
	  very long time)

2006-03-21 09:49  havoc

	* gl_textures.c, r_textures.h, todo: removed TEXF_FRAGMENT support
	  from texture manager and merged gltextureimage_t into gltexture_t
	  to save some memory and reduce code complexity

2006-03-21 07:52  molivier

	* vid_agl.c: Minor changes to get rid of functions deprecated in
	  Mac OS X 10.4

2006-03-21 07:49  havoc

	* cl_video.c, gl_draw.c, gl_rsurf.c, gl_textures.c, model_brush.c,
	  model_shared.h, r_textures.h: modified Q1BSP loader to generate
	  lightmap fragments on its own, rather than relying on the texture
	  manager, this greatly shortens r_texturestats reports and reduces
	  memory usage a bit (less gltexture_t structures), and modified
	  R_UpdateTexture to be able to update fragments

2006-03-21 06:49  havoc

	* cl_main.c, cl_parse.c, cl_video.c, client.h, gl_backend.c,
	  gl_backend.h, gl_rmain.c, gl_rsurf.c, host.c, host_cmd.c, menu.c,
	  meshqueue.c, model_alias.c, model_shared.c, model_shared.h,
	  protocol.c, prvm_edict.c, quakedef.h, r_shadow.c, r_shadow.h,
	  render.h, sv_main.c, todo, wad.c, zone.c: renamed varray_ arrays
	  to rsurface_array_, and they are no longer used outside the
	  surface rendering code, additionally they are now dynamically
	  resized (saves a little memory) audited a lot of memory
	  allocations and fixed a few significant leaks removed
	  Host_ClearMemory as it was causing several memory leaks, and
	  split cls.mempool into cls.levelmempool and cls.permanentmempool,
	  cls.levelmempool is now emptied each level load (this also fixes
	  those same leaks) merged r_shadow_mempool into r_main_mempool

2006-03-21 04:03  havoc

	* cl_screen.c, gl_backend.c, gl_backend.h, gl_draw.c, gl_rmain.c,
	  gl_rsurf.c, r_lightning.c, r_shadow.c: removed the USETEXMATRIX
	  define (now always on), reduced varray_texcoord3f to only have
	  one array rather than 4 (as the others are no longer needed with
	  USETEXMATRIX), removed varray_texcoord2f, removed
	  earray_element3i changed many simple uses of varray_* arrays to
	  use stack arrays instead this reduces memory usage by 1MB

2006-03-21 03:27  havoc

	* gl_backend.c, gl_backend.h: removed unused R_Mesh_CacheArray
	  stuff

2006-03-21 03:23  havoc

	* cl_main.c, cl_screen.c, cl_screen.h, client.h, draw.h,
	  gl_backend.c, gl_backend.h, gl_draw.c, todo: moved
	  SCR_UpdateScreen and SCR_DrawScreen code to cl_screen.c and
	  rearranged them somewhat moved DrawQ_ functions to gl_draw.c and
	  eliminated r_refdef.drawqueue (this saves some memory and makes
	  all the 2D code more efficient) disabled unused R_Mesh_CacheArray
	  stuff in gl_backend.c

2006-03-21 02:18  havoc

	* cl_screen.c: fixed one more cvar declaration that was missing a
	  comma

2006-03-21 02:15  havoc

	* cl_screen.c: fixed value/description of r_textshadow

2006-03-21 00:09  havoc

	* collision.h, sv_phys.c, world.c, world_cs.c: fixed stuck entity
	  warnings when they should not have been occurring, by adding
	  trace.bmodelstartsolid as a separate thing to check

2006-03-20 23:31  havoc

	* model_brush.c: enabled fullbrights on liquid textures in q1bsp
	  loading, this fixes the black lava bug

2006-03-20 07:13  havoc

	* r_shadow.c: fix crash when using r_editlights mode

2006-03-20 07:08  havoc

	* cl_parse.c: fix nail and explosion sound defaults

2006-03-20 06:51  havoc

	* cl_input.c, view.c: cl_movement 0 should no longer be causing an
	  input replay (which was slow and pointless), though I don't know
	  how it was doing so before...  added code to prevent pogostick
	  jumping in the cl_movement prediction (since the qc prevents
	  pogostick jumping, it was inaccurate to simulate it clientside)
	  changed view/gun bobbing to use cl.movement_velocity for the
	  xyspeed math, this greatly improves the clientside prediction

2006-03-20 05:01  havoc

	* darkplaces-dedicated.dsp, darkplaces-sdl.dsp, darkplaces.dsp,
	  vid_sdl.c: WIN32_LEAN_AND_MEAN patch from Willis to speed up MSVC
	  compilation

2006-03-20 05:01  havoc

	* gl_rmain.c, render.h: added reliefmapping (behaves exactly like
	  offsetmapping, but a slightly different look), removed
	  r_glsl_offsetmapping_bias setting

2006-03-19 22:15  havoc

	* gl_rmain.c, model_brush.c, model_shared.h, render.h: fixed
	  deluxemapping added r_glsl_deluxemapping cvar (2 forces fake
	  deluxemapping on any level, kind of interesting to see) added
	  modelspace deluxemapping (automatically detects whether
	  deluxemaps are modelspace or tangentspace at load time) changed
	  offsetmapping shader to be more perspective correct

2006-03-19 22:12  havoc

	* cl_screen.c: added one more r_speeds 2 report item, to ensure
	  that "clear" is really measuring only the clearing process

2006-03-18 13:17  sajt

	* cvar.c: This made the cvar completion so much more readable

2006-03-18 13:12  sajt

	* console.c: I was just joking

2006-03-18 13:11  sajt

	* console.c: nitpicky

2006-03-18 11:08  havoc

	* gl_rmain.c: added r_glsl_restart command, and modified
	  shaderstring loading back to the old way (reload the file on
	  every permutation compile) for simplicity

2006-03-18 06:20  havoc

	* gl_rmain.c: one more correction

2006-03-18 06:18  havoc

	* gl_rmain.c: fix stupid but non-harmful bug in RSurf_DrawLightmap
	  code

2006-03-18 06:08  havoc

	* image.c: fixed an uninitialized variable warning (which was true)

2006-03-18 05:28  havoc

	* image.c, image.h, model_brush.c: reduced number of image
	  extensions checked by doing more intelligent path examination,
	  and changing q1bsp loader to prepend textures/, this allows it to
	  not check any prefixes in the image loader itself (except in a
	  few cases in nexuiz) changed image loader to not check override/
	  unless running GAME_TENEBRAE removed several unused image
	  functions

2006-03-17 08:50  havoc

	* gl_rmain.c: updated default.glsl

2006-03-17 08:49  havoc

	* gl_rmain.c, model_brush.c, model_shared.h, todo: added
	  deluxemapping (per pixel lighting using lightmaps in specially
	  compiled q3bsp maps)

2006-03-17 07:34  havoc

	* gl_rmain.c: updated default glsl shader

2006-03-17 07:33  havoc

	* client.h, gl_rmain.c, model_brush.c, model_brush.h,
	  model_shared.h, r_light.c, r_light.h, r_shadow.c, render.h: added
	  GLSL shader path for normal rendering stage, reworked a lot of
	  things to do this removed .lights file loading and the
	  corresponding directional model shading (these were only produced
	  by hlight for q1bsp, very rare files) so that the GLSL normal
	  rendering stage would not have to deal with .lights files changed
	  R_CompleteLightPoint to properly match rtlight shading, not the
	  old dlights, this allowed removal of the old lightmap_* rtlight
	  fields

2006-03-17 07:29  havoc

	* todo: 446

2006-03-17 07:27  havoc

	* r_textures.h: modified R_GetTexture to return the texnum of
	  r_texture_white if given NULL

2006-03-17 04:59  havoc

	* model_brush.c: remove fullbright flag on lava and teleport
	  textures

2006-03-17 02:28  sajt

	* view.c: Yes, that was a rather silly typo!

2006-03-16 23:58  havoc

	* view.c: added v_deathtiltangle cvar to allow changing of the roll
	  angle used while dead, at RenegadeC's request

2006-03-15 14:19  havoc

	* gl_rmain.c, r_shadow.c, render.h: cleaning up GLSL code moved
	  GLSL shader setup to gl_rmain.c and made it more general, not
	  specifically lighting shaders cache locations of GLSL shader
	  variables for faster access (instead of looking them up every
	  time it renders something) GLSL shader reworked to support
	  deluxemap rendering and lightmap rendering, to be used in the
	  future merged glsl/light.frag and glsl/light.vert into
	  glsl/default.glsl using VERTEX_SHADER and FRAGMENT_SHADER defines
	  to differentiate parts of it

2006-03-15 14:16  havoc

	* model_shared.h: changed skybox string from size 64 to MAX_QPATH
	  (which is 64)

2006-03-15 11:54  molivier

	* darkplaces-dedicated.dsp, darkplaces-sdl.dsp, darkplaces.dsp:
	  Removed cgame.c, cgamevm.c, ui.c, cg_math.h, cgame_api.h,
	  cgamevm.h, and ui.h from the MSVC projects

2006-03-15 09:02  havoc

	* model_shared.c: slight optimization of model purging and the
	  like, and a failed attempt to make mod_known be a dynamic array

2006-03-15 08:02  havoc

	* cl_collision.c, cl_input.c, cl_main.c, cl_parse.c,
	  cl_particles.c, cl_screen.c, cl_video.c, client.h, clvm_cmds.c,
	  csprogs.c, csprogs.h, gl_rsurf.c, host.c, menu.c, meshqueue.c,
	  netconn.c, netconn.h, protocol.c, r_crosshairs.c, r_lightning.c,
	  snd_main.c, snd_mix.c, view.c, wad.c: moved many cl_ prefixed
	  variables into cl. or cls.  made most menu functions static
	  removed WORKINGLQUAKE support from cl_particles.c and moved
	  particle allocation to cl_main.c (where all the other arrays are
	  allocated) renamed cl_activevideos to cl_num_videos and
	  videoarray to cl_videos (did not move these into cls. however)

2006-03-15 07:08  havoc

	* sv_user.c: don't set qc impulse more than once per packet

2006-03-15 02:01  havoc

	* cg_math.h, cgame.c, cgame_api.h, cgamevm.c, cgamevm.h, cl_main.c,
	  cl_parse.c, cl_screen.c, client.h, gl_rmain.c, keys.c,
	  makefile.inc, protocol.h, quakedef.h, ui.c, ui.h: removed cgame
	  and ui code (both unused), this reduces memory use a bit

2006-03-15 01:42  havoc

	* netconn.c: added LAN search for quakeworld servers

2006-03-15 01:35  havoc

	* menu.c, mvm_cmds.c, netconn.c, netconn.h: split up net_slist into
	  net_slist and net_slistqw, and modified menu accordingly to have
	  two search options

2006-03-14 05:39  havoc

	* client.h, gl_draw.c, r_shadow.c: fix crosshair 6, and allow
	  custom crosshairs up to 32

2006-03-12 03:36  sajt

	* menu.c: Fix in Nexuiz's fallback menu to avoid ending up with a
	  blank screen

2006-03-12 02:04  sajt

	* gl_rmain.c, render.h, todo: r_nearclip cvar

2006-03-12 01:23  sajt

	* darkplaces-dedicated.dsp, darkplaces.dsp: Added some non-crucial
	  header files to the VC++6 projects. The .dev files need them too,
	  not sure what compiler those files are for though.

2006-03-11 21:17  havoc

	* vid_agl.c: fix typo

2006-03-11 20:01  havoc

	* cvar.c, cvar.h: use hash lookups in Cvar_FindVar, this gives a
	  ~40% increase in fps with high numbers of bots in nexuiz

2006-03-11 19:28  havoc

	* zone.c: refactored _Mem_Free into _Mem_FreeBlock which takes a
	  memheader_t * and _Mem_Free which converts a void * to the
	  content area of the memory, to a memheader_t * and calls
	  _Mem_FreeBlock - now _Mem_FreePool and _Mem_EmptyPool can call
	  that directly, which avoids a Mem_IsAllocated error that I don't
	  understand

2006-03-11 19:10  havoc

	* host.c: added back brackets so that developer isn't forced to 100
	  on startup every time

2006-03-11 18:33  havoc

	* host.c: oops, accidentally set developer to 100 by default

2006-03-11 18:24  havoc

	* gl_backend.c, vid.h, vid_agl.c, vid_glx.c, vid_null.c, vid_sdl.c,
	  vid_wgl.c: changed VID_Finish to take an allowmousegrab
	  parameter, this avoids mousegrab on the initial loading screen
	  (before +vid_mouse 1 on commandline is executed)

2006-03-11 18:23  havoc

	* host.c: init host_framecount to 0, just a cleanup

2006-03-11 18:22  havoc

	* protocol.c: fix bug in [515]'s csqc code - it was using the
	  literal number 64 for the max players, not MAX_SCOREBOARD as it
	  should

2006-03-11 18:11  havoc

	* zone.c: fix incredibly stupid bug in Memory_Init, it was clearing
	  the pool chain AFTER allocating two pools

2006-03-11 18:10  havoc

	* host.c: cleaned up the stupid forcedeveloper hack, now changes
	  the default string of the cvar before it is registered, this is
	  much cleaner

2006-03-11 17:59  havoc

	* host.c: moved -developer code to the very beginning of Host_Init,
	  and added a -developer2 option for heavy memory debugging from
	  the beginning

2006-03-11 17:58  havoc

	* zone.h: moved name in memory pools to a different part of the
	  structure, to make ddd displays read better

2006-03-11 17:57  havoc

	* model_alias.c, model_shared.c: fix skinfile memory leaks on ZYM,
	  DPM, and PSK model loaders, and move the skinfile allocations to
	  the model's memory pool even though they are temporary

2006-03-11 17:19  havoc

	* cl_screen.c, console.c, host.c: moved Log_Start call into
	  SCR_BeginLoadingPlaque (which occurs as soon as a map or demo
	  loads, or when config parsing is done)

2006-03-11 00:47  havoc

	* todo: 446

2006-03-11 00:45  havoc

	* sv_phys.c: default sv_jumpstep to 0 to not allow players to jump
	  places they should not be able to go in quake (each game/mod can
	  set this in its default.cfg if it is desired)

2006-03-11 00:23  havoc

	* cl_main.c, cl_parse.c: fixed cl_activebeams handling, now beams
	  work again

2006-03-10 06:21  havoc

	* sv_main.c: fixed bug that caused SV_SpawnServer to fail to send
	  reconnect commands to clients (it was using sv.reliable_datagram
	  which is immediately cleared and thus not sent)

2006-03-10 06:19  havoc

	* host_cmd.c: when loading a savegame, use the saved v_angle value,
	  not angles which usually lacks pitch, this fixes the lack of view
	  pitch when loading games

2006-03-10 06:18  havoc

	* sv_phys.c: fixed bug that allowed the quake2 stair jump to work

2006-03-10 05:02  havoc

	* sv_main.c: don't clear player entity when loading a savegame

2006-03-10 03:37  havoc

	* cl_collision.c, collision.c, model_alias.c, model_brush.c,
	  model_shared.h, world.c, world_cs.c: changed TraceBox functions
	  to take start,mins,maxs,end like they did in Quake, this is a
	  slight optimization to traceline and pointcontents tests and
	  q1bsp tracing, but mostly just cleans up the code removed some
	  old code from q3bsp TraceLine/TraceBox functions changed
	  segmentmins/maxs and nodesegmentmins/maxs calculations to have a
	  1 unit enlargement on all comparisons, this might improve
	  reliability of TraceBox, but probably not

2006-03-10 03:31  havoc

	* model_brush.c: fixed bullets-going-through-walls bug in q3bsp
	  collision code, this was a really nasty bug in the midfrac
	  calculations (it was calculating the midfrac for the partially
	  clipped line segment and then acting as if that was a fraction of
	  the complete line segment...	this caused many problems)

2006-03-09 17:19  havoc

	* svvm_cmds.c: fixed bug that caused ClientDisconnect to not be
	  called on bots in their first level (it did get called on their
	  second level onward), this fix does however assume the QC code
	  will call ClientConnect every time it uses spawnclient

2006-03-08 16:53  havoc

	* model_alias.c: made zym and dpm model loaders warn and ignore the
	  model if it is missing geometry or frames

2006-03-08 02:13  havoc

	* sv_phys.c, world.c, world.h: some work on SV_TestEntityPosition
	  and entity unsticking, now only checks against bmodels

2006-03-07 21:39  havoc

	* cl_screen.c, snd_mem.c, vid_sdl.c: some win64 fixes from Willis

2006-03-07 15:18  havoc

	* gl_rmain.c, gl_rsurf.c, r_shadow.c: rearranged surface renderer
	  some more added tangent/normal generation flags to
	  RSurf_SetVertexPointer, this eliminated the various calls to
	  Mod_BuildTextureVectorsAndNormals and Mod_BuildNormals during
	  rendering, so RSurf_SetVertexPointer is now the only function
	  that sets up rsurface_* variables

2006-03-07 12:22  havoc

	* cl_particles.c: simplified cl_particles_quality handling,
	  shouldn't affect particle lifetime anymore now

2006-03-07 12:21  havoc

	* cl_screen.c: fix r_speeds 1 so that it works again

2006-03-07 11:49  havoc

	* sv_user.c: fixed pogostick/doublejump bug when running id1 qc
	  with a client sending input packets less frequently than server
	  frames moved ping time calculation out of SV_ApplyClientMove and
	  back into SV_ReadClientMove

2006-03-07 11:14  molivier

	* snd_mem.c: Modified ResampleSfx for a small speed gain

2006-03-06 11:16  molivier

	* darkplaces-sdl.dsp: Added "SDL/include" to the include paths and
	  "SDL/lib" to the library paths (allow easy compilation with SDL
	  when the SDL SDK isn't already integrated in MSVC; just unzip
	  "SDL-devel-1.2.x-VC6.zip" in the darkplaces folder, rename its
	  folder to "SDL" and voila!)

2006-03-04 22:31  havoc

	* menu.c, quakedef.h: upped player limit (MAX_SCOREBOARD) from 64
	  to 255, and corrected my email address in the menu

2006-03-04 19:49  havoc

	* mdfour.c: commented out a line as suggested by Spike, to fix a
	  crash when length is 0, this matches the behavior of md4

2006-03-04 19:48  havoc

	* model_brush.c: added LittleLong around the checksums to fix
	  endian-ness issues in QW

2006-03-04 16:04  havoc

	* netconn.c: add SV_VM block around SV_DropClient call in
	  NetConn_ServerFrame to fix a crash when players time out

2006-03-04 15:52  havoc

	* gl_rmain.c, model_brush.c: some cleanup of surface->cached_dlight
	  handling to fix the broken unlit q1bsp handling (it was not
	  appearing fullbright as it should), and this also is a slight
	  optimization

2006-03-04 15:45  black

	* cl_video.c, cl_video.h, gl_draw.c, prvm_cmds.c: Fix a bug in the
	  video system.

2006-03-04 15:36  havoc

	* prvm_cmds.c: forgot to include this in the previous commit

2006-03-04 15:33  havoc

	* cl_video.c, cl_video.h: unmerge OpenVideo code, back to the
	  proper multilayer system it was

2006-03-04 14:38  havoc

	* model_brush.c: changed Q1BSP LoadEdges out of bounds error into
	  just a warning

2006-03-04 11:50  havoc

	* gl_rmain.c: fix a const warning

2006-03-04 11:49  havoc

	* gl_rmain.c: fix duplicate definition of identitymatrix (search
	  and replace accident)

2006-03-04 11:48  havoc

	* clvm_cmds.c: fix typo

2006-03-04 11:47  havoc

	* cl_main.c, cl_particles.c, clvm_cmds.c, collision.c,
	  gl_backend.c, gl_draw.c, gl_rmain.c, gl_rsurf.c, model_alias.c,
	  model_brush.c, model_shared.c, r_explosion.c, r_light.c,
	  r_lightning.c, r_sprites.c, render.h, svvm_cmds.c, view.c:
	  eliminated calls to Matrix4x4_CreateIdentity (now copies from the
	  already existing global identitymatrix struct) and changed all
	  references to r_identitymatrix to refer to identitymatrix

2006-03-04 10:24  havoc

	* cl_screen.c, cl_screen.h, cl_video.c, client.h, console.c,
	  gl_draw.c, host.c, menu.c, prvm_cmds.c, r_crosshairs.c,
	  r_shadow.c, sbar.c: replaced sbarpic_t with cachepic_t in sbar
	  code (saves a bit of memory) changed DrawQ_SuperPic and DrawQ_Pic
	  to take a cachepic_t * instead of a pic name (this speeds up the
	  sbar code by not using name lookups constantly) removed
	  DrawQ_Fill (use DrawQ_Pic with NULL pic instead) changed
	  crosshair/editlights cursors to use r_crosshairs array
	  initialized at startup instead of constantly calling
	  Draw_CachePic changed Host_Init to call SCR_BeginLoadingPlaque
	  instead of Host_StartVideo (which is called by
	  SCR_BeginLoadingPlaque)

2006-03-04 10:23  havoc

	* todo: 454

2006-03-04 10:23  havoc

	* vid_sdl.c: added SDL_APPACTIVE checking so that vid_hidden is now
	  set correctly, this turns off rendering when minimized

2006-03-04 08:14  havoc

	* cl_main.c, cl_screen.c, cl_video.c, cl_video.h, client.h,
	  gl_backend.c, gl_rmain.c, prvm_cmds.c, r_lightning.c, render.h:
	  optimizations and refactoring to get a small (1-2%) speed gain

2006-03-04 07:13  havoc

	* cgamevm.c: added a fast path for queries on "sv_gravity" in
	  CG_Frame (which is unused)

2006-03-04 06:40  havoc

	* cgame.c: optimized entity handling in cgame.c (not used) so that
	  it doesn't drag down framerates doing nothing

2006-03-04 03:45  havoc

	* r_shadow.c: fix a C99 lazy variable issue with non-C99 compilers

2006-03-03 16:02  havoc

	* r_shadow.c: now only compiles GLSL shaders on demand, this
	  improves startup times (but causes some pausing when new
	  combinations occur - which usually only happens on new levels)

2006-03-03 15:51  havoc

	* host.c: move SV_ClearDatagram call to eliminate missing
	  weapon/pickup effects bug when using cl_movement 1

2006-03-02 17:46  molivier

	* snd_ogg.c: Fallback to "vorbis.dll" and "vorbisfile.dll" if
	  "libvorbis.dll" and "libvorbisfile.dll" can't be loaded

2006-03-02 16:47  molivier

	* darkplaces-dedicated.dsp, darkplaces-sdl.dsp, darkplaces.dsp:
	  Added mdfour.[ch] to the MSVC project files

2006-02-28 13:19  havoc

	* netconn.c, netconn.h: filter servers by "gameversion" cvar, which
	  is now also exposed in the serverinfo

2006-02-28 09:17  havoc

	* netconn.c: only query QuakeWorld servers when in GAME_NORMAL mode

2006-02-28 07:29  havoc

	* cl_screen.c, host_cmd.c, polygon.c: casts to fix warnings in MSVC
	  x64, thanks Willis

2006-02-28 07:00  havoc

	* svvm_cmds.c: patch from div0 to fix a comment

2006-02-28 06:41  havoc

	* cl_parse.c, clvm_cmds.c, gl_rmain.c, host.c, menu.c, snd_main.c,
	  sv_phys.c: reduced number of GAME_NEXUIZ checks in the engine
	  (added cl_sound and sv_sound cvars to change or disable
	  engine-triggered sounds), removed some old unused nexuiz menu
	  code (now that the fallbac k prevents you from even reaching the
	  singleplayer menu)

2006-02-27 03:19  havoc

	* sbar.c: fix the minutes display on the QW scoreboard

2006-02-27 03:15  havoc

	* lhnet.c: MorphOS networking support patch from bigfoot

2006-02-27 03:15  havoc

	* host.c: added MorphOS labeling

2006-02-26 12:00  havoc

	* netconn.c: vast improvements in qw server listings in the server
	  browser now DP servers and QW servers are color coded
	  differently, and player count is color coded (red if empty or
	  full, yellow if less than 4 players, white otherwise, useful for
	  quickly identifying the busy servers)

2006-02-26 10:39  havoc

	* netconn.c, netconn.h: added qw master support to server query
	  system, and added 16 masters (15 of which from FTEQW), now the
	  server browser is flooded with QW servers

2006-02-26 10:37  havoc

	* host_cmd.c: improved packet command to have more escape codes
	  (like \0)

2006-02-26 10:36  havoc

	* cl_parse.c: fix crash in nq connect (oops)

2006-02-26 07:15  havoc

	* cl_input.c: added support for qw movevars (sent in server join,
	  and sometimes a couple of them are updated during the game) in
	  the cl_movement physics

2006-02-26 04:15  havoc

	* cl_input.c: fix the timeout problem with cl_movement 1 mode on QW
	  servers, but the prediction still needs work to make use of
	  movevars

2006-02-26 04:00  havoc

	* cl_input.c, cl_main.c, cl_parse.c, cl_screen.c, client.h, cmd.c,
	  common.c, host_cmd.c, netconn.c, progs.h, protocol.c, protocol.h,
	  sbar.c, sv_user.c, view.c: qw support is 99% working

2006-02-25 15:13  havoc

	* cl_parse.c, common.h, makefile.inc, mdfour.c, mdfour.h,
	  model_brush.c, model_shared.h: added md4four map checksumming,
	  since QW servers seem to be very picky about map checksums
	  matching

2006-02-25 14:21  havoc

	* cl_input.c, cl_parse.c, client.h, common.c, common.h, host_cmd.c,
	  netconn.c, protocol.c: QW support getting very close

2006-02-25 11:11  havoc

	* cl_main.c, cl_parse.c, cl_particles.c, client.h, clvm_cmds.c,
	  host.c, host_cmd.c, netconn.c, protocol.c, protocol.h: QW support
	  getting closer

2006-02-25 10:59  havoc

	* cl_parse.c, client.h: moved parse_model_precache and
	  parse_sound_precache to cl.model_names and cl.sound_names
	  respectively

2006-02-25 09:56  havoc

	* protocol.c: fix typos that caused colormod to malfunction when
	  hosting a QUAKEDP protocol server (it was sending red as green
	  and blue), thanks to Spike for pointing this out

2006-02-24 07:04  havoc

	* cl_input.c, cl_main.c, cl_parse.c, client.h, common.h, cvar.c,
	  cvar.h, host.c, host_cmd.c, netconn.c, netconn.h, protocol.c,
	  protocol.h, quakedef.h, server.h, sv_main.c: beginnings of qw
	  protocol support

2006-02-24 07:03  havoc

	* common.c: added InfoString_Print modified InfoString_GetValue and
	  InfoString_SetValue to reject " characters

2006-02-24 06:18  havoc

	* cl_input.c, cl_main.c, cl_parse.c, cl_particles.c, client.h,
	  clvm_cmds.c, protocol.c, view.c: renamed cl.protocol to
	  cls.protocol

2006-02-24 06:17  havoc

	* common.c: fix infinite loop bugs in InfoString_SetValue

2006-02-24 05:46  havoc

	* netconn.c, netconn.h: removed canSend field from netconn_t, and
	  added a fromserver variable in client parsing just for clarity

2006-02-24 05:44  havoc

	* sv_main.c: remove an unnecessary SV_VM block

2006-02-24 05:14  havoc

	* cl_input.c: patch from esteel that fixes the +/-button command
	  descriptions (they all said button3)

2006-02-23 17:19  havoc

	* host_cmd.c, netconn.c: fix rcon_password validation to refuse
	  whitespace, and refuse empty passwords (as it was meant to do all
	  along, but wasn't working properly)

2006-02-23 17:04  havoc

	* cl_input.c, host_cmd.c, netconn.c, sv_user.c: rearrange
	  SV_VM_Begin/End again to fix crashes

2006-02-23 15:50  havoc

	* client.h, console.c, console.h, host.c, host_cmd.c, netconn.c,
	  netconn.h, sv_user.c: added qw compatible "rcon" support (allows
	  a client who knows the server's rcon_password to run a command on
	  the server), had to move NetConn_ServerFrame outside of the
	  SV_VM_Begin block in Host_ServerFrame, and add relevant
	  SV_VM_Begin blocks to various parts of host_cmd.c added qw print
	  command packet to client packet processing (needed for remote
	  rcon when not connected to the server) added qw "packet" command
	  (sends a text message to the specified address)

2006-02-23 12:08  havoc

	* collision.c, gl_rmain.c, model_brush.c, polygon.c, polygon.h,
	  portals.c: changed Polygon[DF]_Divide functions to also be able
	  to return an on-plane points count

2006-02-23 11:57  havoc

	* cl_input.c, cl_main.c, cl_parse.c, client.h, host_cmd.c,
	  netconn.c, netconn.h, server.h, sv_main.c: merged
	  NetConn_SendReliableMessage into NetConn_SendUnreliableMessage,
	  and also merged away the other ReliableMessage functions (ReSend
	  and Next) rearranged client and server message sending calls to
	  attempt to send unreliable messages, even if empty (necessary to
	  trigger sending of reliable messages) eliminated last remnants of
	  NetConn_SendToAll stuff changed some cls.demoplayback checks to
	  !cls.netcon checks

2006-02-23 11:47  havoc

	* sv_user.c: make cl_movement handling a little more robust
	  (hopefully)

2006-02-23 11:34  havoc

	* cl_screen.c: changed r_speeds to only display timings with
	  r_speeds 2, r_speeds 1 now only displays statistics (no glFinish
	  needed so this is much faster)

2006-02-23 06:47  havoc

	* sys_linux.c, sys_sdl.c: another int cast for that patch

2006-02-23 06:43  havoc

	* sys_linux.c, sys_sdl.c: added int cast on write call in new
	  terminal printing code, and added an include of io.h on windows

2006-02-23 06:29  havoc

	* sv_main.c, sv_phys.c: removed runmove array in favor of using a
	  private entity flag to prevent movement on the first physics
	  frame an entity exists in, this makes projectiles fired by
	  cl_movement 1 clients behave properly

2006-02-23 06:26  havoc

	* progs.h: add the priv.server->move field needed by a previous
	  commit

2006-02-23 05:14  havoc

	* prvm_edict.c: change unknown opcode error to a Con_DPrintf, this
	  makes fteqcc fastarrays progs load

2006-02-23 02:48  havoc

	* sys_linux.c, sys_sdl.c: div0 fixed the bug that caused huge
	  console prints to the terminal to be truncated, this bug has been
	  bothering me for a long time, thanks div0!

2006-02-23 00:18  havoc

	* cmd.c: fix alias execution order bug introduced by Black on
	  20050705 (using Cbuf_AddText instead of Cbuf_InsertText for alias
	  expansion is bad!)

2006-02-22 13:12  havoc

	* gl_rmain.c: fix decal draw order bug introduced in recent commit,
	  I forgot that decals are not queued as transparencies like other
	  particles, so calling R_DrawParticles before rtlights was a bad
	  idea (as it made the rtlights be unaffected by decals)

2006-02-22 11:02  havoc

	* gl_backend.c, gl_rmain.c, gl_rsurf.c, r_shadow.c, r_shadow.h,
	  render.h: changed behavior of r_showtris (now only affects
	  geometry in the game view, not sky, not hud, and not bloom) added
	  r_showtris_polygonoffset (doesn't seem to work, for unknown
	  reasons) renamed r_drawcollisionbrushes to r_showcollisionbrushes
	  and got rid of its mode 2 behavior (which was trippy but not all
	  that useful) added r_showdisabledepthtest cvar which disables
	  depth testing on the debugging geometry produced by r_show* cvars
	  renamed r_shadow_visiblelighting/volumes cvars to
	  r_showlighting/shadowvolumes (and they no longer have a mode 2,
	  use r_showdisabledepthtesting to get the same effect instead)

2006-02-22 08:50  havoc

	* svvm_cmds.c: added NAN error checks to traceline and tracebox
	  calls, these cause a PRVM_ERROR

2006-02-22 08:46  havoc

	* prvm_cmds.c: made QC error() and objerror() builtins print the
	  error string above and below the crash information, to be less
	  confusing

2006-02-21 00:33  molivier

	* cd_shared.c, snd_main.c, snd_null.c, sound.h: Added function
	  S_IsSoundPrecached to the sound engine API. "snd_main.h"
	  shouldn't be included outside of the sound engine.

2006-02-21 00:28  molivier

	* menu.c: Modified path for Transfusion gfx files

2006-02-20 05:07  havoc

	* client.h, sv_user.c: fix player not being able to move bug
	  introduced by recent input accumulation code

2006-02-19 10:25  molivier

	* vid_glx.c: Workaround for a bug in the Linux ATI proprietary
	  driver; it does not put the current video mode in the first slot
	  in the array returned by XF86VidModeGetAllModeLines, which can
	  lead to a crash in VID_Shutdown. Also, fixed a small memory leak
	  (the video mode array was never freed)

2006-02-18 11:16  havoc

	* cl_demo.c: call NetConn_UpdateSockets instead of
	  NetConn_ClientFrame in playdemo code

2006-02-18 06:20  havoc

	* menu.c: Willis added a better fallback when the nexuiz menu qc
	  fails to load

2006-02-17 10:41  havoc

	* gl_rsurf.c, model_brush.c: fix crashes with NAN bounding boxes
	  (collisions or dlights) recursing down the BSP tree, they still
	  don't behave properly (because there is no proper handling of
	  NAN), but at least they don't crash anymore

2006-02-17 05:00  havoc

	* sv_phys.c: added an unstick function used on most entities if
	  their movement trace indicates they started in solid, this should
	  prevent items and gibs from falling out of levels 99% of the time

2006-02-17 04:25  havoc

	* snd_oss.c: changed tryrates array to include 48000, 24000, and
	  16000 speeds (this should help 48khz AC97 chips)

2006-02-16 11:28  havoc

	* cl_input.c, cl_main.c, cl_parse.c, client.h, host.c: reworked
	  input timing a bit more, now cl_movement 1 mode syncs client
	  packets to the incoming server packets (because the server does
	  not trust the client's timing, only the history of server frames
	  sent to the client, and thus the client has to sync exactly to
	  the server timing to work) moved CL_SendCmd() call into
	  CL_ReadFromServer right after CL_ReadDemoMessage(), this fixes
	  the prediction jitters that recently appeared with the
	  cl_netinputpacketspersecond feature, however it might add a
	  slight delay in local games (I haven't noticed a delay however)

2006-02-16 08:24  havoc

	* cl_input.c, sv_main.c: remove an unused extern for sys_ticrate,
	  and added a comment warning about improper rate limiting if
	  sys_ticrate is 0 (but it should never be 0 on a real server)

2006-02-16 08:20  havoc

	* sv_user.c: fixed bug that allowed accidental speed cheating with
	  cl_movement 1 mode (move->time was being cleared by
	  ApplyClientMove, so when ReadClientMove calculated how much to
	  move since the last move, it always thought the last move was at
	  time == 0, and then it clamped this delta to 0.1 or less, which
	  prevented it from being completely ridiculous, but still
	  horrible) added kicking of speed cheaters (if they echo a
	  timestamp that has not yet been issued by the server, they're
	  clearly lying)

2006-02-15 23:29  havoc

	* darkplaces.txt: added a small how to install guide and a link to
	  the Linux Quake Howto

2006-02-15 07:04  havoc

	* sv_user.c: also accumulate impulses when receiving multiple
	  packets per server frame

2006-02-15 04:14  havoc

	* cl_input.c, cl_main.c, cl_parse.c: changed client input packets
	  to be sent at a fixed 50fps (configurable by cvar) rather than in
	  response to each server packet

2006-02-15 04:09  havoc

	* sv_phys.c, sv_user.c: improved server handling of multiple
	  packets per client physics frame (as would be the case if the
	  client sends more frames per second than the server sends to it)

2006-02-15 03:54  havoc

	* protocol.c: fix very stupid bug that caused entities to sometimes
	  not be removed (priority was not being updated when deltabits
	  were added back to an entity, so the priority remained at the
	  no-update-necessary level despite the fact it should be sent
	  again)

2006-02-15 00:39  havoc

	* cl_screen.c: fix a typo in vid_conwidth declaration

2006-02-13 19:35  havoc

	* makefile.inc: added nexuiz-agl executable name so that mac nexuiz
	  builds work

2006-02-13 01:23  havoc

	* host.c: modified Host_ServerFrame to run multiple server frames
	  again, but with a time limit of 0.05 seconds spent on server
	  frames per call

2006-02-12 22:03  havoc

	* makefile.inc: now make clean cleans up the nexuiz executables
	  also

2006-02-12 21:59  havoc

	* snd_ogg.c: changed vorbis.dll and friends to use lib prefix
	  (libvorbis.dll)

2006-02-12 21:26  havoc

	* makefile, makefile.bsd, makefile.inc, nexuiz.ico, nexuiz.rc:
	  added nexuiz icon and make rules to make use of it, and now the
	  icon is included in dedicated and sdl builds (not just native
	  client builds)

2006-02-12 20:44  havoc

	* sv_user.c: fixed changelevel networking bug (now ignores
	  clc_ackframe messages from clients who are not spawned, this
	  prevents leftover entity acks from previous level from messing up
	  netcode)

2006-02-12 20:43  havoc

	* host_cmd.c: moved sendsignon = true back to where it was, as it
	  is directly related to the message writing above it

2006-02-12 19:22  havoc

	* r_shadow.c: fix uninitialized specularscale in
	  R_Shadow_RenderSurfacesLighting

2006-02-12 19:22  havoc

	* common.c: fix uninitialized variables in InfoString_GetValue and
	  InfoString_SetValue

2006-02-12 19:21  havoc

	* cl_main.c, netconn.c, netconn.h: renamed
	  NetConn_UpdateServerStuff to NetConn_UpdateSockets and made it
	  non-static, now called in CL_EstablishConnection so +connect on
	  commandline works again

2006-02-12 06:35  havoc

	* sv_main.c: rollback recent network compression changes, it really
	  does have to be reset on level change because the client expects
	  it to be, another solution must be found

2006-02-12 06:28  havoc

	* cl_main.c, gl_rmain.c, r_shadow.c: fixed glsl colormapping
	  brightness bug when using colormod

2006-02-12 06:12  havoc

	* sv_main.c: a fix for the previous fix (don't reset
	  host_client->latestframenum on level change)

2006-02-12 04:28  havoc

	* sbar.c: GAME_NEXUIZ scoreboard team color names patch from
	  KadaverJack

2006-02-12 03:55  havoc

	* sv_main.c: fix problems with changelevel causing network
	  compression to stop working (bug introduced when SV_SendReconnect
	  was rewritten quite some time ago), this was happening because
	  the compression database was being freed on level change and
	  reallocated, and thus producing older entity frame numbers that
	  the client refused

2006-02-12 01:35  havoc

	* protocol.c, protocol.h: removed EntityFrame5_ResetDatabase
	  because it was only used in EntityFrame5_AllocDatabase

2006-02-11 23:49  havoc

	* sv_main.c: fix a crash in SV_ConnectClient on bots

2006-02-11 05:24  havoc

	* cl_demo.c, cl_input.c, cl_main.c, host.c, host_cmd.c, netconn.c,
	  netconn.h, quakedef.h, sv_main.c: removed crash parameter from
	  Host_ShudownServer, eliminated NetConn_SendToAll and
	  SV_SendReconnect

2006-02-11 05:21  havoc

	* cl_parse.c: minor cleanup of keepalive

2006-02-11 03:33  havoc

	* cl_main.c, cl_parse.c, client.h, cmd.c, common.c, common.h,
	  host.c, host_cmd.c, mvm_cmds.c, netconn.c, netconn.h,
	  prvm_cmds.c, server.h, sv_main.c, svvm_cmds.c: migrated
	  cls.message and client->message buffers into netconn_t struct

2006-02-10 19:44  havoc

	* quakedef.h: added a comment by MAX_LIGHTSTYLES about savegames

2006-02-09 14:52  havoc

	* r_shadow.c: added diffuse texture alpha support to GLSL shader
	  (dot3 and vertex still need updating)

2006-02-08 17:49  havoc

	* gl_rsurf.c, r_light.c, r_shadow.c: fixed bugs concerning
	  rtlighting of transparent entities

2006-02-08 17:13  havoc

	* menu.c: two more 4x3 modes

2006-02-07 16:39  havoc

	* cl_main.c, clvm_cmds.c: changed two MAX_LIGHTSTYLE references to
	  cl_max_lightstyle

2006-02-07 16:36  havoc

	* host_cmd.c: fixed loadgame to support stock quake savegames
	  (which have 64 lightstyles, darkplaces savegames have 256)

2006-02-07 16:08  havoc

	* cl_parse.c: made MAX_LIGHTSTYLES error into a warning and it now
	  checks cl_max_lightstyle instead

2006-02-07 16:07  havoc

	* client.h: added externs for more of the cl_max_ variables

2006-02-05 14:44  black

	* cmd.c: Fix it the right way (and also remove another bug this
	  way).

2006-02-05 06:17  havoc

	* cmd.c: crash fix for use of $*/$0-9 when not in an alias, patch
	  from KadaverJack

2006-02-04 15:09  havoc

	* menu.c: added 1280x800 resolution (2560x1600 already existed)

2006-02-03 06:14  havoc

	* console.c: two int casts that were missing, reported by Willis

2006-02-02 15:57  havoc

	* r_shadow.c: vertex lighting path now does pants/shirt rendering
	  faster than before doubled brightness of vertex lighting path to
	  make it look roughly like the other paths (unsure why it was
	  darker however) optimized lighting code setup a bit (less silly
	  conditional returns)

2006-02-02 14:52  havoc

	* r_shadow.c: fix a bug in the GLSL colormapping setup (was feeding
	  a tinted pants/shirt color, should feed the raw colormap colors,
	  because the shader is doing a multiply by light color on all of
	  this)

2006-02-02 14:44  havoc

	* r_shadow.c: split R_Shadow_RenderSurfacesLighting_Light_Dot3 into
	  3 subfunctions for different kinds of pass, and used these to do
	  pants and shirt a little faster

2006-02-02 14:13  havoc

	* r_shadow.c: added pants/shirt layer rendering to GLSL shader,
	  rather than calling it three times like before (which was very
	  slow) migrated GLSL light shader permutation selection (and
	  correspondingly all parameter setup) into
	  R_Shadow_RenderSurfacesLighting_Light_GLSL, this causes more
	  setup overhead but allows specific optimization of
	  non-colormapping and non-specular surfaces so this should be a
	  speed gain overall

2006-02-01 16:51  havoc

	* cvar.c: fix crash in Cvar_CompleteCvarPrint added description
	  printing to cvarlist

2006-02-01 16:11  havoc

	* gl_rmain.c, r_shadow.c: changed renderer to check
	  ent->colormap_pantscolor and ent->colormap_shirtcolor instead of
	  ent->colormap to detect whether to use colormapping on a model,
	  this should reduce chance of bugs in lighting code also optimized
	  the R_Shadow_RenderSurfacesLighting function a bit to have
	  separate handling of colormapped and non-colormapped surfaces
	  (probably a small speed gain, and reduces chance of bugs in
	  lighting code)

2006-02-01 14:21  havoc

	* cd_sdl.c, cd_shared.c, cl_input.c, cl_main.c, cl_parse.c,
	  cl_particles.c, cl_screen.c, cl_video.c, clvm_cmds.c, cmd.c,
	  cmd.h, collision.c, common.c, console.c, cvar.c, cvar.h, fs.c,
	  gl_backend.c, gl_rmain.c, gl_rsurf.c, gl_textures.c, host.c,
	  host_cmd.c, keys.c, menu.c, meshqueue.c, model_alias.c,
	  model_brush.c, model_shared.c, model_sprite.c, netconn.c,
	  prvm_edict.c, r_crosshairs.c, r_explosion.c, r_light.c,
	  r_lightning.c, r_modules.c, r_shadow.c, r_sky.c, sbar.c,
	  server.h, snd_main.c, snd_null.c, sv_main.c, sv_phys.c,
	  sv_user.c, svvm_cmds.c, sys_linux.c, sys_win.c, vid_glx.c,
	  vid_shared.c, vid_wgl.c, view.c, world.c, world_cs.c, zone.c:
	  added description string to all cvars and commands modified tab
	  completion to print description by each cvar, instead of just
	  printing names refactored tab completion code

2006-01-30 14:34  havoc

	* vid_glx.c: disable hardware gamma if XF86VidModeGetGammaRampSize
	  reports a size other than 256, for instance 1024 on Quadro

2006-01-30 14:03  havoc

	* snd_main.c: sound direction fix (negated yaw angle), submitted by
	  div0

2006-01-30 14:01  havoc

	* snd_sdl.c: patch from div0 to add -sndmono and -sndstereo options
	  to sdl sound code

2006-01-30 13:59  havoc

	* console.c: fix for segfault in map name completion, submitted by
	  div0

2006-01-23 22:34  havoc

	* world.c: fix a typo, and apparently this isn't the cause of the
	  nexuiz CTF bug

2006-01-23 22:14  havoc

	* world.c: fixed SOLID_NOT relink touching triggers bug (which was
	  causing CTF flags to be repeatedly captured in Nexuiz)

2006-01-21 11:19  molivier

	* darkplaces-dedicated.dsp, darkplaces-sdl.dsp, darkplaces.dsp:
	  Updated DSP files from Willis

2006-01-21 10:59  molivier

	* console.c, csprogs.c, image_png.c, keys.c, prvm_cmds.c: A few
	  casts and variable type changes to get rid of warnings on Win64.
	  By Willis

2006-01-21 10:40  molivier

	* sv_main.c: Moved a couple of extern declarations outside of the
	  body of their functions (fixes compilation on MSVC6). By Willis

2006-01-21 10:13  molivier

	* image_png.c: Added the proper libPNG DLL name for Win64, by
	  Willis

2006-01-21 10:10  molivier

	* vid_sdl.c: Fix for Win64, by Willis

2006-01-21 09:50  molivier

	* cl_main.c: Fixed drawmask for non-csqc mods. Thanks to Willis for
	  spotting this bug

2006-01-17 21:48  havoc

	* vid_wgl.c: changed newmouseparms to 0 0 0, in hopes of avoiding
	  the winxp mouse acceleration bug

2006-01-16 23:51  havoc

	* image_png.c: changed mac libpng12.dylib to libpng12.0.dylib

2006-01-16 20:11  havoc

	* snd_null.c: added S_FindName function to make dedicated server
	  compile again

2006-01-16 04:53  havoc

	* svvm_cmds.c: disable EXT_CSQC extension name for now

2006-01-16 04:52  havoc

	* cl_collision.c, cl_collision.h, cl_input.c, cl_main.c,
	  cl_parse.c, cl_screen.c, cl_screen.h, client.h, clprogdefs.h,
	  clvm_cmds.c, cmd.c, console.c, csprogs.c, csprogs.h,
	  gl_backend.c, gl_rmain.c, host.c, keys.c, makefile.inc,
	  mvm_cmds.c, progs.h, progsvm.h, protocol.c, protocol.h,
	  prvm_cmds.c, prvm_cmds.h, sbar.c, sv_main.c, svvm_cmds.c,
	  vid_wgl.c, view.c, world_cs.c: csqc patch from [515], seems to
	  work with [515]'s dpcsqc test mod, needs a lot of code
	  cleanup/merging, and VF_FOV stuff is currently ignored

2006-01-15 22:02  havoc

	* image_png.c: changed line endings from DOS to unix

2006-01-15 21:20  havoc

	* gl_textures.c, image.c, image_png.c, image_png.h, makefile.inc:
	  added png support patch from [515] (had to rewrite most of it
	  though)

2006-01-15 17:51  havoc

	* menu.c: added 1440x900 and 720x450 resolutions

2006-01-14 18:45  havoc

	* svvm_cmds.c: added DP_EF_DOUBLESIDED extension to list

2006-01-14 18:40  havoc

	* progs.h, protocol.c, protocol.h, sv_main.c, svvm_cmds.c: added
	  DP_SV_CUSTOMIZEENTITYFORCLIENT extension based on a patch from
	  [515]

2006-01-12 16:19  havoc

	* keys.c: corrected a typo in a comment

2006-01-12 16:17  havoc

	* keys.c: added console editing enhancements patch from [515],
	  except the part for special quake characters was omitted (as the
	  engine should not assume the quake font is being used)

2006-01-12 00:15  havoc

	* cl_screen.c, cl_screen.h, gl_draw.c, glquake.h, vid_shared.c:
	  added DrawQ_Line/DrawQ_Lines/DrawQ_LineWidth patch from [515],
	  note: buggy, needs cleanup

2006-01-11 23:24  havoc

	* console.c: added con_textsize patch from [515]

2006-01-11 19:53  havoc

	* gl_rsurf.c: added r_replacemaptexture and r_listmaptextures
	  commands patch from [515]

2006-01-11 17:17  havoc

	* console.c, console.h: added tab-completion of map/changelevel
	  command + maps command patch from [515], which prints map names,
	  titles, and format (Q1/Q2/Q3/HL/MC/??)

2006-01-11 15:41  havoc

	* host_cmd.c: added sendcvar patch from [515]

2006-01-10 22:16  havoc

	* bspfile.h: added a warning comment about dmodel_t not matching
	  the on-disk q1bsp format because of Sajt's MCBSP code (this does
	  no harm because the reading code does not utilize dmodel_t in
	  reading those structs, but it is a potential land mine to people
	  looking at the header to study the format)

2006-01-10 22:14  havoc

	* model_brush.h: correct q2dheader_t and q3dheader_t to have the
	  correct lump array sizes

2006-01-10 15:52  havoc

	* cl_particles.c: added rain splash code written by [515], and made
	  the splash sparks a bit wider so that they are noticable

2006-01-10 15:35  havoc

	* cl_main.c, gl_rmain.c, gl_rsurf.c, protocol.h, r_shadow.c: added
	  EF_DOUBLESIDED (and internally RENDER_NOCULLFACE)

2006-01-10 15:11  havoc

	* cl_input.c, progs.h, sv_main.c, sv_user.c: added button9-16

2006-01-08 21:10  havoc

	* svvm_cmds.c: redesigned the heart of SV_GetTagMatrix, it now
	  makes sense

2006-01-01 16:10  havoc

	* model_sprite.c: fix sp2 frame positioning

2006-01-01 14:21  havoc

	* vid_sdl.c: changed mouse button numbering to have
	  MWHEELUP/MWHEELDOWN and then 4 5...

2006-01-01 14:15  havoc

	* host.c, prvm_edict.c: added developer_entityparsing cvar to aid
	  in debugging entitystring parsing issues (which always seem to
	  turn out to be map bugs, but it's useful to know what the bug in
	  the map is)

2006-01-01 14:12  havoc

	* gl_backend.c: hide GLSL compile warnings when developer is 0

2006-01-01 08:51  havoc

	* model_brush.c: make compile again, stupid typos

2006-01-01 08:46  havoc

	* prvm_edict.c: corrected some function names in error messages

2006-01-01 08:46  havoc

	* model_brush.c: added vertex bounds checking in
	  Mod_Q1BSP_LoadEdges

2005-12-30 12:14  havoc

	* host.c: disabled running of multiple server frames per host
	  frame, because it does not handle overload gracefully (instead it
	  makes the framerate significantly worse if the server frame is
	  the bottleneck)

2005-12-30 09:27  havoc

	* svvm_cmds.c: refactored gettaginfo in an attempt to improve
	  readability, and fixed scaling bug

2005-12-29 09:43  havoc

	* palette.c: eliminated special case for gamma 1.0 as it was making
	  worse gamma ramps than the general case, and tweaked the code a
	  bit to round to nearest so it should hit exactly 65535

2005-12-28 15:56  molivier

	* pr_cmds.c, pr_edict.c, pr_exec.c, pr_execprogram.h: Removed
	  unused files

2005-12-28 14:26  molivier

	* vid_agl.c: Added support for refresh rate, vsync, and hardware
	  gamma to Mac OS X native video module. Still working on the
	  hardware gamma though, it looks a bit broken (colors are weird
	  with gamma = 1)

2005-12-27 11:10  havoc

	* cl_particles.c, client.h, gl_rmain.c, gl_rsurf.c, meshqueue.c,
	  meshqueue.h, model_shared.h, r_explosion.c, r_lightning.c,
	  r_shadow.c, r_shadow.h, r_sprites.c: reworked rtlighting code to
	  handle transparent water lighting and transparent model lighting
	  (doesn't properly handle alpha textures though)

2005-12-27 10:56  havoc

	* fs.c: changed basedir and gamedir handling slightly to eliminate
	  the need for "./" paths

2005-12-27 08:53  molivier

	* snd_coreaudio.c: Fixed CoreAudio sound module

2005-12-27 05:54  havoc

	* sbar.c: esteel's patch used C99 lazy variable declaration, fixed

2005-12-27 05:12  havoc

	* gl_draw.c: remove an unused variable

2005-12-27 03:43  havoc

	* model_shared.c: fix sprite transparency bug introduced by the
	  palette changes

2005-12-27 03:29  havoc

	* gl_draw.c, image.c, menu.c, model_shared.c, palette.c, palette.h:
	  reworked transparency in palettes, made palette_complete be
	  strictly opaque, added palette_transparent (and switched a few
	  things over to it), made palette_font actually be used (and it no
	  longer has a transparent color 255, only color 0 is transparent
	  in the font, correctly matching software quake), this should
	  hopefully fix bugs with models using color 255 in their skin

2005-12-27 03:22  havoc

	* model_sprite.c: changed a palette_complete, palette_alpha
	  reference to NULL, NULL in sprite loading

2005-12-27 03:18  havoc

	* model_brush.c: removed a duplicate ;

2005-12-26 02:16  havoc

	* sbar.c: nexuiz team scoreboard patch from esteel

2005-12-17 04:43  havoc

	* netconn.c: changed Venim's dpmaster back to an IP

2005-12-17 03:04  havoc

	* netconn.c: added tChr's master server, changed Venim's back to a
	  hostname as it seems to resolve now, and noted admin of each
	  master server

2005-12-14 14:47  havoc

	* gl_rsurf.c: default r_useportalculling to 1, I don't know why it
	  was off

2005-12-05 20:36  black

	* prvm_cmds.c: Erm, remove the paramcount check from localcmd, so
	  that it actually works with an arbitrary number of params.

2005-11-30 16:10  havoc

	* cl_input.c, cl_screen.c, cl_screen.h, client.h, gl_backend.c,
	  gl_backend.h, gl_draw.c, gl_rmain.c, menu.c, render.h, view.c:
	  video modes in menu now also set vid_pixelheight and
	  vid_conwidth/vid_conheight improved video modes menu, it now has
	  widescreen modes, refresh rate, and more information about the
	  chosen mode renamed vid_pixelaspect to vid_pixelheight and
	  inverted its behavior (smaller value now means that a pixel is
	  wider than it is tall) eliminated r_refdef.fov* fields,
	  redesigned to use frustum plane slopes (like glFrustum takes) and
	  calculate fov from height*4/3 rather than width, so widescreen
	  now automatically uses higher fov accordingly, but 4x3 modes are
	  the same as they always were, this also required generating the
	  frustum planes differently in the renderer changed underwater
	  view warping to use frustum scaling rather than angles, this
	  makes it a little smoother

2005-11-30 16:03  havoc

	* vid.h, vid_agl.c, vid_glx.c, vid_null.c, vid_sdl.c, vid_shared.c,
	  vid_wgl.c: implemented vid_refreshrate cvar to specify display
	  refresh rate in windows added vid_minwidth/vid_minheight for use
	  by menu, this lets a mod specify minimum acceptable resolution

2005-11-29 13:24  havoc

	* todo: 409

2005-11-29 13:14  havoc

	* cl_particles.c: smoke trails are now half as bright, bullet
	  impact sparks now fly upward a little bit at first (looks better
	  when shooting the floor)

2005-11-29 12:58  havoc

	* cl_parse.c, cl_particles.c, client.h, menu.c: implemented
	  cl_particles_quake cvar to use quake-style particle effects

2005-11-29 12:57  havoc

	* cl_main.c: disabled dlight from scrag and hellknight shots

2005-11-29 01:20  havoc

	* snd_main.c: removed headphones stuff, now stereo is side speakers
	  (like headphones was) because it was too hard to hear things
	  behind you with only front speakers, added mono speaker layout
	  also

2005-11-28 08:46  havoc

	* keys.h, vid_glx.c, vid_sdl.c, vid_wgl.c: fixed keynum_t issue, it
	  was declared as an extern variable (?!?) in the header, should
	  have been a typedef

2005-11-28 08:45  havoc

	* vid_glx.c, vid_sdl.c, vid_wgl.c: changed buttonremap arrays to
	  int instead of keynum_t because keynum_t is not being found for
	  some bizarre reason no matter what I do

2005-11-28 06:54  havoc

	* keys.h, vid_glx.c, vid_sdl.c, vid_wgl.c: made K_MOUSE4/5 keys
	  separate from K_MWHEELUP/DOWN keys

2005-11-28 05:51  havoc

	* menu.c: fix a typo

2005-11-28 01:59  havoc

	* menu.c: added scr_screenshot_gamma to menu (I'm sure I did this
	  once before!)

2005-11-27 09:29  havoc

	* todo: 416

2005-11-27 01:24  havoc

	* snd_alsa.c, snd_bsd.c, snd_main.c, snd_oss.c: eliminated
	  snd_inited and sound_started variables, now uses shm != NULL
	  checks instead

2005-11-27 01:22  havoc

	* darkplaces.txt: added minor documentation about logging features

2005-11-26 23:41  havoc

	* snd_mix.c: remove a piece of breakpoint code I forgot to remove
	  before

2005-11-26 09:05  havoc

	* cl_screen.c: fix a typo in r_speeds display that incorrectly
	  displayed dynamic shadow triangles

2005-11-26 00:03  havoc

	* snd_mix.c: fix a sound conversion bug in mono output

2005-11-26 00:00  havoc

	* cl_parse.c: fix a warning

2005-11-25 09:23  havoc

	* image.c, image.h, model_alias.c, model_brush.c, model_shared.c,
	  model_shared.h, model_sprite.c, model_sprite.h, r_sprites.c:
	  sprites now use skinframe_t instead of their own
	  texture/fogtexture fields cleaned up hlbsp texture loading
	  slightly, now uses Mod_LoadSkinFrame_Internal

2005-11-25 08:29  havoc

	* model_brush.c, model_shared.c, model_sprite.c: don't load images
	  when running a dedicated server (they would only be discarded by
	  the missing texture manager anyway)

2005-11-25 08:11  havoc

	* meshqueue.c: dynamically scale the meshqueue transparency sorting
	  distances to adapt the precision to larger/smaller scenes

2005-11-25 07:55  havoc

	* pr_cmds.c, prvm_cmds.c, svvm_cmds.c: changed strzone, stuffcmd,
	  and localcmd to be able to take multiple strings

2005-11-25 07:14  havoc

	* host_cmd.c: ping command now works from server console

2005-11-25 06:24  havoc

	* cl_main.c, host.c, host_cmd.c, netconn.c, sv_main.c: cleaned up
	  edict clearing when connecting or coming back from a level
	  change, this fixes the botclient bugs regarding .colormap, but
	  also meant that NetConn_ServerFrame requires SV_VM_Begin/End
	  around it

2005-11-25 04:24  havoc

	* sv_main.c: added support for model scaling in bounding box
	  calculations for network culling, so now entities can be made
	  bigger and won't disappear incorrectly

2005-11-25 02:34  havoc

	* sv_phys.c, world.c: SOLID_NOT is now linked into the areagrid,
	  which fixed the bugs with corpses not riding lifts, and also
	  means that findradius will find SOLID_NOT entities more often
	  like the sv_gameplayfix_blowupfallenzombies was intended to
	  reorganized and optimized the TOSS/FLY/BOUNCE/STEP physics for
	  better handling of sv_gameplayfix_noairborncorpse

2005-11-25 02:31  havoc

	* netconn.c: changed serverlist to using color tags instead of
	  shifting the numbers to different charsets in the quake font

2005-11-25 02:29  havoc

	* menu.c: changed serverlist menu to use color tags instead of
	  shifting the numbers to different character sets in the quake
	  font

2005-11-25 02:17  havoc

	* vid_agl.c, vid_glx.c: allow typing characters above 126

2005-11-25 02:16  havoc

	* console.c: use color tags for chat messages instead of 0x80
	  masking

2005-11-25 02:12  havoc

	* cl_main.c, cl_parse.c: fixed up various bugs with
	  cl_beams_relative, and reenabled smooth sweeping on other
	  players/enemies

2005-11-23 19:41  havoc

	* gl_rmain.c: changed default bloom settings to faster performing
	  and less overkill values

2005-11-23 04:40  havoc

	* cl_screen.c: added a remaining < 1 check to centerprint display
	  code, this might have fixed the problem where it briefly showed
	  the full text at the beginning of a finale

2005-11-23 04:33  havoc

	* r_crosshairs.c: fix bugs with crosshair_static 0 mode when the
	  player is an EF_NODRAW entity

2005-11-23 04:28  havoc

	* cl_collision.c, cl_main.c, cl_particles.c: removing uses of
	  entity_render_t->origin in the client

2005-11-23 04:00  havoc

	* snd_alsa.c, snd_bsd.c, snd_main.c, snd_main.h, snd_mix.c,
	  snd_oss.c, snd_sdl.c, snd_win.c: implemented 7.1 audio, only
	  works with SDL (attempted ALSA support but ALSA doesn't seem to
	  like mmap access to 4/6/8 channel buffers)

2005-11-23 03:59  havoc

	* todo: [no log message]

2005-11-23 03:54  havoc

	* cl_demo.c, cl_main.c, cl_parse.c, cl_screen.c, cl_video.c, cmd.c,
	  common.c, common.h, console.c, cvar.c, fs.c, gl_backend.c,
	  host.c, host_cmd.c, keys.c, keys.h, menu.c, model_brush.c,
	  pr_cmds.c, pr_edict.c, prvm_cmds.c, prvm_cmds.h, prvm_edict.c,
	  r_shadow.c, r_sky.c, sys_linux.c, sys_sdl.c, sys_win.c: cleaned
	  up many text buffer sizes throughout the engine, most now use
	  MAX_INPUTLINE, some use MAX_QPATH, also cleaned up a lot of stuff
	  that had buffer sizes in the code (now uses sizeof) increased
	  MAX_INPUTLINE from 256 to 16384, so now console commandlines and
	  many other things can be very large

2005-11-22 01:55  havoc

	* r_light.c, r_shadow.c: fixed backwards q3bsp model lighting and
	  backwards rtlighting

2005-11-22 01:40  havoc

	* gl_rmain.c, model_shared.c: added r_shownormals fixed
	  Mod_BumpVectors to generate normals the correct way...  now all
	  rtlighting and q3bsp vertex shading is backwards :(

2005-11-21 19:14  havoc

	* sv_main.c: clear the client->weaponmodel cache on level change

2005-11-20 16:14  molivier

	* vid_agl.c: Fixed black screen when using fullscreen mode on Mac
	  OS X

2005-11-19 13:45  havoc

	* sbar.c: disable sbar in GAME_NETHERWORLD (it draws it using qc)

2005-11-17 16:17  havoc

	* gl_rmain.c, gl_textures.c, glquake.h, r_textures.h, vid_shared.c:
	  made gl_max_size cvar only affect TEXF_PICMIP textures, this
	  prevents it from breaking bloom like it did previously, and bloom
	  now disables itself if the hardware doesn't support big enough
	  textures (such as 3Dfx Voodoo1/2/3/Rush/Banshee)

2005-11-13 13:10  havoc

	* lhnet.c: changed DNS name cache expiration time to 12 hours

2005-11-13 13:08  havoc

	* netconn.c: corrected dpmaster.deathmask.net IP address comment
	  again

2005-11-13 13:05  havoc

	* cl_main.c, matrixlib.c, matrixlib.h: added Matrix4x4_Normalize
	  now normalizes dlight matrix so that attached dlight entities
	  won't be smaller/bigger than normal

2005-11-13 13:04  havoc

	* lhnet.c: expire internal DNS name cache entries after 5 minutes
	  (this way a master server can change IP address)

2005-11-13 12:59  havoc

	* netconn.c: updated ip address comment for dpmaster.deathmask.net

2005-11-11 13:47  havoc

	* gl_draw.c: increased max cachepics from 256 to 1024 at VorteX's
	  request

2005-11-10 08:03  havoc

	* cl_particles.c: condensed CL_EntityParticles code

2005-11-08 17:49  black

	* cmd.c: Moved the cmd preprocessor call from ExecuteString to
	  Cbuf_Execute which should fix the messagemode issue.

2005-11-07 13:37  havoc

	* cl_main.c, cl_parse.c, cl_particles.c, collision.c, common.c,
	  gl_backend.c, gl_textures.c, host.c, host_cmd.c, model_alias.c,
	  model_brush.c, model_shared.c, model_sprite.c, mvm_cmds.c,
	  netconn.c, pr_cmds.c, pr_edict.c, pr_exec.c, pr_execprogram.h,
	  protocol.c, prvm_cmds.c, prvm_cmds.h, prvm_edict.c, prvm_exec.c,
	  prvm_execprogram.h, r_modules.c, r_shadow.c, svvm_cmds.c,
	  vid_agl.c, vid_sdl.c, vid_shared.c, vid_wgl.c: removed \n from
	  all Host_Error, Sys_Error, PRVM_ERROR, PF_ERROR calls, since
	  Host_Error/Sys_Error add their own \n as needed

2005-11-07 12:08  havoc

	* cmd.c, cvar.c, fs.c, gl_draw.c, host.c, keys.c, snd_main.c,
	  snd_mem.c, snd_wav.c, sv_main.c, sv_phys.c, svvm_cmds.c,
	  sys_linux.c, sys_win.c, vid_glx.c: cleaned up all Con_Printf
	  calls that were missing a \n

2005-11-07 10:52  havoc

	* palette.c: fix a bug in loading colormap.lmp to determine number
	  of fullbrights, forgot to pass &filesize to FS_LoadFile

2005-11-07 10:44  havoc

	* gl_rsurf.c: fixed a bug in the r_lockpvs cvar silently added in
	  the last commit (r_lockvisibility cvar also added in the last
	  commit)

2005-11-07 10:41  havoc

	* r_light.c: got rid of unused r_vismarklights cvar

2005-11-07 10:35  havoc

	* gl_rsurf.c: cleaned up R_WorldVisibility code some more and added
	  additional documentation renamed r_surfaceworldnode to
	  r_useportalculling and inverted its behavior accordingly added a
	  special no-pvs-at-all case for floating around in the void to
	  improve readability

2005-11-07 07:51  havoc

	* gl_draw.c, menu.c, r_crosshairs.c, r_shadow.c: removed .tga/.lmp
	  extensions from all Pic names in the engine to improve
	  consistency

2005-11-07 07:48  havoc

	* r_crosshairs.c, r_shadow.c: fix rendering issues with light
	  crosshairs and the world crosshair

2005-11-07 06:30  havoc

	* cmd.c: cleanup of Cmd_PreprocessString and removal of a commented
	  code block as requested by Black

2005-11-06 16:56  havoc

	* wad.c: fix stupid crash

2005-11-06 16:23  black

	* cmd.c: Merged the $ handling into one preprocessor function.

2005-11-05 15:18  havoc

	* cl_particles.c, cmd.c, fs.c, fs.h, gl_draw.c, gl_rmain.c,
	  host_cmd.c, image.c, image.h, jpeg.c, jpeg.h, menu.c,
	  model_alias.c, model_brush.c, model_shared.c, palette.c,
	  pr_edict.c, prvm_cmds.c, prvm_edict.c, r_shadow.c, snd_ogg.c,
	  snd_wav.c, sv_main.c, wad.c: eliminated fs_filesize global, now
	  File_LoadFile and File_Open take a fs_offset_t filesize variable
	  pointer to store the file size into

2005-11-05 08:48  havoc

	* bspfile.h, cd_bsd.c, cd_linux.c, cd_null.c, cd_sdl.c,
	  cd_shared.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_video.c, client.h, cmd.c, common.c, common.h,
	  console.c, draw.h, fractalnoise.c, fs.c, fs.h, gl_backend.c,
	  gl_backend.h, gl_draw.c, gl_rmain.c, gl_rsurf.c, gl_textures.c,
	  host.c, image.c, image.h, jpeg.c, jpeg.h, keys.c, 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,
	  netconn.c, netconn.h, palette.c, palette.h, portals.c, portals.h,
	  pr_cmds.c, pr_comp.h, pr_edict.c, pr_execprogram.h, progs.h,
	  progsvm.h, protocol.c, protocol.h, prvm_edict.c,
	  prvm_execprogram.h, qtypes.h, r_crosshairs.c, r_explosion.c,
	  r_light.c, r_lightning.c, r_shadow.c, r_sky.c, r_textures.h,
	  render.h, sbar.c, server.h, snd_alsa.c, snd_bsd.c,
	  snd_coreaudio.c, snd_main.c, snd_main.h, snd_mem.c, snd_mix.c,
	  snd_ogg.c, snd_sdl.c, snd_wav.c, sv_main.c, sv_phys.c,
	  svvm_cmds.c, vid_agl.c, vid_wgl.c, wad.c, wad.h, zone.c, zone.h:
	  eliminated qbyte type, now uses unsigned char throughout the
	  engine for this purpose

2005-11-04 14:24  havoc

	* cl_input.c, cl_main.c, cl_parse.c, host.c, server.h, sv_main.c:
	  implemented sv_fixedframeratesingleplayer cvar

2005-11-04 13:32  havoc

	* gl_rsurf.c, model_brush.c: eliminated use of node bounding box
	  when recursing collision traces and lights through the BSP tree,
	  now only uses BoxOnPlaneSide approach, with an optimized axial
	  case inlined

2005-11-04 13:31  havoc

	* r_shadow.c: minor optimizations to GLSL path layer checking

2005-11-01 10:57  havoc

	* host.c: made timing even more reliable (now sleeps only as little
	  as possible, and only if at least 10ms remains)

2005-11-01 10:52  havoc

	* host.c: fix dedicated server timing, now sleeps less than the
	  full amount of time (like listen servers/clients already did) to
	  maintain a steady framerate, also made it not sleep unless it is
	  at least 10ms, to try to further improve the timing accuracy,
	  thanks to GreEn`mArine for testing this change

2005-10-30 06:17  havoc

	* sv_main.c: fix another crash on level change caused by
	  NetConn_ServerFrame being called

2005-10-29 13:26  havoc

	* netconn.c, sv_main.c: fix server physics crash on level change
	  from reading player movement packets during SV_SpawnServer (bad
	  idea!)

2005-10-29 12:59  havoc

	* r_shadow.c: rewrote much of the voodoo/tnt rtlight path, now
	  supports fog, and now avoids rendering any black triangles (since
	  these cards don't have a lot of fillrate it's better to cull
	  triangles on the cpu)

2005-10-29 08:51  havoc

	* cl_particles.c, gl_backend.c, gl_rmain.c, r_crosshairs.c,
	  r_light.c, r_lightning.c, r_shadow.c, r_sprites.c, render.h:
	  converted vertex fogging to use a fogtable array which matches
	  the fog texture enabled fog texturing on GLSL lighting path (dot3
	  path and vertex path still need work) changed
	  EyeVector/LightVector in GLSL shader back to full fp32 precision
	  because at fp16 the vectors were reaching infinity at only a few
	  meters, which obviously broke fogging

2005-10-29 02:58  havoc

	* r_sprites.c: merged two sprite functions into the main callback
	  to slightly clean up the code and simplify it

2005-10-29 02:39  havoc

	* r_lerpanim.c, r_sprites.c: migrated r_lerpsprites cvar check to
	  r_lerpanim, r_lerpmodels no longer affects sprites

2005-10-28 07:44  havoc

	* r_shadow.c: tweaked GLSL lighting shader to get a bit more
	  performance (at least 7%) on GF6 by making all variables half
	  precision except TexCoord, hopefully also helps GFFX

2005-10-27 08:41  havoc

	* gl_rmain.c, render.h: the beginnings of texture fog support (to
	  cure the vertex artifacts and simplify the renderer a bit)

2005-10-27 07:55  havoc

	* sbar.c: remove a debugging message related to ammo > 200 in
	  zymotic hud

2005-10-27 00:23  havoc

	* dpvsimpledecode.c: fix free/malloc problems from a partial switch
	  to Z_Free and Z_Malloc, the switch over is now complete

2005-10-26 12:57  havoc

	* sbar.c: new zymotic hud

2005-10-26 12:13  havoc

	* pr_cmds.c, svvm_cmds.c, world.c, world.h: replaced
	  CL_PointQ1Contents with longer calls to contents conversion and
	  CL_PointSuperContents changed CL_PointSuperContents to a #define
	  calling SV_Move directly as an optimization

2005-10-26 12:11  havoc

	* sv_phys.c, sv_user.c: split SV_Physics_Entity into
	  SV_Physics_Entity and SV_Physics_ClientEntity as an optimization

2005-10-26 12:09  havoc

	* cl_main.c: fix stupid bug introduced by merging CL_DecayLights
	  into CL_UpdateLights, fixed by splitting them again, now glowing
	  entities should work again

2005-10-26 04:09  havoc

	* server.h, sv_main.c: optimized SV_WriteClientdataToMessage by
	  caching weaponmodelindex in client structure, saving 1% cpu time
	  in masque.bsp

2005-10-26 04:02  havoc

	* model_brush.c: reverted bsp recursion changes (back to the
	  BoxOnPlaneSide method) because the skipping of solid leafs in
	  node bounding box generation was completely breaking q3bsp
	  collisions, and without the reduced node boxes the bsp recursion
	  code runs horribly slow for unknown reasons

2005-10-25 06:29  havoc

	* netconn.c: updated IP address comment for Willis's
	  dpmaster.deathmask.net master server

2005-10-24 07:55  havoc

	* sv_main.c: fix a use of cs.specialvisibilityradius before it was
	  initialized (thanks to gcc 4 for pointing out this bug)

2005-10-24 06:42  havoc

	* cl_main.c, client.h, gl_rmain.c, gl_rsurf.c, model_shared.h,
	  r_light.c, r_light.h, r_shadow.c, r_shadow.h, render.h: moved
	  d_lightstylevalue into r_refdef.lightstyle moved r_dlights into
	  r_redef.lights and made it an array of pointers into cl_dlights
	  to save memory and time merged R_UpdateLights into CL_DecayLights
	  and renamed it CL_UpdateLights renamed R_RTLight_UpdateFromDLight
	  to R_RTLight_Update and made it take only the dlight pointer
	  implemented cl_activedlights variable to prevent scanning whole
	  MAX_DLIGHTS range every frame

2005-10-24 06:28  havoc

	* model_brush.c: fixed a flaw in Mod_Q1BSP_RecursiveRecalcNodeBBox,
	  it was merging bounding boxes even if they came from solid leafs,
	  which meant that the solid hull around the world was making
	  almost all nodes have a bounding box of +-1 billion units,
	  negating any benefit at all to node bounding boxes 10% speed gain
	  in masque.bsp by changing pvs box checking functions to use box
	  tests when recursing the bsp tree instead of BoxOnPlaneSide (now
	  that the node boxes are usable)

2005-10-24 06:22  havoc

	* model_shared.c: slightly optimized Mod_ForName to make less calls
	  to Mod_LoadModel

2005-10-24 06:19  havoc

	* world.c: made an optimized SV_ClipMoveToWorld function to save
	  time on large numbers of world collisions

2005-10-24 06:17  havoc

	* mathlib.c: #ifdef 0'd out BoxOnPlaneSide_Separate as it is not
	  used

2005-10-24 01:13  havoc

	* host_cmd.c: don't send empty lightstyles during signon

2005-10-23 22:24  havoc

	* cl_parse.c: fixed a bug that was making "Model %s not found"
	  warnings never appear when parsing the model precache list

2005-10-23 22:02  havoc

	* cl_collision.c, cl_main.c, cl_parse.c, gl_rmain.c, gl_rsurf.c,
	  model_brush.c, model_shared.c, model_shared.h, portals.c,
	  sv_main.c, world.c: got rid of Mod_CheckLoaded, changed how model
	  system restart works to make this work properly disabled model
	  purging on level change, now only the world model is unloaded,
	  this should improve slightly load times from level to level if a
	  model is used in an early level, then not used in the next, and
	  then used again in the next after that, however it also increases
	  memory usage

2005-10-23 21:42  havoc

	* model_brush.c, model_shared.h, progs.h, sv_main.c: changed
	  network entity pvs checking to cache the cluster list (updated
	  whenever the cull box changes), this got a 20% speed gain in
	  masque.bsp, also rewrote much of the network entity handling code
	  for another 1% speed gain and slight readability improvement

2005-10-23 08:36  havoc

	* cl_particles.c, cl_screen.c, gl_backend.c, gl_rmain.c,
	  gl_rsurf.c, r_light.c, r_shadow.c, r_sprites.c, render.h: rewrote
	  r_speeds stats code, now uses renderstats global structure rather
	  than individual c_ global variables, this makes maintenance a lot
	  easier, additionally changed all the stats to be more
	  representitive of how the engine actually works (counting
	  entities instead of models/bmodels/sprites separately, among
	  other changes), condensed r_speeds stats display to fewer lines

2005-10-21 08:35  havoc

	* snd_coreaudio.c: fix another g++ conversion error

2005-10-21 08:32  havoc

	* vid_agl.c: added explicit casts for agl functions when calling
	  GL_GetProcAddress

2005-10-21 08:15  havoc

	* prvm_cmds.c: fix another float->enum conversion error with g++ 4

2005-10-21 08:15  havoc

	* mvm_cmds.c: fixed two Con_Printf format strings with the wrong
	  type

2005-10-21 08:08  havoc

	* bspfile.h, cl_particles.c, client.h, clprogdefs.h, common.c,
	  cvar.h, dpvsimpledecode.c, fs.c, gl_backend.c, gl_backend.h,
	  gl_textures.c, image.c, input.h, keys.c, keys.h, mathlib.h,
	  menu.c, model_alias.h, model_brush.c, model_brush.h,
	  model_shared.h, modelgen.h, mprogdefs.h, netconn.h, pr_comp.h,
	  pr_edict.c, pr_exec.c, progdefs.h, protocol.c, protocol.h,
	  qtypes.h, r_light.c, r_lightning.c, r_textures.h, sbar.c,
	  server.h, snd_main.h, snd_mix.c, snd_wav.c, snd_win.c,
	  spritegn.h, sys.h, ui.h, vid.h, wad.c, wad.h: gave names to
	  nearly all structs and enums which should make for better C++
	  error messages, and fix any more of those anonymous struct errors

2005-10-21 07:30  havoc

	* netconn.c: fix an anonymous struct error with g++ 4

2005-10-21 07:28  havoc

	* mvm_cmds.c: fix a float->enum conversion error with g++ 4

2005-10-21 07:26  havoc

	* mvm_cmds.c: fix a float->enum conversion error with g++ on big
	  endian systems

2005-10-21 07:21  havoc

	* model_alias.c, model_sprite.c: fix an int->enum conversion error
	  with g++ on big endian systems

2005-10-21 07:15  havoc

	* image.c: added struct name to imageformats to cure an error in
	  g++ 4

2005-10-21 07:11  havoc

	* cl_screen.c: added a struct name to envmapinfo to stop a g++ 4
	  error about envmapinfo (which is a global) using an anonymous
	  type (a struct with no name)

2005-10-21 07:05  havoc

	* cgame.c, cl_main.c, cl_parse.c, cl_particles.c, cl_screen.c,
	  cl_video.c, client.h, cmd.c, collision.c, common.c, common.h,
	  console.c, cvar.c, dpvsimpledecode.c, filematch.c,
	  fractalnoise.c, fs.c, gl_backend.c, gl_draw.c, gl_rmain.c,
	  gl_rsurf.c, gl_textures.c, host.c, host_cmd.c, image.c, image.h,
	  jpeg.c, keys.c, lhnet.c, menu.c, menu.h, meshqueue.c,
	  model_alias.c, model_brush.c, model_shared.c, model_sprite.c,
	  mvm_cmds.c, netconn.c, protocol.c, protocol.h, prvm_cmds.c,
	  prvm_edict.c, qtypes.h, quakedef.h, r_explosion.c, r_lightning.c,
	  r_shadow.c, r_sky.c, r_sprites.c, render.h, server.h, snd_alsa.c,
	  snd_main.c, snd_ogg.c, snd_sdl.c, snd_wav.c, sv_main.c,
	  sv_phys.c, ui.c, ui.h, vid_agl.c, vid_glx.c, vid_sdl.c,
	  vid_wgl.c, wad.c, zone.c, zone.h: made darkplaces compile
	  successfully with g++ to test for errors C doesn't care about
	  (result: found no actual bugs, just C++ compilers being ultra
	  fussy)

2005-10-21 00:22  havoc

	* gl_draw.c: fix one more signedness warning

2005-10-21 00:14  havoc

	* cl_particles.c, cl_screen.c, collision.c, gl_backend.c,
	  gl_draw.c, gl_rmain.c, gl_textures.c, host.c, host_cmd.c,
	  lhnet.c, model_brush.c, model_shared.c, model_sprite.c,
	  netconn.c, polygon.c, polygon.h, prvm_cmds.c, snd_coreaudio.c,
	  snd_mix.c, snd_ogg.c, snd_wav.c, sv_main.c, vid_agl.c, vid_sdl.c,
	  view.c: gcc 4.0 signedness warning fixes and uninitialized vector
	  fixes

2005-10-18 00:51  havoc

	* sbar.c: added very preliminary zymotic hud

2005-10-15 17:36  havoc

	* r_shadow.c: fix typo

2005-10-15 17:21  havoc

	* r_shadow.c: don't try to compile GL_NV_half_float shaders if the
	  extension is missing

2005-10-14 09:36  havoc

	* menu.c: removed Lights Per Model setting from effects options
	  menu, as it only affects .lights files now that vertex dlights
	  are gone...  leading to much confusion among users

2005-10-13 14:03  havoc

	* prvm_edict.c: work around for empty key/value pairs in nehahra
	  neh1m8.bsp entities

2005-10-11 12:06  havoc

	* sv_main.c: fix a stupid bug with the runes display on the hud (it
	  was detecting rogue/hipnotic hud's by the existence of the items2
	  field, which due to the DP progs loader always exists)

2005-10-11 11:58  havoc

	* collision.c: changed the unused line/sphere collision code to use
	  Vector macros instead of doing everything manually (possibly
	  improving readability)

2005-10-11 11:57  havoc

	* host_cmd.c: updated a comment about the nehahra pmodel
	  command/field

2005-10-07 14:56  havoc

	* collision.c: fix a stupid bug in line/sphere collision code (was
	  using sqrt where it shouldn't)

2005-10-06 16:12  havoc

	* model_shared.c: ok this did not cause memory corruption because
	  of another bug which wasted an equivilant amount of memory...

2005-10-06 16:11  havoc

	* model_shared.c: fix a very stupid bug in Mod_AllocSurfMesh that
	  causes memory corruption

2005-09-24 11:24  havoc

	* sv_main.c: fix recursive error (and sometimes segfault) when a
	  Host_Error occurs during progs loading (such as with a corrupt
	  progs.dat)

2005-09-23 08:04  havoc

	* r_shadow.c: make glsl work on ATI's newer drivers (which don't
	  like #define on keywords)

2005-09-18 18:43  molivier

	* snd_coreaudio.c, snd_main.c, snd_main.h, snd_mem.c, snd_ogg.c,
	  snd_sdl.c, snd_wav.c, snd_wav.h: - SFXs no longer allocate
	  mempools, they use the sound mempool directly.  It saved 21KB and
	  129 mempools (from 191 to 62) in my quick test.  - removed unused
	  function S_UnloadSound - changed an endian test in the Ogg Vorbis
	  code to look more coherent

2005-09-18 18:36  molivier

	* zone.c: Made Mem_PrintStats also print the real allocated size
	  (including structures used by the memory system)

2005-09-13 03:33  havoc

	* cl_screen.c, fs.c: moved scr_screenshot_name declaration from
	  cl_screen.c to fs.c because fs.c depends on it and creates it

2005-09-11 14:58  havoc

	* cl_screen.c: changed R_TimeReport to call glFinish to improve the
	  accuracy of the reports on each subsystem (not allowing deferred
	  rendering - yes this knocks your framerate down a lot)

2005-09-11 14:02  havoc

	* gl_rmain.c: fix a crash on vertex lighting q1bsp/hlbsp surfaces
	  with no lightmap samples data

2005-09-11 13:48  havoc

	* cl_main.c, client.h, gl_rmain.c, gl_rsurf.c, model_shared.h,
	  r_shadow.c: rewrote colormapping handling to store
	  colormap_pantscolor and colormap_shirtcolor in entity_render_t
	  rather than having the annoying palette lookups in the renderer,
	  while doing this I removed support for fullbright rendering of
	  colormap colors 14 and 15 (this shouldn't really affect anyone,
	  stock quake did not even let you use these colors, and they're
	  ugly colors anyway :) rewrote portions of surface renderer again,
	  to improve readability and overbright handling, this shouldn't
	  change anything visually

2005-09-11 13:38  havoc

	* model_shared.c: use a better check for bmodels when clearing
	  stainmaps which won't happen on old submodels (which might not be
	  unloaded yet when this function is called)

2005-09-11 12:39  havoc

	* model_brush.c: fix Sajt's bug in q1bsp/hlbsp hullsizes (off by
	  one on the hull index)

2005-09-11 10:33  havoc

	* r_shadow.c: fix a stupid typo in the vertex shader

2005-09-11 09:30  molivier

	* fs.c: - Updated Zlib definitions to version 1.2.3. The only
	  difference is that the function calling convention has changed on
	  Win32 (previously, the zlib DLL used WINAPI). YOU NOW NEED AN
	  OFFICIAL "zlib1.dll" version 1.2.x instead of your old "zlib.dll"
	  (get it from http://www.zlib.net/).  If you still want to use a
	  DLL with the old calling convention, uncomment line 101 and
	  recompile (such a DLL can be found at
	  http://www.winimage.com/zLibDll/).  - Removed QuakeForge
	  copyright since the last bit of QF code was removed months ago by
	  LordHavoc - Changed the way we test the presence of the
	  O_NONBLOCK flag

2005-09-11 00:00  sajt

	* model_brush.c: After the swarm of angry mail I received from
	  owners of manufacturerly-diverse processors, I finally gave in.

2005-09-10 23:38  sajt

	* common.h: Removed the evil evil prototype

2005-09-10 14:12  havoc

	* gl_rmain.c, model_shared.h: removed a lot of texture_t fields
	  that were used by the old renderer

2005-09-10 13:33  havoc

	* gl_rmain.c: removed old surface renderer

2005-09-10 12:30  sajt

	* model_brush.c, model_shared.c: The MCBSP header has been fixed
	  but it will still crash your NASA lunar module landing mainframe

2005-09-10 12:07  sajt

	* bspfile.h, model_brush.c: Rename dhullinfo_t to hullinfo_t, fix
	  byte->qbyte. More fixes later! Don't complain if this crashes
	  your Sun supercomputer!

2005-09-10 08:49  sajt

	* bspfile.h, model_brush.c: MCBSP version 2 loading in the engine..
	  Some very ugly code (will be rewritten). Also, I haven't thought
	  of how bboxes will round to hull sizes yet, so don't even bother
	  trying to use the format yet. Also, someone might want to add a
	  dhullinfo_t instance in the model struct or something, so the
	  rounding functions would be able to access the hull sizes. I'm
	  not sure how that will all work yet.

2005-09-09 15:57  havoc

	* gl_rmain.c, model_shared.h: new surface renderer, builds a layer
	  list in R_UpdateTextureInfo, currently requires r_test to be 1 to
	  use it, will be removing old surface renderer (still available)
	  soon

2005-09-09 14:37  havoc

	* cl_parse.c: fix a bug that made the world render colormapped (no
	  effect but a speed loss)

2005-09-09 10:32  molivier

	* vid_agl.c: Mac OS X OpenGL and input module, using Carbon and
	  AGL. Still in development, but stable enough for a player to use.
	  Notable problems and missing features: no hardware gamma support,
	  no desktop menus, mouse movement scaling NOT disabled (please, if
	  someone knows how to do that with Carbon, let me know), and the
	  fact that it has only be tested on one computer so far (my iBook
	  G4)...

2005-09-08 13:49  havoc

	* gl_rmain.c, gl_rsurf.c, menu.c, model_alias.c, model_brush.c,
	  model_shared.c, model_shared.h, render.h: removed detail
	  texturing (it only worked in q1bsp and hlbsp maps, did not work
	  properly with rtlights, was liked by some people and disliked by
	  many more, and consumed some memory)

2005-09-08 11:12  havoc

	* gl_rmain.c, render.h: removed distortion textures formerly used
	  by GF3 water shader, this frees up 128K of texture memory

2005-09-08 11:08  havoc

	* gl_rmain.c, menu.c, r_shadow.c, render.h: removed GF3 water
	  shader (entirely), it probably won't be coming back

2005-09-08 06:15  havoc

	* gl_rmain.c, model_shared.h, r_shadow.c: moved waterscrollmatrix
	  handling into texture->currentexmatrix to simplify texture matrix
	  shaders like water, and added support in R_Shadow_RenderLighting
	  functions

2005-09-07 19:41  havoc

	* model_brush.c: changed Mod_Q3BSP_LoadEffects to allow brushindex
	  -1 (for effects applied to the whole map), and made it use a
	  warning instead of an error for invalid brushindex

2005-09-07 18:07  havoc

	* gl_rsurf.c, r_shadow.c, r_shadow.h: migrated surface list
	  iteration into the RenderLighting paths for more efficient
	  handling of surfaces, this increased GLSL performance, and vertex
	  lighting performance (rewrote most of it), dot3 path is still
	  quite slow however

2005-09-07 18:05  havoc

	* progsvm.h, snd_mem.c: fix a few very small mistakes by Black and
	  Elric: precompiler directives (#define) can not have whitespace
	  before them, but can have whitespace after the #

2005-09-07 11:58  havoc

	* cmd.c: fix a crash in Cmd_ExecuteAlias when $* is used with no
	  parameters

2005-09-07 11:58  molivier

	* makefile, makefile.inc, snd_coreaudio.c, snd_main.c: Added
	  CoreAudio (Mac OS X) sound driver. Changed / fixed a couple of
	  Mac OS X related lines in the makefiles. The sound format is now
	  printed at sound module startup.

2005-09-07 11:56  havoc

	* gl_rsurf.c, model_alias.c, model_brush.c, model_shared.h,
	  model_sprite.c, r_shadow.c, r_shadow.h: split
	  model->DrawShadowVolume into CompileShadowVolume and
	  DrawShadowVolume to simplify things moved ShadowMesh creation
	  from R_RTLight_Compile to R_Q1BSP_CompileShadowVolume split
	  R_Shadow_RenderLighting into several functions for different
	  paths to (very slightly) improve readability fixed a bug
	  introduced by recent specularscale optimizations (it wasn't being
	  passed to RenderLighting)

2005-09-07 11:54  molivier

	* vid_sdl.c: Fixed the SDL video driver on Mac OS X (crash when
	  restarting). Thanks to BigMac for the patch

2005-09-07 10:47  havoc

	* client.h, gl_rsurf.c, r_shadow.c, r_shadow.h: removed
	  r_shadow_realtime_world_compilelight cvar and all code relating
	  to it (no longer compiles lighting geometry), this is necessary
	  for proper handling of water and animated textures

2005-09-07 10:40  havoc

	* gl_rsurf.c, model_shared.c, r_shadow.c, r_shadow.h: migrated a
	  lot of error handling out of R_Shadow_RenderLighting and into the
	  loading code or DrawLight code, this makes
	  r_shadow_realtime_world_compilelight 0 faster than it was, still
	  not quite as fast as compilelight 1 however

2005-09-07 04:43  sajt

	* gl_draw.c: Dot crosshair is now a tad bigger (and centred
	  properly)

2005-09-06 13:28  sajt

	* todo: 396 again A few items look like they should be fixed by
	  now: line #'s 47, 51, 208, ... (only looked through a few of
	  them)

2005-09-06 13:17  sajt

	* bspfile.h, model_brush.c, model_shared.c, model_shared.h: New
	  MCBSP format, used for my mod. It differs from bsp 29 in that it
	  stores coloured lighting data in the bsp file itself, it has a
	  different set of hulls, and a differently formatted header (I
	  used a few hacks to pull that off without adding a new header
	  struct... maybe be changed later).

	  Anyway, do NOT use this format yet! The format is WIP and
	  backward compatibility will not be kept!

2005-09-06 08:51  havoc

	* sv_phys.c: now has two precision error workaround cases rather
	  than one, lifts have been successfully tested at 1 million frames
	  per second slight cleaning of some variable declarations

2005-09-06 08:10  havoc

	* sv_phys.c: don't remove onground flag when riding a pusher, this
	  fixes the e3m2 silver key not falling with the platform it is
	  riding

2005-09-06 07:33  havoc

	* sv_phys.c: removed (int) casts added by Sajt's last commit, as
	  they are probably a slowdown in most cases

2005-09-06 04:17  sajt

	* sv_phys.c, world.c: The broken pushers are PARTLY fixed. They
	  will now stop when in contact with an entity and call their
	  blocked() QC function. However they appear to have a tiny portion
	  stuck in the player, so the developer console will still be
	  spammed with 'player is stuck.' messages, and the player can
	  still jump while a crusher is on his head.

	  Note to smart people: I'm not sure what to stick in movetype for
	  the SV_ClipMoveToEntity calls, so I put 0 since it's not
	  important. Maybe that should be changed to the appropriate value
	  for the sake of Good(tm).

2005-09-02 13:20  havoc

	* sv_main.c: fix a bug that called player thinks during a level
	  change, this bug may have even been in stock quake

2005-09-02 13:10  havoc

	* image.c: fix a memory leak in one error case in LoadTGA and clean
	  up things a little

2005-09-01 03:59  sajt

	* r_sky.c: No longer gives fail message when skybox loads properly,
	  and no longer gives two fail messages when skybox doesn't load
	  properly

2005-08-31 16:05  havoc

	* sbar.c: initialize red to false (fixes an uninitialized variable
	  warning which appears to be a genuine bug)

2005-08-31 11:21  havoc

	* common.c: change GAME_ZYMOTIC default data dir to basezym

2005-08-30 11:40  sajt

	* model_alias.c: Another MSVC error fixed

2005-08-30 10:53  havoc

	* model_shared.c, model_shared.h: modified Mod_ValidateElements to
	  fix broken elements rather than crashing later

2005-08-30 09:34  havoc

	* model_shared.c: make compile on MSVC

2005-08-30 06:12  havoc

	* model_alias.c, model_alias.h, model_psk.h, model_shared.c,
	  model_shared.h: added PSK model support (UnrealTournament
	  2003/2004 ActorX format)

2005-08-29 07:48  havoc

	* model_brush.c: rollback that shadowmesh fix, I was thinking about
	  it incorrectly

2005-08-29 07:44  havoc

	* model_brush.c: forgot one part of the shadowmesh fix

2005-08-29 07:43  havoc

	* model_brush.c: fix the quake logo shadow in e1m5 (ALL surfaces
	  were producing shadow volumes, including sky and liquids)

2005-08-28 22:41  havoc

	* model_alias.c, model_alias.h, model_brush.c, model_brush.h,
	  model_shared.c, model_shared.h, model_sprite.c, model_sprite.h:
	  some cleaning of the model headers, and added bufferend parameter
	  to all model loaders

2005-08-28 09:23  havoc

	* model_alias.c, model_alias.h, model_dpmodel.h, model_shared.c,
	  model_zymotic.h: added .dpm model support moved
	  Mod_ZYMOTICMODEL_Load function prototype from model_zymotic.h to
	  model_alias.h (where the others already are) removed an
	  unnecessary call to Mod_BuildTriangleNeighbors in
	  Mod_ZYMOTICMODEL_Load (it was being called twice)

2005-08-28 03:26  tomaz

	* menu.c: Added multiplayer maps to -did2 mode

2005-08-28 03:21  tomaz

	* common.c, common.h: Added -did2 mode ( Defeat In Detail 2 )

2005-08-25 07:20  havoc

	* cl_screen.c: changed scr_screenshot_jpeg default to 1 (note this
	  does not affect any existing installations which already have it
	  saved to config as 1)

2005-08-25 04:07  sajt

	* view.c: Get client velocity from cl.velocity rather than
	  cl.movement_velocity for bob, this makes demos use the bob too

2005-08-25 00:16  sajt

	* sbar.c: Apparently this shuts 'assignment in conditional'
	  warnings up

2005-08-24 20:51  havoc

	* model_brush.c: fix a stupid bug in shader parsing (it was
	  ignoring passes when not transparent)

2005-08-24 13:46  sajt

	* todo: 396

2005-08-24 13:45  sajt

	* client.h, view.c: Added 99% functional weaponmodel bobbing code.
	  It even tries to stop bobbing when you're not on the ground, and
	  smoothly transitions between bobbing and not bobbing. The only
	  problem is it seems to jolt whenever you pass through a message
	  trigger or pick up an item or do anything unexceptional like
	  that. Was it a bad idea to trust cl.onground?

2005-08-24 11:53  sajt

	* todo: 395

2005-08-24 08:17  havoc

	* gl_textures.c: nothing to see here, move along...

2005-08-24 07:59  havoc

	* gl_rmain.c: some cleanup of R_DrawTextureSurfaceList changed
	  model->brushq3.data_lightmaps checks to model->type ==
	  mod_brushq3, to fix rtlighting issues in unlit q3bsp maps (which
	  were rendering fullbright even in rtworld mode)

2005-08-24 00:13  sajt

	* todo: Urre admits he was inebriated and his judgment hencely
	  impaired when he suggested this

2005-08-24 00:02  sajt

	* menu.c, todo: Removed gl_combine from the menu and let the menu
	  select the dot crosshair

2005-08-23 23:45  sajt

	* sbar.c, todo: When below 1 fps, the fps counter instead counts
	  spf (seconds per frame). Note that it's pretty hard to get into
	  the spfs (so far I've only gotten it the moment after adding 30
	  rtlights at the same time when there were already 300 in the same
	  spot)

2005-08-23 23:09  sajt

	* cl_screen.c, todo: Added showbrand cvar, possible values 1-8.
	  Draws the image gfx/brand on an edge or corner of the screen,
	  based on the value of showbrand. 1 is bottom-left, 2 is
	  bottom-middle, etc.

2005-08-23 22:50  havoc

	* model_brush.c: q3bsp loader no longer generates a fake lightgrid
	  when one is missing, this saves a lot of memory in unlit maps

2005-08-23 11:03  sajt

	* gl_draw.c: I forgot to mention that I also fixed some other
	  asymmetric crosshairs (3 and 4)

2005-08-23 10:51  sajt

	* gl_draw.c, r_crosshairs.c, todo: Added dot crosshair (crosshair
	  6)

2005-08-23 09:06  sajt

	* svvm_cmds.c, todo: Added a builtin for te_flamejet

2005-08-23 08:43  sajt

	* server.h, sv_main.c, sv_user.c, todo: Added sv_maxairspeed cvar
	  (default 30). This was already mirrored  by
	  cl_movement_maxairspeed.

2005-08-23 07:50  sajt

	* svvm_cmds.c: Forgot a little portion of the comment :-(

2005-08-23 07:39  sajt

	* common.c, common.h, svvm_cmds.c, todo: Added
	  DP_SV_WRITEUNTERMINATEDSTRING extension

2005-08-23 06:07  sajt

	* todo: Updated todo

2005-08-23 05:02  havoc

	* todo: [no log message]

2005-08-21 09:54  molivier

	* sys_shared.c: Added the RTLD_GLOBAL flag to the dlopen call,
	  since some systems seem to require that for some DLLs to work
	  correctly. Thanks to Andreas Dehmel for the patch

2005-08-21 09:51  molivier

	* fs.c: Removed an unused variable

2005-08-20 23:57  havoc

	* r_explosion.c: made some things static

2005-08-20 20:59  havoc

	* pr_cmds.c, svvm_cmds.c: added DP_SV_PRECACHEANYTIME extension

2005-08-19 03:42  havoc

	* gl_rmain.c: fix double bright models bug (LightPoint returns 2x
	  color, and RSurf_SetColorPointer is called expecting 1x color)

2005-08-19 02:21  havoc

	* sv_main.c: don't try to send entities with a NAN origin (this is
	  strangely crashing the PVS check in q1bsp maps, hitting a bad
	  node)

2005-08-18 20:48  havoc

	* gl_rmain.c, gl_rsurf.c, model_alias.c, model_brush.c,
	  model_shared.c, model_shared.h, render.h: added
	  r_smoothnormals_areaweighting cvar (default 1, suggested by Black
	  as a better method, faster and shading looks a little more
	  distinct on nexuiz player models)

2005-08-18 17:34  havoc

	* r_shadow.c: changed tolerances for renderable light intensities
	  to make Stribbs happier

2005-08-18 15:45  black

	* mathlib.h, model_shared.c, quakedef.h, svvm_cmds.c: -Increased
	  MAX_LIGHTSTYLES to 256.  -Changed BuildNormals to use
	  area-weighting/averaging instead of normal averaging.

2005-08-17 14:43  black

	* r_shadow.c, svvm_cmds.c: Fixed a bug in the r_shadow light entity
	  parser which caused it to not read in the pflags, skin and
	  effects key/value pairs in q3 maps.  Added a check to
	  PF_lightstyle for style >= 64.  Fixed a bug in the cursor drawing
	  of the editrtlights mode (it was reading from a uninitialized
	  vector if you flew out of the map).

2005-08-15 16:02  havoc

	* cl_particles.c: added a default case (Sys_Error) to
	  CL_RocketTrail as recommended by [515]

2005-08-15 12:40  molivier

	* cl_main.c: cl_lastquakeentity and cl_isquakeentity are now reset
	  properly when loading a new map (fix the crash with coopmod)

2005-08-15 09:02  havoc

	* zone.c, zone.h: added more developer_memorydebug sentinel checks,
	  and made developer_memorydebug do not-allocated checks in a few
	  cases that were not checked before modified Mem_IsAllocated to be
	  able to take a NULL pool pointer to scan all pools for the
	  allocation

2005-08-15 01:33  eviltypeguy

	* common.h, makefile, makefile.inc, netconn.h, snd_bsd.c,
	  vid_glx.c: Fixups for Solaris port.

2005-08-15 00:54  havoc

	* model_brush.c: fix a crash in q1bsp model stats printing in
	  developer mode

2005-08-14 21:44  havoc

	* view.c: fix stupid typo in Cvar_RegisterVariable call

2005-08-14 20:31  havoc

	* view.c: renamed cl_deathtilt to v_deathtilt to match FTE,
	  fuhquake and ezquake engines

2005-08-14 18:36  havoc

	* cl_main.c, sbar.c, view.c: added cl_deathnoviewmodel,
	  cl_deathscoreboard and cl_deathtilt cvars so that games can
	  decide whether they want these behaviors

2005-08-14 18:36  havoc

	* sv_phys.c: added a comment in push code

2005-08-13 22:56  black

	* cl_screen.c, menu.c: Added colored string support to centerprint.
	  Fixed the menu from dying a recursive death if PRVM_Crash
	  crashes inside of the error handling function.

2005-08-10 12:25  havoc

	* cl_parse.c: fix a terrible mistake: don't send \n at the end of
	  the client variables during signon

2005-08-10 12:23  havoc

	* cmd.c: made Cmd_ForwardToServer code far more readable and
	  prevented forwarding an empty string using cmd by itself

2005-08-10 12:03  black

	* cmd.c: Fixed alias parsing and added support for $* which pastes
	  all formal parameters.

2005-08-10 09:08  havoc

	* glquake.h, r_shadow.c, vid_shared.c: renamed
	  r_shadow_geforcefxlowquality to r_shadow_usehalffloat and added
	  gl_support_half_float extension checking, (half float is now
	  considered a feature rather than a low quality option, as it is
	  an even bigger speed gain on GF6 than on GFFX and no quality
	  reduction has been observed)

2005-08-08 10:16  black

	* host.c: Remove a call to ResetProg from ShutdownServer, so after
	  a crash you will be able to debug the server prog.

2005-08-08 09:41  havoc

	* pr_cmds.c, svvm_cmds.c: add DP_ENT_COLORMOD extension to
	  extension lists remove NEXUIZ_PLAYERSKIN from extension lists
	  (the dpextensions.qc describes it as part of the
	  NEXUIZ_PLAYERMODEL extension)

2005-08-08 09:16  havoc

	* common.c: fix the commandline option documentation of The Hunted
	  to say -thehunted, not -netherworld (no change in behavior, only
	  documentation)

2005-08-08 09:15  havoc

	* common.c: change name of VorteX's netherworld mod

2005-08-02 22:11  havoc

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

2005-07-30 20:43  black

	* cmd.c, host_cmd.c: -Changed a call to VariableString with
	  FindCvar.  -Made changelevel call map if there is no server
	  running (you could call this a hack).

2005-07-19 23:04  black

	* cmd.c, common.c, svvm_cmds.c: Moved the $cvar parser to
	  Cmd_TokenizeString.

2005-07-19 22:53  black

	* cmd.c, common.c, todo: -Added $parameter parsing to the alias and
	  $cvar parsing to the cmd system.  E.g.: alias test "connect $1"
	  test "127.0.0.1" set testcvar "127.0.0.1" connect $testcvar TODO:
	  Add the extension description and the extension to the extension
	  list.

2005-07-13 17:10  tomaz

	* gl_draw.c: Fixed a bug by me regarding the filesize of the
	  embedded font.  Added FONT_FILESIZE define to avoid this misstake
	  in the future.

2005-07-13 16:20  havoc

	* sbar.c: draw [] brackets on the top 4 frags display before the
	  frags count rather than after, as suggested by knghtbrd

2005-07-10 23:21  havoc

	* model_shared.c, model_shared.h: turned Mod_CheckLoaded into a
	  #define

2005-07-10 23:17  knghtbrd

	* makefile.inc: Fix the makefile not to use the unused gl_models.c

2005-07-10 23:16  havoc

	* darkplaces-dedicated.dsp, darkplaces-sdl.dsp, darkplaces.dsp,
	  gl_models.c: remove unused gl_models.c file

2005-07-10 14:33  havoc

	* fs.c, jpeg.c, snd_ogg.c: use *64.dll instead of *.dll on win64,
	  this way we can include both 32bit and 64bit dlls in the same
	  releases

2005-07-08 11:12  havoc

	* model_alias.c: remove TEXF_CLAMP on skins

2005-07-08 10:42  havoc

	* model_shared.c: reduce TRIANGLEEDGEHASH from 16384 bins to 8192
	  to avoid a stack overflow on MSVC x64

2005-07-06 20:22  havoc

	* sv_main.c: move sv.active = true; up to fix a VM_bprint warning

2005-07-05 15:32  havoc

	* fs.c: changed qfile_t->buff_ind and qfile_t->buff_len to
	  fs_offset_t to reduce number of casts

2005-07-05 15:26  havoc

	* r_shadow.c: fix a warning

2005-07-05 15:23  havoc

	* dpvsimpledecode.c, fs.c, sv_main.c: more warning fixes

2005-07-05 15:12  havoc

	* fs.h: use 32bit fs_offset_t on windows (even win64 doesn't
	  support 64bit file offsets on lseek/read/write)

2005-07-05 15:08  havoc

	* fs.c: made packfile_t (describes a file in a pack) use
	  fs_offset_t

2005-07-05 15:02  havoc

	* vid_wgl.c: added a #define DIRECTINPUT_VERSION to hush warnings
	  and make it work on dinput3 even if dinput8 headers are installed

2005-07-05 15:01  black

	* cd_win.c: fix VC 6 not supporting DWORD_PTR.

2005-07-05 15:00  havoc

	* fs.c: more warnings fixed

2005-07-05 14:56  havoc

	* cl_screen.c, qtypes.h: more fixes

2005-07-05 14:51  havoc

	* cl_demo.c, console.c, fs.c, fs.h, host_cmd.c, image.c, jpeg.c,
	  keys.c, menu.c, model_brush.c, prvm_cmds.c, prvm_edict.c,
	  qtypes.h, snd_main.c, wad.c: added a 64bif fs_offset_t type to
	  clean up most of the mess

2005-07-05 14:04  black

	* cd_win.c: fixed some conversions

2005-07-05 13:57  havoc

	* snd_main.h, snd_ogg.c: stomping more size_t warnings

2005-07-05 13:33  havoc

	* cl_input.c, cl_screen.c, console.c, fs.c, host_cmd.c, image.c,
	  lhnet.c, makefile.inc, menu.c, model_brush.c, netconn.c,
	  prvm_cmds.c, prvm_edict.c, snd_main.c, snd_ogg.c, snd_wav.c,
	  zone.c: fixed signed/unsigned mismatch warnings more size_t
	  changes

2005-07-05 13:24  havoc

	* snd_main.h: changing some things back to size_t

2005-07-05 12:49  havoc

	* cgame.c, cl_demo.c, cl_main.c, cl_parse.c, cl_screen.c, cmd.c,
	  common.c, common.h, console.c, cvar.c, fs.c, fs.h, gl_rmain.c,
	  host_cmd.c, keys.c, menu.c, netconn.c, progsvm.h, prvm_cmds.c,
	  prvm_edict.c, prvm_exec.c, r_shadow.c, sbar.c, snd_mix.c: more
	  size_t

2005-07-05 11:29  havoc

	* snd_main.h: use size_t less

2005-07-05 11:24  havoc

	* snd_ogg.c: more size_t

2005-07-05 11:22  havoc

	* zone.h: use size_t even more

2005-07-05 11:21  havoc

	* zone.h: use size_t more

2005-07-05 11:10  havoc

	* snd_main.h, snd_mix.c, snd_ogg.c, sys_win.c, zone.c, zone.h:
	  changed some things to size_t to reduce warnings on MSVC x64

2005-07-05 08:53  havoc

	* fs.c, fs.h: made FS_WriteFile's len parameter size_t to fix some
	  warnings

2005-07-04 12:10  havoc

	* r_shadow.c: fix problems with missing cubemap textures in GLSL

2005-07-04 11:52  havoc

	* gl_rmain.c: fix a crash when doing vid_restart or r_restart with
	  detailtexturing on

2005-07-04 11:51  havoc

	* sv_main.c: fix a typo

2005-07-04 11:44  havoc

	* gl_rmain.c: default developer_texturelogging to 0, don't know why
	  it was 1

2005-07-04 10:35  havoc

	* keys.c: allow escape to togglemenu when in fullscreen console

2005-07-04 10:12  tomaz

	* vid_wgl.c: Fixed it so vertical syns is applied correctly at
	  init.

2005-07-03 13:23  black

	* cvar.c, cvar.h, mvm_cmds.c, prvm_cmds.c, prvm_cmds.h,
	  prvm_edict.c, prvm_exec.c, prvm_execprogram.h, svvm_cmds.c:
	  -Moved findflags and findchainflags to the prvm_cmds.c.  -Added
	  support for default values to the cvar system.  -Added a
	  cvar_defstring builtin to the vm.

2005-07-03 11:01  havoc

	* gl_rsurf.c, r_shadow.c: fix bug that made pants/shirt not render
	  in rtlighting (logic was backwards on the fullbright color range
	  checks) fix bug that rendered specular multiple times (brighter
	  than inended) when using GLSL shader path on colormapped entities

2005-07-03 09:07  havoc

	* prvm_cmds.c: don't print PRVM_NAME in each dprint call, it looks
	  terrible (prints multiple times per line because of multiple
	  dprint calls without \n) fix fatal bug in findchain and
	  findchainfloat which were using FindFieldOffset (which returns a
	  byte array index) to get an offset to feed to PRVM_E_INT (which
	  takes an integer array index)

2005-07-02 13:03  havoc

	* protocol.c: fix bug in parsing PROTOCOL_DARKPLACES1/2/3/4 angles

2005-07-02 05:06  havoc

	* prvm_edict.c: fix Black's mistake of using 'long' (32bit/64bit
	  depending on architecture) type in reading .lno files, changed to
	  int (32bit) so that the code works on 64bit architectures

2005-07-02 04:56  havoc

	* gl_rsurf.c: fix a problem with shadows being cut short from
	  models near the edge of light radius (use model->radius*2 not
	  model->radius)

2005-07-02 04:55  havoc

	* cl_parse.c: changed two comments from saying long to int

2005-07-02 00:39  havoc

	* cl_parse.c: allow multiple lightning beams owned by world

2005-07-01 09:04  havoc

	* progsvm.h, prvm_execprogram.h, sv_main.c: forbid world writes
	  after precache stage (without using sv.state, instead
	  prog->allowworldwrites was added)

2005-07-01 08:58  havoc

	* gl_rsurf.c: changed shadow projection length to use
	  model->radius*2 instead of model->radius

2005-06-30 01:03  havoc

	* netconn.c: stop searching for a server port when one is found

2005-06-30 00:45  havoc

	* progsvm.h, prvm_edict.c: added knownstrings_freeable array to
	  prog struct so that attempts to free engine strings are detected
	  and cause a PRVM_FreeString error (rather than a Mem_Free error)

2005-06-29 01:10  havoc

	* r_shadow.c: default offsetmapping off (as it messes up model
	  skins) fixed permutation failure prints (now lists all 6 flags
	  not just 4)

2005-06-29 00:29  havoc

	* todo: 374

2005-06-28 23:09  black

	* netconn.c, progsvm.h, prvm_edict.c, sv_phys.c, todo: -Added
	  sv_playerphysicsqc to control whether the qc physics function is
	  called (if its available).  -Added support for loading LNO files
	  (more to follow soon).  -The server now tries other ports (up to
	  100 above default) if the default port cant be bound.

2005-06-28 21:23  havoc

	* vid_glx.c: patch from christian holmberg to make XK_section key
	  (I do not know what this is) type ~ character for binds

2005-06-28 07:59  havoc

	* r_shadow.c: removed r_editlights_rtlightssizescale and
	  r_editlights_rtlightscolorscale cvars (now they behave as if they
	  were both 1.0) added r_editlights_edit commands radiusscale
	  sizescale and colorscale (use these to fix old-format .rtlights
	  files)

2005-06-28 01:07  havoc

	* netconn.h: increased server browser viewlist limit (was 128) to
	  match the serverlist limit (2048)

2005-06-26 21:56  black

	* cl_screen.h, host_cmd.c, sbar.c, todo: -"add color code to start
	  of chat message to prevent nick colors from messing up the text
	  color" -updated a few todo items.

2005-06-26 02:51  havoc

	* host_cmd.c: removed "%s changed model to %s" message on
	  .playermodel changes (it was unintended)

2005-06-25 23:51  havoc

	* model_brush.c: q3 shader parser was not supporting alphatest
	  (promoted to alphablend) without trans parm

2005-06-22 19:43  havoc

	* sv_phys.c: removed SV_SetOnGround, this cures the bunnyhopping
	  bug (failure to jump again when hitting the ground)

2005-06-22 19:35  havoc

	* cl_main.c, cl_particles.c, collision.c, common.c, r_lerpanim.c,
	  snd_main.c, snd_wav.c, sv_main.c, sv_phys.c, svvm_cmds.c,
	  world.c: changed a lot of Host_Error calls to Con_Printf or
	  Sys_Error according to severity

2005-06-20 03:50  havoc

	* cl_particles.c, cmd.c, fractalnoise.c, fs.c, gl_draw.c,
	  gl_textures.c, host.c, image.c, keys.c, netconn.c, r_modules.c,
	  snd_main.c, snd_mem.c, sys_linux.c, sys_win.c, vid_glx.c,
	  vid_wgl.c: changed most Sys_Error calls to Con_Printf with
	  appropriate error returns

2005-06-20 03:35  havoc

	* darkplaces-dedicated.dsp, darkplaces-sdl.dsp, darkplaces.dsp:
	  removed winding.[ch] files from dsp files

2005-06-20 03:30  havoc

	* makefile.inc, winding.c, winding.h: removed winding.[ch] as they
	  were not used

2005-06-20 01:52  havoc

	* console.c, keys.c, keys.h: removed two unused Key_Event
	  implementations (which let me remove some unused variables like
	  menukeys and consolekeys to save several K of memory), cleaned up
	  keys.h externs

2005-06-20 01:02  havoc

	* keys.c: changed keydown[] from unsigned int holding key repeat
	  count to qbyte holding status (0 = up, 1 = down, 2 = repeating)
	  to save 3K of memory

2005-06-20 00:56  havoc

	* keys.c: removed keydown[] and renamed key_repeats[] to keydown[]
	  (overall the code looks the same, but this saves 1K of memory)

2005-06-19 21:04  havoc

	* keys.c: cleaned up Key_Event, this changed toggleconsole bind
	  behavior (it now only works while in key_game mode, like all
	  other normal binds)

2005-06-19 19:52  havoc

	* keys.c: removed shift_down variable, use keydown[K_SHIFT] instead

2005-06-19 19:47  havoc

	* host_cmd.c: better detection of model load failures in viewmodel
	  command

2005-06-19 19:46  havoc

	* cl_parse.c: don't complain about missing bolt3/beam models

2005-06-19 19:42  havoc

	* keys.c: removed 3 unused variables

2005-06-19 18:42  black

	* cl_screen.c, prvm_cmds.c, sv_main.c: -Added support for 515]'s
	  BX_COLOREDTEXT extension.  -Changed fopen's and fclose's log
	  ouput a bit (to include the prvm name) -Fixed a stupid bug in the
	  SV VM that caused it to crash on error.

2005-06-19 03:10  havoc

	* cl_parse.c, client.h, host.c: removed CL_InitTEnts function,
	  moved its contents (cl_sfx precaches) to CL_ParseServerInfo
	  removed beam precaches from the beam parsing code to
	  CL_ParseServerInfo so that the precaches are made each level
	  (when it unloads models/sounds) rather than only once (ever!)
	  during the game, this fixed crashes and rendering issues (using
	  the wrong model) with lightning beams renamed cl_sfx_ and
	  cl_model_ from cl_ prefix to cl. prefix now that they are part of
	  the per-level state

2005-06-19 02:59  havoc

	* sv_main.c: before calling SetNewParms qc function, set self to
	  world to intentionally cause errors with broken SetNewParms code
	  in some mods

2005-06-19 02:55  havoc

	* r_explosion.c: remove unused frametime calculation

2005-06-17 00:43  havoc

	* host_cmd.c: replace control characters (such as newline) with _
	  in savegame comments, this fixes loading savegames in
	  'dungeon.bsp' of The Ascension of Vigil, and probably some other
	  maps that use newlines in their titles (nasty)

2005-06-15 18:26  tomaz

	* gl_draw.c, lhfont.h: Fixed the embedded lhfont some more.

2005-06-15 05:54  havoc

	* makefile.inc: use sdl-config --static-libs on Mac

2005-06-15 05:26  tomaz

	* gl_draw.c: Added saving of gfx/generated_conchars.tga

2005-06-15 04:21  havoc

	* prvm_cmds.c: print a different fopen message if it failed

2005-06-15 03:55  havoc

	* prvm_cmds.c: added debug prints to FRIK_FILE fopen/fclose
	  builtins

2005-06-15 00:45  havoc

	* netconn.c: strlwr does not exist on Linux

2005-06-14 21:26  black

	* host_cmd.c, netconn.c: -reconnect wont work if being called from
	  the console (it never did but now  it wont get you into this
	  'zombie' state).  -changed the severlist string compare function
	  to convert all strings to  lowercase before comparing.

2005-06-14 19:52  havoc

	* makefile.inc: attempting to make darkplaces able to compile as
	  32bit on 64bit host systems (by feeding -m32 as CPUOPTIMIZATIONS
	  on commandline)

2005-06-13 18:25  tomaz

	* todo: 373

2005-06-13 18:13  tomaz

	* menu.c: Added gl_picmip slider and r_restart button to Graphics
	  menu ("Texture Quality" and "Renderer Restart")

2005-06-13 16:54  tomaz

	* cl_demo.c, host.c, host_cmd.c, keys.c: added -demo and
	  -demolooponly options. -demo starts the wanted demo and then
	  shuts down the engine once done. -demolooponly does pretty mucht
	  the same except it disables all keys but the escape key and makes
	  escape key quit the engine.

2005-06-13 14:05  havoc

	* todo: 376

2005-06-13 03:18  havoc

	* netconn.c: fix two signed/unsigned mismatch warnings reported by
	  Willis

2005-06-12 18:34  black

	* cl_input.c: Fixed a VC runtime assertion caused by wishdir not
	  being initialized when wishspeed equals zero.

2005-06-11 20:49  black

	* cl_screen.c, cl_screen.h, console.c, keys.c, sbar.c: -The new
	  Key_Event is enabled by default now and Ive added a check so the
	  console toggle char is only added to the message line or console
	  input if it is the color tag char.  -Some name changes of the
	  colored string constants.

2005-06-11 20:20  black

	* keys.c, menu.h, progsvm.h: Increased maximum edict count to 4096

2005-06-11 20:12  black

	* cl_screen.c: Missing ';' :(

2005-06-11 20:01  black

	* cl_screen.c: Rewrote of DrawQ_ColoredString (fixing some bugs
	  hopefully).

2005-06-11 18:42  havoc

	* cl_input.c, cl_main.c, client.h: split CL_ClientMovement into
	  CL_ClientMovement_Input (called each input packet) and
	  CL_ClientMovement_Replay (called each frame) functions to cure a
	  feedback loop that could freeze up a client with a full
	  prediction queue (prediction became slower with each queue item,
	  and the server was not affected by the slowness of the replay, so
	  it could keep the client busy with an endless packet stream and
	  the client would never catch up)

2005-06-11 15:12  molivier

	* netconn.c: Basic support for Q3's "getstatus" message, for a
	  better integration with Q3 compatible server browsers. Thanks to
	  divVerent for an early version of this patch

2005-06-11 02:44  havoc

	* filematch.c, fs.c: changed searchpath directories to have a
	  trailing / (allowing %s%s instead of %s/%s for more consistency)
	  fixed FS_Search to support empty paths (*.cfg and such), and use
	  %s%s concatenation as the rest of the filesystem does, this
	  required changing listdirectory slightly some cleanup of the
	  opendir implementation of listdirectory

2005-06-11 02:38  havoc

	* host.c, netconn.c: sv_public now defaults to 0 except on
	  dedicated servers cleaned up Host_ServerOptions code
	  significantly

2005-06-10 09:04  molivier

	* makefile, makefile.bsd, makefile.inc: Fixed direct compilation of
	  subtargets (cl-release, sv-debug, ...)

2005-06-10 01:26  havoc

	* cd_linux.c: patch from Zero_Dogg to fix a compile problem on
	  Mandriva Linux

2005-06-10 01:21  molivier

	* makefile.bsd: Fixed a typo in the BSD makefile

2005-06-09 18:28  havoc

	* r_shadow.c: added r_shadow_glsl_geforcefxlowquality cvar
	  (automatically on if running a GeForce FX card) to use half
	  floats instead of full floats where possible, and
	  r_shadow_glsl_surfacenormalize cvar (slight quality improvement
	  to bumpmapping)

2005-06-09 16:26  havoc

	* portals.c: remove two unused variables

2005-06-09 13:57  havoc

	* cg_math.h, cl_particles.c, mathlib.c, mathlib.h, portals.c,
	  r_shadow.c: replaced uses of VectorNormalizeFast with
	  VectorNormalize as it was broken on x86_64 (probably just because
	  it used long * casts of floats) and was never much faster on
	  modern CPUs anyway made a lot of internal functions in portals.c
	  static, and replaced two vector subtracts and a crossproduct with
	  TriangleNormal

2005-06-09 13:55  havoc

	* host_cmd.c: round off ping listings to nearest integer

2005-06-08 23:19  black

	* prvm_edict.c: Changed the Host_Error calls in the string indexing
	  functions to PRVM_ERROR calls.

2005-06-08 22:12  black

	* keys.c: New Key_Event is still disabled.  Changed it back, so
	  keys bound to toggleconsole that arent used as console keys can
	  hide the console again when pressed in the console.

2005-06-08 14:24  molivier

	* darkplaces-dedicated.dev, darkplaces.dev: Updated Dev-C++ project
	  files

2005-06-08 08:06  molivier

	* makefile, makefile.bsd, makefile.inc: Changed default sound
	  module for linux to ALSA. Modified makefiles to allow people to
	  choose the sound module easily at compile time (ex: "make
	  DP_SOUND_API=OSS release" compiles release binaries with OSS
	  sound output). Available sound modules are: NULL, OSS, ALSA, BSD,
	  WIN, and COREAUDIO (not functional yet).

2005-06-07 22:55  black

	* keys.c: My Key_Event is disabled (yet).  -Changed it to only
	  toggle the console with ESCAPE when you're in the console,  so
	  binding toggleconsole to a normal key wont toggle it while
	  typing.  -Changed the panic console key to shift-escape since
	  ctrl-escape open the start  menu.  Feel free to test it.  @ETG:
	  since I can probably only reach you this way: it is intended that
	  the console toggle key now appears in the console input line and
	  is also send to e.g. message.  This is because the color tag ^
	  key opens the console on some keyboard layouts and couldnt be
	  typed in otherwise.

2005-06-07 04:14  eviltypeguy

	* keys.c: Disabling black's key code: * Breaks US keyboard console
	  access * Breaks input for US keyboard, causing bizarre input
	  problems and choppy MP gameplay

2005-06-06 22:37  black

	* cl_screen.c, cl_screen.h, console.c, keys.c, sbar.c, vid_wgl.c:
	  If the new Key_Event breaks anything for you, you can set #if 0
	  and activate the old one again.  -Moved _Con_DrawString to
	  cl_screen and changed its name to DrawQ_ColoredString.  -Changed
	  all the code to allow colored nicks.	-Changed Win32 code to
	  support two-char keys (it takes the second byte - may  need some
	  more testing).  -Rewrote Key_Event to support typing in the ^ key
	  on Germany keyboards (or  at least mine). Press ^ two times, once
	  to open the console and once to close it.   If you type in a
	  message, there will be a ^ char waiting for you (same in the
	  console if   you open it again).

2005-06-06 09:24  havoc

	* server.h, sv_user.c: use only the latest ping time, not averaged

2005-06-06 09:23  havoc

	* host_cmd.c: removed one variable too many

2005-06-06 09:22  havoc

	* host_cmd.c: fix two warnings after the last commit

2005-06-06 09:20  havoc

	* host_cmd.c: use latest ping from client struct rather than
	  averaging ping_times

2005-06-06 08:34  havoc

	* cl_input.c: fix crouch button to be the right one

2005-06-06 05:53  havoc

	* prvm_exec.c: fixed a PRVM_Crash crash when progs was NULL

2005-06-05 12:41  havoc

	* protocol.c: fixed the 'floating models' bug
	  (EntityFrame5_WriteFrame was inconsistent with its maxedicts)

2005-06-05 11:27  havoc

	* cl_input.c, cl_main.c: fix lagged prydon cursor trace bug (it was
	  using renderer variables, now uses V_CalcRefdef to get an up to
	  date view matrix before this frame is even rendered) fixed
	  'shooting at world origin' bug due to a misplaced
	  CL_UpdatePrydonCursor call (now in CL_SendMove so it works
	  properly)

2005-06-05 11:24  havoc

	* gl_draw.c: use TEXF_CLAMP on Draw_CachePic (except for the color
	  control ditherpattern)

2005-06-05 11:18  havoc

	* cl_collision.c: don't hit your own model with cl_prydoncursor
	  traces

2005-06-05 10:34  havoc

	* sv_phys.c, sv_user.c: fixed impulse lossage problem
	  (ApplyClientMove wasn't being called during ReadClientMove)

2005-06-05 09:12  havoc

	* common.c: only give shareware warning if running GAME_NORMAL
	  (quake)

2005-06-03 21:36  black

	* netconn.c: Fixed an signed/unsigned warning.

2005-06-03 17:43  havoc

	* progsvm.h, prvm_edict.c: added a small simple optimization of
	  prog->knownstring add/remove

2005-06-03 16:15  black

	* netconn.c, netconn.h: -Added the cvars net_slist_timeout and
	  net_slist_maxtries.  -The queue know tries to query a server
	  multiple times.

2005-06-03 16:15  havoc

	* prvm_edict.c: fix a cast warning

2005-06-03 16:12  havoc

	* progsvm.h, prvm_edict.c: remove unused PRVM_SetQCString function

2005-06-03 16:11  havoc

	* progsvm.h, prvm_cmds.c, prvm_edict.c: rewrote PRVM_AllocString
	  and PRVM_FreeString to deal with string offsets directly (rather
	  than pointers) to avoid unnecessary GetString/SetString calls

2005-06-03 15:36  havoc

	* prvm_exec.c: reset callcount in prvm_profile

2005-06-03 14:49  havoc

	* netconn.c: shut down local server when connected to a remote
	  server some cleaning of NetConn_QueryQueueFrame (and it now goes
	  to sleep when there are no remaining queries to run as an
	  optimization) added net_slist_queriespersecond and
	  net_slist_queriesperframe cvars

2005-06-03 13:05  havoc

	* keys.c: added ctrl-escape hotkey for console (I know I coded this
	  before...  but apparently it never got committed)

2005-06-03 05:44  eviltypeguy

	* common.h: Silly me, apparently FNDELAY *is* available if you
	  include sys/file.h on Solaris.

2005-06-03 05:20  eviltypeguy

	* common.h, makefile, makefile.inc: Changes necessary to build and
	  run on Solaris 10 x86

2005-06-02 23:10  black

	* netconn.c, netconn.h: Added a query queue (test commit so Willis
	  can test it).

2005-06-02 21:21  black

	* host.c: Didnt know that Host_StartVideo works this way (called
	  randomly around the code), so now the menu should be loaded at
	  the right time (or just-in-time :))

2005-06-02 21:06  tomaz

	* gl_draw.c: Redid the coloring of the embedded font to use random
	  colored pixels to make it look a bit more like the worn look of
	  the original quake conchar.

2005-06-02 21:00  black

	* host.c, netconn.c: -Changed host_abortserver to host_abortframe.
	  -Added a hack to allow the menu crash in Host_Init without it
	  taking down  the whole host (please intergrate this into the
	  general design somehow ASAP).  -Changed the hostcache code to
	  always add servers at the right position and	to eject 'worse'
	  servers from the viewlist.

2005-06-02 20:45  tomaz

	* gl_draw.c, lhfont.h: Updated the embedded font to contain the 2
	  top rows of signs/chars/thingies. Also made the coloring of it to
	  better match the original quake conchar.

2005-06-02 13:42  havoc

	* cl_screen.c, gl_draw.c: fix some potential buffer overflows

2005-06-02 11:51  havoc

	* image.c: fix a stack smash possibility in loadimagepixels

2005-06-02 11:02  havoc

	* model_alias.c: fix two severe geometry bugs in the zym loader

2005-06-01 21:21  black

	* host.c, menu.c, mvm_cmds.c, progsvm.h, prvm_edict.c, prvm_exec.c,
	  quakedef.h, server.h: -Added Host_AbortCurrentFrame to hide the
	  longjump and make it usable by  the VM error functions.  -Moved
	  the static variables of Host_Error into the function body.
	  -Changed the definition of error_cmd to be called instead of
	  Host_Error,  so the VM control code is in full control of the
	  error processing.  -Added MP_Error to the menu, so a menu crash
	  wont shutdown the server anymore.  -Fixed an annying bug caused
	  by a typo, that crashes Nexuiz if you query for  a string in the
	  serverlist.  -PRVM_Crash resets the prog pointer now.
	  -PRVM_Begin use Con_Printf again (but PRVM_DEBUGPRSTACK has been
	  disabled again).

2005-06-01 10:38  havoc

	* vid_sdl.c: enable unicode and keyrepeat every time a video mode
	  is initialized, this seems to fix the bug where typing stops
	  working after a vid_restart

2005-06-01 10:37  havoc

	* client.h: shortened movement queue back to 64 items to prevent a
	  runaway loop (falling behind and not being able to run the
	  collisions fast enough) in Nexuiz maps on my machine

2005-06-01 06:03  havoc

	* host_cmd.c: fix some crashes with server commands (kick, view*
	  commands)

2005-06-01 02:55  havoc

	* sys_shared.c: less confusing messages from Sys_LoadLibrary

2005-06-01 02:05  havoc

	* sys_shared.c: it helps to mangle the correct string...

2005-06-01 01:59  havoc

	* sys_shared.c: fix the library search code (replaced / with 0,
	  should've kept it and replaced the next character)

2005-06-01 01:48  havoc

	* sys_shared.c: made Sys_LoadLibrary search in the executable path
	  if the normal load fails (this should help on Mac OSX)

2005-06-01 00:35  havoc

	* model_brush.c: fixed Mod_Q3BSP_LoadPlanes to use LittleFloat
	  instead of LittleLong

2005-06-01 00:00  havoc

	* console.c: print to console before printing to terminal (which
	  needs mangled characters), why was this backwards?

2005-05-31 01:10  havoc

	* Darkplaces.app/Contents/: Info.plist, PkgInfo,
	  Resources/._Darkplaces.icns, Resources/Darkplaces.icns,
	  Resources/English.lproj/InfoPlist.strings: .app directory for Mac
	  OSX builds

2005-05-31 01:09  havoc

	* host_cmd.c: don't echo player messages if not a dedicated server
	  (as it produces double echoes)

2005-05-31 00:34  havoc

	* fs.c: pick apart com_argv[0] to find basedir in Mac OSX when
	  running from a .app package

2005-05-30 23:58  havoc

	* fs.c: try to detect a .app package in MacOSX and use a basedir
	  outside the .app

2005-05-30 23:10  havoc

	* host_cmd.c: reenabled echoing of player messages to server
	  console (why were they disabled??)

2005-05-30 12:31  havoc

	* keys.c: rewrote character insertion/replacement in console
	  commandline, fixing all known bugs with it and reducing code

2005-05-30 10:38  havoc

	* cl_main.c, snd_main.c: made bmodel trails (if anyone ever dares
	  to try them) come from the center of the bmodel, this also
	  cleaned up the sound code (and fixed a weird bug with a sound
	  played in the same frame as an entity is removed)

2005-05-30 10:37  havoc

	* darkplaces-dedicated.dsp, darkplaces-sdl.dsp, darkplaces.dsp:
	  updated dsp files from Willis

2005-05-30 10:36  havoc

	* cl_parse.c: disable some effect sounds in nexuiz

2005-05-30 08:42  havoc

	* cl_main.c: ignore RENDER_VIEWMODEL if tagentity is set

2005-05-30 00:48  havoc

	* sv_main.c: default protocol changed to DP7

2005-05-30 00:48  havoc

	* gl_rmain.c, r_shadow.c: fixed EF_NODEPTHTEST support on
	  q1bsp/q3bsp/models

2005-05-30 00:47  havoc

	* cl_input.c: disabled cl_movement when in intermission

2005-05-30 00:31  havoc

	* todo: 361

2005-05-30 00:28  havoc

	* pr_cmds.c, svvm_cmds.c: added DP_QUAKE3_MAP extension

2005-05-29 23:29  havoc

	* sv_phys.c: disable h2ohit.wav in GAME_NEXUIZ

2005-05-29 15:11  black

	* sv_main.c: Added back pr_checkextension.

2005-05-29 14:51  black

	* host.c, host_cmd.c: Quick fix for the "0 not loaded" bug (error
	  on trying to connect to a server).

2005-05-29 08:17  havoc

	* sv_user.c: fix bug causing impulses to often be lost

2005-05-29 06:58  havoc

	* makefile.inc, prvm_edict.c, sv_main.c: fixed makefile (it is not
	  possible to comment out lines with \ at the end) fixed two
	  warnings

2005-05-27 17:43  black

	* cl_collision.c, gl_rmain.c, host.c, host_cmd.c, makefile.inc,
	  menu.c, mvm_cmds.c, netconn.c, pr_cmds.c, pr_edict.c, pr_exec.c,
	  pr_execprogram.h, progs.h, progsvm.h, protocol.c, prvm_cmds.c,
	  prvm_cmds.h, prvm_edict.c, prvm_exec.c, prvm_execprogram.h,
	  quakedef.h, server.h, sv_main.c, sv_move.c, sv_phys.c, sv_user.c,
	  svvm_cmds.c, world.c, world.h: -CVS:
	  ----------------------------------------------------------------------
	  -Merged the old VM into the new one. The pr_* files are mess
	  right now and  will be removed as soon as they are not needed as
	  semi-reference (to trace  bugs) -There is a certain risk that the
	  server could crash now and then since some  parts of the code can
	  only be debugged (- checking them by looking at the code  would
	  be quite tedious to put it nicely) -Changed all references to the
	  old VM to point to the new VM (also hopefully  all todo items)
	  -Im working on a cleanup for the SV_VM_Begin/End mess.

2005-05-25 11:25  tomaz

	* darkplaces.dsp: Way to tired... Fixed all 3 project files to
	  include mvm_cmds.c and made sure all used headers are in the
	  header section.

2005-05-25 11:24  tomaz

	* darkplaces-dedicated.dsp, darkplaces-sdl.dsp: darkplaces.dsp

2005-05-25 11:07  black

	* progsvm.h, prvm_edict.c: -LoadProgs now expects to be called
	  after InitProg, so it wont do any  unnecessary clean-ups.

2005-05-25 10:55  havoc

	* darkplaces.dsp: patch from Willis to add mvm_cmds.c

2005-05-25 10:26  havoc

	* cl_input.c: don't set cl.movement true if cl_movement cvar is off

2005-05-25 10:04  havoc

	* protocol.c: fix bug in last commit (msg->, not buf.)

2005-05-25 09:57  havoc

	* protocol.c: fix an overflow without allowoverflow set error in
	  EntityFrame5 sending of stats

2005-05-25 09:25  havoc

	* sv_main.c: default to "DP6" protocol (not "DARKPLACES6")

2005-05-25 09:21  havoc

	* model_alias.c: zym models now support TraceBox calls

2005-05-25 09:17  havoc

	* host.c, host_cmd.c, server.h, sv_main.c: fix bug with
	  ClientDisconnect not being called if a client drops between
	  "spawn" and "begin" commands, now it is reliably called

2005-05-25 02:05  havoc

	* prvm_cmds.h: added newline at end of file to hush a gcc warning

2005-05-25 02:00  havoc

	* makefile.inc: added mvm_cmds.o

2005-05-25 01:58  havoc

	* common.h, netconn.c, protocol.c: reordered the protocolversion_t
	  values to have preferred protocols first changed client connect
	  message to list all supported protocols shortened
	  PROTOCOL_DARKPLACES* names to "DP1" and such to make connect
	  message shorter

2005-05-25 00:30  black

	* mvm_cmds.c, progsvm.h, prvm_cmds.c, prvm_cmds.h, prvm_edict.c,
	  prvm_execprogram.h: -Split prvm_cmds.c into prvm_cmds.c,
	  prvm_cmds.h and mvm_cmds.c (clvm_cmds.c  and svm_cmds.c will
	  perhaps be added soon) -Added another union to prvm_edict_s to
	  have different pointers to the  edict fields.  -Changed the
	  naming of some fields in prvm_edict_s (longer names instead of
	  single letter ones) -Changed PRVM_LoadProgs to only reset the CMD
	  system if it has be initialized  before.

2005-05-25 00:04  havoc

	* sv_main.c: default to DARKPLACES6 protocol (somehow this was not
	  showing up in my diffs)

2005-05-24 23:53  havoc

	* cl_input.c: added onground clearing before each move so that
	  going down slopes doesn't resemble a Road Runner cartoon

2005-05-24 23:37  havoc

	* cl_input.c, cl_parse.c, client.h, common.c, common.h, host.c,
	  host_cmd.c, netconn.h, progs.h, protocol.c, protocol.h, server.h,
	  sv_main.c, sv_phys.c, sv_user.c: rewrote protocol version system
	  (including splitting PROTOCOL_QUAKE into PROTOCOL_QUAKE,
	  PROTOCOL_QUAKEDP, and PROTOCOL_NEHAHRAMOVIE) made server able to
	  host PROTOCOL_NEHAHRAMOVIE protocol for completeness added
	  PROTOCOL_DARKPLACES7 protocol (still in development, not enabled
	  by default) which allows players to use QW-style movement
	  messages (makes prediction rock solid but has speedcheat/lagaport
	  potential)

2005-05-24 21:04  black

	* netconn.c: -Now netconn also accepts infoRespones from LAN
	  servers when there is no  master server around _

2005-05-24 00:29  havoc

	* netconn.c: NetConn_ReceivedMessage now verifies that the packet's
	  internal length value matches the data length

2005-05-24 00:11  black

	* netconn.c: -Fix checking the length before knowing its actual
	  value(??)

2005-05-23 16:07  black

	* netconn.c: -Fixed a possible buffer overflow bug in
	  NetConn_ReceivedMessage (thanks Spike!)

2005-05-23 14:36  molivier

	* vid_glx.c, vid_wgl.c: vid_usemouse doesn't need to be a global
	  variable

2005-05-22 00:25  black

	* progsvm.h: -Added an comment ('[INIT]') to all fields of vm_prog
	  that can/should be  initialized after calling PRVM_InitProg.

2005-05-20 21:20  black

	* pr_comp.h, pr_exec.c, pr_execprogram.h, prvm_exec.c,
	  prvm_execprogram.h: -Added the callcount field to the mfunction_t
	  structure.  -Both vms now record how often a function has been
	  called and the profile cmd  now outputs the callcount with the
	  other information.

2005-05-20 08:33  havoc

	* client.h, sv_user.c: removed unused applytime field from
	  usercmd_t

2005-05-20 08:05  havoc

	* cl_input.c, client.h: cleaned up prediction code somewhat, no
	  longer uses times for much (instead storing frametimes)

2005-05-20 08:04  havoc

	* gl_rmain.c: slight cleanup (complete removal) of the "base"
	  variable in surface rendering

2005-05-19 23:20  havoc

	* netconn.c: changed default heartbeat_period to 120 seconds so
	  that usually two packets come in before the 5 minute timeout,
	  this should help with packet loss

2005-05-19 20:42  havoc

	* protocol.c: changed EntityFrame5_ExpandEdicts call from using
	  sv.num_edicts to sv.max_edicts to fix a crash

2005-05-19 00:43  havoc

	* protocol.c: fix lingering tracers in nexuiz (among other possible
	  problems)

2005-05-18 08:39  havoc

	* gl_backend.c: fixed r_showtris bug (individual state changes were
	  not being ignored in showtris pass

2005-05-18 08:38  havoc

	* cl_input.c: added onground tracking to cl_movement code, instead
	  of checking constantly (which caused unintended double
	  jumping/strafe jumping)

2005-05-18 06:24  havoc

	* cl_input.c: fix a severe bug with viewangles in cl_movement mode

2005-05-18 06:08  havoc

	* cl_main.c: fix interpolation of cl_movement

2005-05-16 17:51  black

	* prvm_cmds.c: -Fixed some bugs in the altstr functions, now they
	  should work 1:1 like the  scmenu's ones

2005-05-16 07:04  havoc

	* client.h, host.c, server.h, sv_phys.c, sv_user.c: split
	  SV_ReadClientMove into two functions, SV_ReadClientMove and
	  SV_ApplyClientMove merged away SV_RunClients (part of its code
	  has been moved to SV_Physics)

2005-05-16 05:15  havoc

	* sv_phys.c: cleaned up suspendedinairflag a bit

2005-05-16 05:14  havoc

	* netconn.c, server.h, sv_main.c: removed deadsocket field from
	  server client struct, changed connect handling to resend the
	  serverinfo, but then disabled the reconnect handling entirely (so
	  you can't reclaim your ghost)

2005-05-16 05:11  havoc

	* snd_main.c: added a commented out Con_Printf for debugging
	  spatialization

2005-05-16 05:08  havoc

	* cl_main.c, host.c: fix bug that rotated all sounds 90 degrees to
	  the right in Nexuiz (because it has seriously messed up player
	  models)

2005-05-15 22:34  havoc

	* r_shadow.c: changed matrix_attenuation declarations to not be
	  static (since they are externed in the header) fixed some
	  signedness warnings

2005-05-15 20:57  havoc

	* netconn.c: disabled some of the server client connect code that
	  may be causing problems

2005-05-14 08:36  havoc

	* model_brush.c: fix a crash with getlighting builtin

2005-05-14 08:35  havoc

	* model_alias.c: fix a crash with mdl skingroups

2005-05-14 08:32  havoc

	* cl_parse.c: an extra Mem_CheckSentinelsGlobal at start of
	  Serverinfo parsing

2005-05-14 07:39  havoc

	* todo: 366

2005-05-14 07:38  havoc

	* r_light.c: added a couple checks to hopefully fix a lit sprite
	  dlight problem (an organe dlight causing a sprite to turn blue
	  suddenly) reported by Cheapy

2005-05-14 07:25  havoc

	* gl_rsurf.c: fixed r_drawcollisionbrushes 2

2005-05-14 07:17  havoc

	* model_brush.c: fix a crash when loading q3 maps with flares

2005-05-14 07:05  havoc

	* gl_backend.c, gl_rmain.c, r_shadow.c, vid_shared.c: gl_combine
	  cvar is no longer saved gl_combine cvar is no longer forced off
	  if r_textureunits is less than 2

2005-05-14 05:56  havoc

	* portals.c: fix portal lighting in a single cluster map (box map)

2005-05-14 05:47  havoc

	* gl_rsurf.c: fixed rtlighting on colormap capable skins
	  implemented colormapped rtlighting on models

2005-05-14 05:25  havoc

	* gl_rmain.c: fixed r_shadow_realtime_world_lightmap support in
	  gl_combine 1 mode fixed animated q1bsp texture support

2005-05-14 04:11  havoc

	* cl_particles.c: fixed snow fluttering

2005-05-14 04:09  havoc

	* cgamevm.c: remove an unneeded cast

2005-05-14 03:59  havoc

	* pr_edict.c, prvm_edict.c: fix some warnings

2005-05-14 01:49  havoc

	* model_shared.c: use Con_Printf instead of Host_Error when an
	  unknown model format is encountered

2005-05-14 01:47  havoc

	* model_brush.c: only load .lit file if its file size matches 8 +
	  lump->filelen * 3

2005-05-14 01:41  havoc

	* cl_input.c, cl_screen.c, cl_video.c, console.c, gl_backend.c,
	  gl_draw.c, gl_rmain.c, keys.c, menu.c, prvm_cmds.c,
	  r_crosshairs.c, r_shadow.c, sbar.c, vid.h, vid_glx.c, vid_null.c,
	  vid_sdl.c, vid_shared.c, vid_wgl.c: replaced all references to
	  vid.conwidth and vid.conheight with vid_conwidth.integer and
	  vid_conheight.integer replaced all references to
	  vid.realx/vid.realy with 0 replaced all references to
	  vid.realwidth and vid.realheight with vid.width and vid.height
	  replaced current_vid_* variables with vid. fields (vid.width,
	  vid.height, vid.bitsperpixel, vid.fullscreen) vid_glx.c: replaced
	  scr_width/height with vid.width/height vid_wgl.c: replaced
	  window_center_x/y with calculations as needed, and replaced
	  window_width/height with vid.width/height, and some other minor
	  cleanups removed VID_GetWindowSize function

2005-05-14 01:10  havoc

	* cl_input.c, client.h, vid_glx.c, vid_sdl.c, vid_wgl.c: more clean
	  up of IN_Activate, added cl_ignoremousemove to merge some code

2005-05-14 00:03  havoc

	* cl_screen.c, gl_backend.c, gl_backend.h: corrected envmap saving
	  for ft/rt/bk/lf/up/dn layout (px/py/nx/ny/pz/nz layout already
	  worked fine) and disabled gamma correction on envmap saves

2005-05-13 23:30  havoc

	* model_alias.c: fix Mod_BuildAliasSkinsFromSkinFiles to work with
	  the new skin layout, this should fix md3 skin file crashes

2005-05-13 23:27  havoc

	* gl_rmain.c: fix a warning

2005-05-13 23:27  havoc

	* sbar.c: GAME_NEXUIZ no longer loads a number of gfx/ pics that it
	  does not use

2005-05-13 21:41  havoc

	* cl_screen.c, cl_screen.h, cl_video.c, cl_video.h, common.c,
	  common.h, draw.h, gl_draw.c, host.c, host_cmd.c, menu.c,
	  pr_cmds.c, pr_edict.c, progs.h, progsvm.h, prvm_cmds.c,
	  prvm_edict.c, server.h, sv_main.c, sv_user.c, wad.c, wad.h:
	  upgraded both QuakeC VMs to use a table of negative string
	  indices for all dynamic strings, this should make everything work
	  on 64bit systems

2005-05-13 05:24  havoc

	* gl_models.c, gl_rmain.c, gl_rsurf.c, model_alias.c,
	  model_shared.h: finished model/map rendering merge, model
	  renderer has been completely removed model_t num_textures now
	  lies a bit to keep things simple, it equals num_surfaces on
	  models, even if there are multiple skins, in data_textures these
	  extra textures really do exist even though num_textures does not
	  count them (this was done so that UpdateAllTextureInfo won't
	  crash trying to index later skins on the later skins themselves)

2005-05-12 23:39  havoc

	* todo: 375 (-1)

2005-05-12 22:44  havoc

	* todo: labeled todo items (at least ones not done yet) with a
	  category before the program name, to prioritize bugfixes over
	  changes and features and so on within a difficulty rating cleaned
	  out a lot of stale or duplicate todo items 376 (-20)

2005-05-12 21:00  havoc

	* todo: 396

2005-05-12 20:55  havoc

	* host.c: clear sounds before shutting down

2005-05-12 19:53  havoc

	* keys.c: changed changed commandline history behavior to be more
	  sane

2005-05-11 22:26  black

	* prvm_cmds.c: -Changed VM_precache_pic to check CachePic for
	  successful loading of the pictures.	(The old check hasnt worked
	  because CachePic always returns a valid pic pointer.)

2005-05-11 20:22  havoc

	* gl_models.c, gl_rmain.c, gl_rsurf.c, model_alias.c,
	  model_alias.h, model_brush.c, model_brush.h, model_shared.c,
	  model_shared.h, portals.c, pr_cmds.c, prvm_cmds.c, r_shadow.c,
	  render.h: the merging of alias and bsp model rendering begins...
	  purely cosmetic changes in this first step merged model_alias_t
	  into model_t and removed alias prefixes from those fields merged
	  model_brush_t surface and texture stuff into model_t
	  (num_surfaces, num_textures, etc) made alias model code use
	  model_t data_surfaces instead of alias meshes

2005-05-11 20:19  havoc

	* sv_phys.c: some changes and cleanups to SV_FlyMove, turned off
	  sv_newflymove by default (it just doesn't work right)

2005-05-11 20:19  havoc

	* mathlib.h: added VectorReflect

2005-05-11 13:12  molivier

	* gl_rmain.c: Allocated temporary big buffers in
	  R_BuildDetailTextures instead of having them on the stack (it
	  caused some systems to crash)

2005-05-10 20:39  havoc

	* pr_cmds.c, server.h, sv_main.c: added
	  sv_gameplayfix_blowupfallenzombies and
	  sv_gameplayfix_findradiusdistancetobox cvars (to allow these
	  changes to be disabled)

2005-05-10 02:30  havoc

	* image.c: fix inverted normalmaps produced from bumpmaps (directly
	  loaded normalmaps are fine)

2005-05-10 01:52  havoc

	* menu.c: patch from Willis for some map name changes in
	  Transfusion

2005-05-10 00:51  havoc

	* r_explosion.c: changed R_NewExplosion check for dead explosions
	  to check time instead of alpha (may fix a bug)

2005-05-09 22:43  havoc

	* todo: 389 (-2)

2005-05-09 22:26  havoc

	* vid_glx.c: fix VID_Shutdown ungrabs

2005-05-09 22:12  havoc

	* todo: 391 (-2)

2005-05-09 20:40  havoc

	* netconn.c: changed blaze.mindphukd.org back to an ip address
	  because the hostname isn't resolving but the ip works fine

2005-05-09 17:56  havoc

	* cl_input.c, client.h, host.c, input.h, prvm_cmds.c, vid_glx.c,
	  vid_null.c, vid_sdl.c, vid_shared.c, vid_wgl.c: major cleanup of
	  input code - CL_Move replaces most of IN_Move, IN_Commands, many
	  internal platform functions refactored to clean up platform code

2005-05-09 17:51  havoc

	* glquake.h: remove qwgl externs, as they are not used outside
	  vid_wgl.c

2005-05-09 17:48  havoc

	* r_shadow.c: fix a problem with stenciltwoside introduced by
	  recent changes

2005-05-09 15:03  havoc

	* cd_shared.c, cl_video.c, host.c, menu.c: fixed problems in the
	  Host_Init Cbuf_InsertText stuff (by changing it to Cbuf_AddText,
	  and some other cleanups) added Host_StartVideo to a few more
	  places

2005-05-09 14:58  havoc

	* cvar.c: changed 3 occurences of very if (developer.integer)
	  Con_Print code to Con_DPrint

2005-05-08 21:57  havoc

	* lhnet.c, netconn.c: implemented caching of DNS names in lhnet.c
	  changed sv_masterextra* servers back to DNS names (but kept IP
	  addresses as comments, note the dpmaster.deathmask.net IP has
	  changed)

2005-05-08 20:32  havoc

	* snd_main.c: S_LocalSound now uses ATTN_NONE, so menu sounds and
	  such will no longer be centered at world origin

2005-05-08 20:28  havoc

	* r_shadow.c: rewrote the notes on the Creative patent after
	  re-reading it fixed my incomplete StencilOp changes (reverted
	  back to the way it was before)

2005-05-08 15:22  havoc

	* r_shadow.c: revised a number of terminology notes at the
	  beginning of r_shadow.c, including notes about the Creative Labs
	  patent on the Carmack's Reverse technique

2005-05-08 14:59  havoc

	* gl_rmain.c, r_shadow.c, r_shadow.h, render.h: added rmesh_t and
	  R_Mesh_AddVertex3f, R_Mesh_AddPolygon3f,
	  R_Mesh_AddBrushMeshFromPlanes functions R_Shadow_ScissorForBBox
	  now uses R_Mesh_AddBrushMeshFromPlanes function to get an exact
	  clipped box-brush vertex set for calculating scissor area, this
	  should reduce the scissor area used in some cases compared to the
	  old hacky method added nearclip plane to frustum[] array (only
	  used by R_Shadow_ScissorForBBox)

2005-05-08 12:42  havoc

	* sys_linux.c, sys_sdl.c, vid_glx.c, vid_null.c: various
	  printf/fprintf calls are now Con_Printf, and some other minor
	  cleanups

2005-05-08 12:42  havoc

	* pr_edict.c, progs.h: PR_Alloc/Free/FreeAll now report
	  filename/fileline of their caller in the Mem_ calls, for better
	  readability of "memlist all" reports

2005-05-07 20:07  havoc

	* vid_glx.c: rearranged mouse grabbing rules again to force
	  grabbing when fullscreen (for some reason it isn't the active
	  window)

2005-05-07 19:53  havoc

	* portals.c: fix a crash in portal clipping code (forgot to include
	  polygon.h)

2005-05-07 16:51  havoc

	* portals.c: portal code now uses Polygon_DivideF instead of its
	  own polygon clipper

2005-05-06 22:03  havoc

	* gl_models.c, gl_rmain.c: minor rearrangement of Render_Init

2005-05-06 22:01  havoc

	* cmd.c: hush "Unknown command" warnings during startup

2005-05-06 22:00  havoc

	* host.c, vid.h, vid_shared.c: renamed VID_Open to VID_Start,
	  inlined VID_Close ito eliminate the only call to it

2005-05-06 21:58  havoc

	* palette.c: reorganized Palette_Init code

2005-05-06 21:43  havoc

	* cd_shared.c, cl_video.c: playvideo and cd loop/cd play commands
	  now call Host_StartVideo (this fixes a crash and missing menu
	  music respectively in Nexuiz)

2005-05-06 14:31  havoc

	* sys_win.c: fix a misplaced variable

2005-05-06 13:37  havoc

	* cl_screen.c, cmd.c, cmd.h, common.c, console.c, console.h,
	  cvar.c, fs.c, host.c, quakedef.h, sys.h, sys_linux.c, sys_sdl.c,
	  sys_shared.c, sys_win.c, vid.h, vid_glx.c, vid_sdl.c,
	  vid_shared.c, vid_wgl.c: changed Host_Init to execute configs
	  only once cleaned up Host_Init (and related functions like
	  Con_Init, COM_Init, Cbuf_Init, etc) a great deal now uses
	  host_framecount >= 3 checks instead of host_loopactive or
	  host_initialized checks, this should fix any problems with
	  crashes erasing config.cfg VID_Open and friends are now called
	  from Host_StartVideo which is called by SCR_BeginLoadingPlaque
	  (such as by SV_SpawnServer) as well as the end of Host_Init, this
	  only calls them the first time it is called, so it can be called
	  during config parsing (such as +map start on the commandline)
	  moved sys_usetimegettime and dedicated server console opening in
	  sys_wgl.c into Sys_InitConsole and Sys_Init_Commands functions
	  called by Host_Init merged Sys_Shared_EarlyInit and
	  Sys_Shared_LateInit into Host_Init got rid of sys_usetimegettime
	  (windows-only) cvar in sys_sdl.c changed type of a number of
	  vid_* variables from int to qboolean renamed vidmode_active to
	  vid_isfullscreen in vid_glx.c for more code consistency fixed a
	  bug in vid_glx.c that made it grab the mouse/keyboard even when
	  it was not the active window no longer grabs mouse while playing
	  demos in a window

2005-05-06 13:28  havoc

	* gl_rmain.c, gl_rsurf.c, model_brush.c, model_shared.c,
	  model_shared.h, render.h: moved mod_shared.c detail texture and
	  distortion texture stuff to gl_rmain.c (renamed mod_shared_* to
	  r_texture_*) got rid of unused mod_q1bsp_novis array moved
	  Mod_Q1BSP_Collision_Init into the boxhull code (which isn't even
	  used anyway) made r_restart reload models (as was intended) by
	  making Mod_UnloadModel preserve the ->use field

2005-05-06 13:27  havoc

	* zone.c: changed Mem_FreePool and Mem_EmptyPool to report their
	  caller's filename/fileline when Mem_Free detects an error

2005-05-06 10:58  havoc

	* cl_main.c: attachments now inherit RENDER_VIEWMODEL from their
	  parent (they already inherited RENDER_EXTERIORMODEL)

2005-05-06 08:09  havoc

	* r_modules.c: removed a clear of names in the render modules init
	  code, this allows it to be called AFTER some modules are
	  registered (for a minor cleanup of the Host_Init code)

2005-05-06 06:29  havoc

	* makefile.inc: enabled SDL builds by default (in addition to cl
	  and dedicated)

2005-05-06 02:36  havoc

	* cl_input.c, client.h, view.c: added cl.movement_velocity to allow
	  view bobbing to match up with cl_movement fixed some bugs in
	  cl_movement timing, it now applies input to the next move not the
	  current one, making it work properly (assuming
	  cl_movement_latency is exact)

2005-05-05 16:24  havoc

	* model_alias.c, model_brush.c: hush some texture loading warnings
	  in dedicated servers (thanks to Biomass for reporting this)

2005-05-05 14:52  havoc

	* snd_wav.c: added some commented out code that can make a log of
	  stereo wav sounds loaded

2005-05-05 14:49  havoc

	* lhnet.c: cl_netlocalping now adds only half as much lag, so that
	  the number specified is roughly what it will achieve

2005-05-05 14:48  black

	* cmd.c, cvar.c, netconn.c, vid_sdl.c: -Changed the SDL window icon
	  back to DP's icon.  -Cmds, Cvars and Aliases are now inserted at
	  the right alphanumerical  position on creation.  -Fixed a bug in
	  the serverlist which caused it to not mask entries properly.

2005-05-04 22:14  havoc

	* cl_input.c: changed cl_movement_latency to be in milliseconds
	  rather than seconds (less confusing because of ping being
	  milliseconds) added code to remove 'impossibly far into the
	  future' movement queue items (useful if latency is set to a high
	  value initially and then lower, this will remove the stale high
	  latency items)

2005-05-04 16:07  havoc

	* menu.c: moved a Cvar_RegisterVariable call to ensure that it
	  happens before config parsing

2005-05-04 12:26  havoc

	* pr_cmds.c: fixed a stupid bug in PF_te_customflash that made it
	  send lifetime as /256 (should've been *256)

2005-05-04 11:55  havoc

	* cl_parse.c: forgot to add 1 to radius byte in parsing
	  TE_CUSTOMFLASH, probably not noticable though

2005-05-04 11:51  havoc

	* cl_screen.c, gl_backend.c, sbar.c: removed .lmp suffix from a
	  number of DrawQ_Pic calls, which should cure the gfx/net.lmp not
	  found warnings

2005-05-03 23:49  havoc

	* todo: 393 (+53)

2005-05-03 20: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: cleaned up
	  portions of rtlighting system, allowing GLSL lighting to use very
	  few state changes, for a 6% speed gain on my system

2005-05-03 20:30  havoc

	* r_shadow.c: fix a bug that made rtlighting crash (thanks to Vic
	  for reporting this)

2005-05-03 12:38  havoc

	* gl_backend.c, glquake.h: added code for enabling GL_LINE_SMOOTH
	  (antialiased lines) in r_showtris mode, but disabled because it
	  wasn't a speed gain

2005-05-03 12:36  havoc

	* cl_screen.c: don't show extra time reports in r_speeds report
	  when using r_showtris 1

2005-05-03 07:06  havoc

	* gl_rmain.c, image.c, render.h: added developer_texturelogging
	  R_MarkEntities now updates r_refdef.worldentity visframe as well
	  (for more internal consistency)

2005-05-01 14:26  havoc

	* r_shadow.c: a bit of cleanup

2005-05-01 14:14  havoc

	* gl_rmain.c, r_shadow.c, render.h: moved r_shadow_ white and
	  normal cubemaps to r_texture_

2005-04-30 09:14  havoc

	* cgamevm.c, cl_collision.c, cl_collision.h, cl_input.c, cl_main.c,
	  cl_parse.c, cl_particles.c, client.h, model_shared.c, netconn.c,
	  protocol.c, r_crosshairs.c, r_explosion.c, r_light.c, r_shadow.c,
	  view.c: relocated the CL_SendMove call to put it at the end of
	  network parsing (and only called if there was an svc_time message
	  in this packet), this should greatly improve consistency of ping
	  times and input sending (which was sometimes falling way behind
	  with lag), no longer uses sys_ticrate to control input frequency
	  changed CL_TraceLine to CL_TraceBox and made it return a trace_t
	  worked on CL_ClientMovement function for clientside movement
	  simulation (not working yet), this has many cl_movement* cvars
	  associated with it which will be updated by the server at some
	  point in the future added (currently unused and not updated)
	  cl_gravity and cl_slowmo cvars, which the server will be setting
	  at some point in the future

2005-04-29 04:40  havoc

	* console.c: moved some Con_PrintToHistory code into Con_Print and
	  reenabled talk.wav in GAME_NEXUIZ

2005-04-24 09:00  havoc

	* portals.c: removed an unused function I thought I removed in the
	  previous commit

2005-04-24 08:19  havoc

	* portals.c: slight cleanup of surface clipping code (got rid of a
	  rather redundent function) major bugfix to surface portal
	  clipping, lights should hit all the right surfaces now

2005-04-24 07:24  havoc

	* r_light.c, r_shadow.c: don't apply dlights to opaque models (this
	  was happening when flashblend is on) default dlight shadowing on

2005-04-23 09:38  havoc

	* cl_input.c: fixed CL_SendMove packet rate limiting to not have a
	  heartattack when going from singleplayer to multiplayer (this was
	  causing the player to be stuck in place for a very long time)

2005-04-21 03:26  havoc

	* cl_screen.c, host.c: added cl_capturevideo_sound (defaulted to 0)
	  to allow enabling/disabling sound saving, with sound disabled you
	  can save videos at a framerate your machine can't maintain (no
	  sound sync to worry about)

2005-04-20 13: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 10: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-20 08: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-20 07: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-20 03: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 10:00  havoc

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

2005-04-18 23: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 23: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 22:50  havoc

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

2005-04-18 08:48  havoc

	* r_crosshairs.c: changed crosshair_static default to 1

2005-04-18 08:47  havoc

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

2005-04-18 04:21  havoc

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

2005-04-17 23:15  havoc

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

2005-04-17 11: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 11: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 10: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 10:33  havoc

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

2005-04-17 10:32  havoc

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

2005-04-16 23:30  havoc

	* protocol.c: fixed a stupid bug in Entityframe5_ExpandEdicts

2005-04-16 11: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 10: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 10:30  havoc

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

2005-04-15 10:21  havoc

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

2005-04-15 10: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 22: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 10: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 21: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 21:06  havoc

	* world.c: remove unused variable

2005-04-11 18:53  black

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

2005-04-11 04:27  havoc

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

2005-04-11 04: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 18:53  havoc

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

2005-04-10 17:46  havoc

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

2005-04-10 17: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 17: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 16:01  havoc

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

2005-04-09 22:11  black

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

2005-04-07 11:59  molivier

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

2005-04-06 22:30  havoc

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

2005-04-06 13: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 12:06  havoc

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

2005-04-06 00:23  havoc

	* snd_main.c: fixed an error case in S_StartSound

2005-04-05 22:28  havoc

	* gl_rsurf.c: fix some crashes with fogged surfaces

2005-04-05 22:01  havoc

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

2005-04-05 20: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 19:31  havoc

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

2005-04-05 13: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 21:33  havoc

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

2005-04-04 20: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 18: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 16: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 15: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 10:26  molivier

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

2005-04-04 07:40  molivier

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

2005-04-03 12: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 10: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 20:25  havoc

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

2005-04-02 19:38  havoc

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

2005-04-02 18:49  havoc

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

2005-04-02 18:20  havoc

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

2005-04-02 18:04  havoc

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

2005-04-02 14:05  black

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

2005-03-31 18:08  molivier

	* todo: Updated a few entries in the todo file

2005-03-31 11:50  havoc

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

2005-03-31 07: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-31 01:23  havoc

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

2005-03-28 14: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 14: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 13: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-28 08: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-28 03:46  havoc

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

2005-03-28 03:43  havoc

	* gl_backend.c: removed an unneeded CHECKGLERROR

2005-03-27 11:15  havoc

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

2005-03-27 10: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 12:35  havoc

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

2005-03-24 15: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 15:48  havoc

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

2005-03-23 08:10  havoc

	* cl_main.c: disabled item bobbing by default

2005-03-23 01: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-23 01: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 21:47  havoc

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

2005-03-21 10:58  havoc

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

2005-03-21 10:57  havoc

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

2005-03-21 10:14  havoc

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

2005-03-21 09: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 09: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-21 05:23  havoc

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

2005-03-21 05:21  havoc

	* gl_backend.c, gl_backend.h: less unsigned

2005-03-21 05:18  havoc

	* gl_backend.c: more unsigned

2005-03-21 05:17  havoc

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

2005-03-21 05:12  havoc

	* gl_backend.c: changed a few things to unsigned

2005-03-21 03: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-21 03: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-21 03:02  havoc

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

2005-03-21 01:52  havoc

	* cl_particles.c: fix PBLEND_MOD in fog

2005-03-19 06: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-19 03:14  havoc

	* fs.c: fix a warning

2005-03-19 03:11  havoc

	* gl_rsurf.c: made detailtextures check r_detailtextures again

2005-03-19 03:10  havoc

	* common.c, common.h: added GAME_THEHUNTED

2005-03-18 03:04  havoc

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

2005-03-18 02: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 19: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 11:17  havoc

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

2005-03-17 08: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-17 08: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 19: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 19:12  havoc

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

2005-03-15 01:12  havoc

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

2005-03-15 01:09  havoc

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

2005-03-14 22: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-12 01: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-12 01:47  havoc

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

2005-03-11 14: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 23: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-10 04:15  havoc

	* fs.c: disabled O_NONBLOCKING flag on win32

2005-03-10 00: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-10 00:41  havoc

	* collision.c: removed some unused code

2005-03-10 00:04  havoc

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

2005-03-10 00:01  havoc

	* collision.c: corrected an error message

2005-03-09 18: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 14: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 14: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 14:03  molivier

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

2005-03-09 01:35  havoc

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

2005-03-09 01: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-09 01:22  havoc

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

2005-03-09 01:22  havoc

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

2005-03-08 18:56  havoc

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

2005-03-08 16: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 16:18  havoc

	* r_shadow.c: fixed a mistake regarding clusterlist

2005-03-08 15: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 15: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 14: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 14:48  havoc

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

2005-03-08 14:16  havoc

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

2005-03-08 14: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 14:05  havoc

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

2005-03-08 13: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-08 03: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-08 02: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-08 02: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-08 02:27  havoc

	* gl_rsurf.c: another C99 lazy variable fixed

2005-03-08 00: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 21: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 14:07  molivier

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

2005-03-06 22: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 21: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 20: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 20:20  havoc

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

2005-03-06 20: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 20: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 18: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 17: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 17: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 16: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 15: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 15: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 15:50  havoc

	* collision.c: removed the commented out RecursiveHullCheckPoint
	  function

2005-03-06 15:49  havoc

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

2005-03-06 15:48  havoc

	* bspfile.h: added SUPERCONTENTS_NODROP

2005-03-06 12:42  havoc

	* gl_rsurf.c: lazy variable declarations strike again

2005-03-06 12:35  havoc

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

2005-03-05 17: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 16: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 11:40  havoc

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

2005-03-03 15:21  havoc

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

2005-03-03 15:20  havoc

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

2005-03-03 15: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 14:45  havoc

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

2005-03-03 13:50  havoc

	* gl_rsurf.c: some optimizations to q3bsp surface rendering

2005-03-03 10:23  havoc

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

2005-03-03 07: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 12:24  havoc

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

2005-03-02 12: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-02 06: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-02 06:36  havoc

	* netconn.c: default sv_public to 1

2005-02-11 23:22  havoc

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

2005-02-11 23:20  havoc

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

2005-02-11 06:38  havoc

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

2005-02-07 18: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 17:52  havoc

	* todo: 342

2005-02-06 17:47  havoc

	* cl_particles.c: rain drops now make rain splashes

2005-02-06 11:21  havoc

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

2005-02-05 21:39  black

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

2005-02-04 14: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 12:50  havoc

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

2005-02-04 12:04  havoc

	* vid_sdl.c: enable key repeat

2005-02-04 11:30  havoc

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

2005-02-04 11:19  havoc

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

2005-02-04 10:54  havoc

	* cl_particles.c: cl_particles_size works again

2005-02-04 10: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 10: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-04 08: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-04 08: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-04 08:18  havoc

	* sbar.c: removed unused variable font_size

2005-02-03 13: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 22:14  black

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

2005-02-02 21:54  black

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

2005-02-02 21:25  black

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

2005-02-02 20: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 10: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-29 03: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 23:15  havoc

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

2005-01-26 23: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 23: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 10:12  havoc

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

2005-01-26 04:39  havoc

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

2005-01-26 04:38  havoc

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

2005-01-26 02: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-26 00: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 21: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 21: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-25 02:32  havoc

	* r_shadow.c: fix stupid typo in GLSL shader

2005-01-25 00: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 23:05  havoc

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

2005-01-24 22: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 22:49  havoc

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

2005-01-24 21: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 19:32  havoc

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

2005-01-23 23:19  havoc

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

2005-01-23 23: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 23: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 23: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-23 07: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-23 07:36  havoc

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

2005-01-21 08:30  havoc

	* vid_shared.c: disable vid_vsync by default

2005-01-21 04:34  havoc

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

2005-01-21 04: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 10: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 11:02  molivier

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

2005-01-18 02:38  havoc

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

2005-01-18 00: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-18 00:17  havoc

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

2005-01-17 23:52  havoc

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

2005-01-17 23:11  havoc

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

2005-01-17 06:35  havoc

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

2005-01-15 03:23  havoc

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

2005-01-15 03: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-15 03: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-15 03:08  havoc

	* r_lightning.c: normalize after the CrossProduct

2005-01-15 02: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-15 00: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 19: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 09:14  havoc

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

2005-01-13 08:06  havoc

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

2005-01-13 08:02  havoc

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

2005-01-13 07:45  havoc

	* snd_main.c: forgot a parameter to S_FreeSfx

2005-01-13 07: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-13 07: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-13 07:32  havoc

	* world.c: bound fractions after trace code

2005-01-13 07:31  havoc

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

2005-01-13 07: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-13 07: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-13 07:21  havoc

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

2005-01-13 07:17  havoc

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

2005-01-13 07:13  havoc

	* gl_backend.c: remove a silly scr_conlines check

2005-01-13 07: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-13 07: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-13 07: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-13 07: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-13 06:58  havoc

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

2005-01-13 06:57  havoc

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

2005-01-13 06: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 15:47  black

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

2005-01-11 15: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 10: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 13: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 13: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 12:52  havoc

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

2005-01-06 14: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 16: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 15:22  molivier

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

2005-01-03 15: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 22: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 20: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 23: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 17:27  black

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

2004-12-27 17: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 16:39  black

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

2004-12-26 00:53  havoc

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

2004-12-23 01: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-23 00: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 19: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 16:43  black

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

2004-12-22 01:12  havoc

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

2004-12-21 23:26  havoc

	* todo: 334

2004-12-21 22:53  black

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

2004-12-21 22: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 17:51  havoc

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

2004-12-21 17:48  havoc

	* collision.c: some cleanup and hopefully improved accuracy

2004-12-20 21:50  havoc

	* sv_main.c: colormod now works

2004-12-20 21:00  havoc

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

2004-12-20 10: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 23: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 15: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-19 03:12  tomaz

	* todo: 332

2004-12-19 03:10  havoc

	* todo: 334

2004-12-19 03:03  tomaz

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

2004-12-19 02:27  tomaz

	* dedicated.dsp: Remove this file

2004-12-19 02: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-19 02:08  tomaz

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

2004-12-19 02:02  havoc

	* vid_wgl.c: fixed misnamed variables

2004-12-19 01:48  havoc

	* cl_demo.c: removed videosync code from timedemo

2004-12-19 01:47  havoc

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

2004-12-19 00: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 22:31  tomaz

	* todo: 338

2004-12-18 22:20  tomaz

	* todo: 338

2004-12-18 22: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 21:18  tomaz

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

2004-12-18 12: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 09:12  molivier

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

2004-12-18 07:40  havoc

	* vid_shared.c: made sensitivity affect cl_prydoncursor

2004-12-18 05:11  havoc

	* todo: 341

2004-12-18 03: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-18 02: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-18 02: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 16: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 15:03  black

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

2004-12-17 14:47  black

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

2004-12-16 18:57  black

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

2004-12-15 10:11  molivier

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

2004-12-14 23:44  havoc

	* todo: 339

2004-12-14 16: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 10:09  molivier

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

2004-12-13 17: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 17: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 16:41  molivier

	* makefile.bsd: Fixed BSD makefile for NetBSD

2004-12-13 16:00  molivier

	* prvm_exec.c: Fixed a warning in MSVC6

2004-12-13 11:40  molivier

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

2004-12-10 19: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 11:55  molivier

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

2004-12-10 11:55  molivier

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

2004-12-08 16:36  molivier

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

2004-12-06 14:32  black

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

2004-12-05 14: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 22: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 17: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 20: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 19:58  havoc

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

2004-12-03 19: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 15: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 09: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-03 06:03  havoc

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

2004-12-02 15: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 10: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-02 00:19  havoc

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

2004-12-02 00: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-02 00:13  havoc

	* sv_user.c: fix a typo

2004-12-01 22: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 22: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 15:03  molivier

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

2004-12-01 15:00  molivier

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

2004-12-01 09:20  molivier

	* todo: 341

2004-12-01 08:59  havoc

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

2004-12-01 08:57  havoc

	* todo: 342

2004-12-01 08: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-12-01 08:40  havoc

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

2004-12-01 08: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-12-01 07:12  havoc

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

2004-12-01 07:07  havoc

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

2004-12-01 06: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-12-01 05: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 21:33  black

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

2004-11-29 21: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 14: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-26 01: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 21:41  havoc

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

2004-11-25 21: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 18:36  havoc

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

2004-11-25 18: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 17: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 17:18  havoc

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

2004-11-25 17:16  havoc

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

2004-11-25 17: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 17:08  havoc

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

2004-11-25 17:07  havoc

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

2004-11-25 10: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-25 02: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 14: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 21:24  havoc

	* host_cmd.c: fixed an uninitialized variable warning

2004-11-22 15: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 11:01  molivier

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

2004-11-21 13: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 19:07  havoc

	* todo: 327

2004-11-20 19: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 12: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 12: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 10: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 13:42  havoc

	* todo: 326

2004-11-18 15:08  molivier

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

2004-11-18 14:03  havoc

	* todo: 326

2004-11-17 17:36  havoc

	* host.c: minimize cpu use when framerate limited

2004-11-17 17: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 17: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 17:31  havoc

	* host_cmd.c: remove the only use of FS_Eof

2004-11-17 16:42  havoc

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

2004-11-17 10:58  havoc

	* todo: 325

2004-11-17 09:40  molivier

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

2004-11-17 09:11  havoc

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

2004-11-17 06:58  havoc

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

2004-11-16 13: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 13: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 13:15  havoc

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

2004-11-16 13:14  havoc

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

2004-11-16 00:09  havoc

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

2004-11-15 14:13  havoc

	* todo: 328 (a lot of new items)

2004-11-15 03:48  havoc

	* cl_main.c: forgot to commit this file

2004-11-15 00: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-15 00:23  havoc

	* server.h: remove unused sv_player extern

2004-11-14 19:34  black

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

2004-11-14 03: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 12: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 12: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-13 00:18  havoc

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

2004-11-12 23: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 23: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 23:09  havoc

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

2004-11-12 23:08  havoc

	* host.c: cleaned up SV_DropClient code a bit

2004-11-12 22: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-10 07:02  havoc

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

2004-11-10 03: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-05 01:21  havoc

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

2004-11-05 01: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 18: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 18:09  havoc

	* makefile.inc: updated cpu optimization choices

2004-11-03 08: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 21:25  havoc

	* todo: 307

2004-10-30 19:12  havoc

	* todo: 308

2004-10-30 15: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 15: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 14:03  havoc

	* pr_cmds.c: added DP_CON_SET and DP_CON_SETA extensions

2004-10-29 16: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 13: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-28 08:38  molivier

	* todo: 303

2004-10-27 20: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 20:21  havoc

	* todo: 304

2004-10-27 20: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 20: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 17: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 16: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 10:30  havoc

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

2004-10-26 10:22  havoc

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

2004-10-26 09: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 09:41  havoc

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

2004-10-26 09: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 18:09  havoc

	* sbar.c: cruft removal

2004-10-25 18:08  havoc

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

2004-10-25 17: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 09:35  havoc

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

2004-10-25 09: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 09:33  havoc

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

2004-10-25 09: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 23:43  tomaz

	* todo: 308

2004-10-23 17: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 12:41  havoc

	* pr_cmds.c: added DP_SV_DROPCLIENT extension

2004-10-23 12: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 11:46  havoc

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

2004-10-23 02: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-23 01:21  tomaz

	* todo: 309

2004-10-22 20:31  tomaz

	* todo: 310

2004-10-22 12: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 10:29  molivier

	* menu.c: Updated Transfusion map list

2004-10-21 19: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 15:30  havoc

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

2004-10-21 11:04  molivier

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

2004-10-21 10: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 15:41  havoc

	* todo: 313

2004-10-20 15:30  havoc

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

2004-10-20 15:29  havoc

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

2004-10-20 15:19  havoc

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

2004-10-20 14: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 13: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 09: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-20 06:16  havoc

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

2004-10-20 04: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 13: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 12: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 11:57  havoc

	* host.c: remove unused variables

2004-10-19 11: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 11:53  havoc

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

2004-10-19 11: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 10: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-19 02:48  havoc

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

2004-10-18 17: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 12:16  havoc

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

2004-10-17 21:48  black

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

2004-10-17 13: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 13:48  havoc

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

2004-10-17 13:40  havoc

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

2004-10-17 13: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 13:16  havoc

	* darkplaces.txt: added VorteX to thanks list

2004-10-17 13:15  havoc

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

2004-10-17 09:42  havoc

	* todo: 314

2004-10-17 04:24  havoc

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

2004-10-16 23:47  havoc

	* gl_rsurf.c: fixed an unused variable warning

2004-10-16 23:34  havoc

	* todo: 315

2004-10-16 23:33  havoc

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

2004-10-16 22:28  havoc

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

2004-10-16 13:58  havoc

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

2004-10-16 13: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 11:56  black

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

2004-10-16 09:00  havoc

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

2004-10-16 08:58  havoc

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

2004-10-16 07:52  havoc

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

2004-10-16 06: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-16 06:49  havoc

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

2004-10-16 06:48  havoc

	* darkplaces.txt: added MoALTz to thanks list

2004-10-16 01:22  havoc

	* host_cmd.c: forgot to give strlcat a size

2004-10-16 01:09  havoc

	* host_cmd.c: added a newline to chat messages

2004-10-15 23:20  havoc

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

2004-10-15 23: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 23: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 22:25  havoc

	* pr_cmds.c: added DP_LITSPRITES extension string

2004-10-15 09:08  havoc

	* todo: 315

2004-10-15 09: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-15 08: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-15 08: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-14 01: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 15:45  molivier

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

2004-10-13 15:42  molivier

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

2004-10-13 09: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 21: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 19: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 20:51  havoc

	* makefile.inc: enabled SDL sound and CD

2004-10-10 20:51  havoc

	* vid_sdl.c: fixed a signed/unsigned warning

2004-10-10 20:50  havoc

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

2004-10-10 05: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 20:30  havoc

	* todo: 315

2004-10-09 04: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-09 03: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 22: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 22:12  havoc

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

2004-10-08 22: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 21: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 18:15  havoc

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

2004-10-08 06: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 20:55  havoc

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

2004-10-07 04:17  havoc

	* todo: 306

2004-10-07 02:48  havoc

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

2004-10-07 02:42  havoc

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

2004-10-06 21: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 21: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 19:10  havoc

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

2004-10-06 02:26  havoc

	* r_sprites.c: sprites now work with EF_NODEPTHTEST

2004-10-05 19:52  havoc

	* gl_rsurf.c: only enable watershader on fullbright water

2004-10-05 19: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 17:22  havoc

	* darkplaces.txt: added commandline options section

2004-10-05 17: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 16: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 23: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 23:28  havoc

	* gl_rsurf.c: fix skybox in hlbsp not rendering

2004-10-04 23: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 22:44  havoc

	* todo: 305

2004-10-04 20:50  havoc

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

2004-10-04 18:43  havoc

	* todo: 304

2004-10-04 16:15  havoc

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

2004-10-04 16: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-04 08:58  molivier

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

2004-10-04 08: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 21:15  havoc

	* todo: 304

2004-10-03 21:08  tomaz

	* todo: 298

2004-10-03 12:27  havoc

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

2004-10-03 12:17  havoc

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

2004-10-02 23:09  havoc

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

2004-10-01 16:07  havoc

	* todo: 298

2004-10-01 16:05  havoc

	* todo: 299

2004-10-01 12:43  havoc

	* todo: 323

2004-10-01 10:39  havoc

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

2004-10-01 09: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 19:23  havoc

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

2004-09-30 18: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 12: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 12: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 11: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-28 08:59  havoc

	* todo: 324

2004-09-28 08: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-28 07:34  havoc

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

2004-09-28 00:03  tomaz

	* todo: 325

2004-09-28 00:00  tomaz

	* todo: 326

2004-09-27 15:41  havoc

	* todo: 327

2004-09-27 15: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 13:31  havoc

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

2004-09-27 09:09  havoc

	* todo: 325

2004-09-27 08:12  tomaz

	* todo: 326

2004-09-27 03:29  havoc

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

2004-09-27 01:10  tomaz

	* todo: 329

2004-09-26 16:02  havoc

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

2004-09-26 15:47  havoc

	* todo: 336

2004-09-26 15:42  havoc

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

2004-09-26 15:23  havoc

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

2004-09-26 15: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 14: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 14:14  havoc

	* sv_main.c: removed some very stale dead code

2004-09-26 13:25  tomaz

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

2004-09-26 06:06  havoc

	* gl_models.c: remove unused variable generatenormals

2004-09-26 04: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-23 03: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 11: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 11: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 09:03  havoc

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

2004-09-21 05:14  havoc

	* todo: 340

2004-09-20 23:42  havoc

	* todo: 341

2004-09-20 07:51  havoc

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

2004-09-20 06:45  havoc

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

2004-09-18 23:25  tomaz

	* todo: 339

2004-09-18 22:46  havoc

	* todo: 340

2004-09-18 19:53  tomaz

	* todo: 341

2004-09-18 19:48  havoc

	* todo: 343 (+1 -2)

2004-09-18 19:44  havoc

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

2004-09-18 19:30  tomaz

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

2004-09-18 00:16  tomaz

	* todo: 344

2004-09-18 00:16  tomaz

	* model_shared.c: Fixed a missing \n

2004-09-18 00:00  tomaz

	* todo: 344

2004-09-17 23:56  tomaz

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

2004-09-17 23:53  tomaz

	* todo: 344

2004-09-17 23: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 23:27  havoc

	* todo: 344

2004-09-17 23: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 23:19  havoc

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

2004-09-17 20:41  black

	* prvm_cmds.c: Fixed str_cvar.

2004-09-17 03:13  havoc

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

2004-09-17 03:03  havoc

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

2004-09-17 02:33  havoc

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

2004-09-17 02:32  havoc

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

2004-09-16 22:41  havoc

	* todo: [no log message]

2004-09-16 22:20  havoc

	* todo: 344

2004-09-16 22:00  havoc

	* model_shared.c: optimized Mod_BuildBumpVectors slightly

2004-09-15 18:06  molivier

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

2004-09-15 01: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-15 00:57  havoc

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

2004-09-15 00: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-15 00:15  havoc

	* todo: 344 - minor things

2004-09-14 08:19  molivier

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

2004-09-14 03: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 23:39  havoc

	* todo: 341 - some hud items added

2004-09-13 00:20  tomaz

	* todo: 337

2004-09-12 20:11  tomaz

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

2004-09-12 19:04  tomaz

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

2004-09-12 18:18  tomaz

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

2004-09-12 18:16  tomaz

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

2004-09-12 00:02  tomaz

	* todo: 343

2004-09-12 00: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 20:31  tomaz

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

2004-09-11 20:11  tomaz

	* r_shadow.c: Fixed a crash in R_EditLights_PasteInfo_f.

2004-09-11 17: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-11 02:57  havoc

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

2004-09-11 02:54  havoc

	* cl_demo.c: fix undefined function warning

2004-09-11 02: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-11 02: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-11 02:45  havoc

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

2004-09-11 02:42  tomaz

	* todo: 345

2004-09-10 20:20  havoc

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

2004-09-10 20:19  havoc

	* sys_win.c: fix quoted string parsing

2004-09-09 21: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 13:21  havoc

	* todo: two bugs... back to 350

2004-09-09 08:12  tomaz

	* todo: 347

2004-09-08 08:03  tomaz

	* todo: 350 !!!

2004-09-08 01:30  tomaz

	* todo: 351

2004-09-08 01:03  tomaz

	* todo: 352

2004-09-07 20:23  tomaz

	* todo: 356

2004-09-07 20: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 19: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 19:42  tomaz

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

2004-09-07 19:13  havoc

	* lhnet.c: fixed STANDALONETEST so it works again

2004-09-07 19: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 23:19  tomaz

	* todo: 358

2004-09-06 12: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 10:06  black

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

2004-09-05 13:25  tomaz

	* todo: 359

2004-09-05 13: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-05 05:32  tomaz

	* todo: 360

2004-09-04 16:29  havoc

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

2004-09-04 15:16  havoc

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

2004-09-04 11:58  tomaz

	* todo: 362

2004-09-04 11:52  havoc

	* todo: 363 after some cleaning

2004-09-03 17:19  molivier

	* todo: Dpmaster has address mapping now

2004-09-03 16:21  havoc

	* todo: 365

2004-09-03 16: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 13:03  havoc

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

2004-09-03 13:02  havoc

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

2004-09-03 12:32  havoc

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

2004-09-03 08:26  havoc

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

2004-09-03 04:36  havoc

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

2004-09-03 04:24  havoc

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

2004-09-03 03: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-03 03:39  havoc

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

2004-09-02 15: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 15:16  havoc

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

2004-09-01 10:05  havoc

	* pr_cmds.c: added DP_QC_FINDFLAGS and DP_QC_FINDCHAINFLAGS
	  extensions

2004-09-01 09:38  havoc

	* todo: 368

2004-09-01 09:37  havoc

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

2004-09-01 09:02  havoc

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

2004-08-31 11:13  havoc

	* todo: 368

2004-08-31 10:29  havoc

	* todo: 367 (+3 todo items)

2004-08-30 18:08  havoc

	* todo: 364

2004-08-30 16:48  tomaz

	* todo: 365

2004-08-30 16:47  tomaz

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

2004-08-30 14:03  molivier

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

2004-08-30 14:01  molivier

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

2004-08-30 13:59  molivier

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

2004-08-30 11: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 11:12  havoc

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

2004-08-30 11:11  havoc

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

2004-08-30 11:10  havoc

	* curves.c: more documentation on B-Splines

2004-08-30 11:09  havoc

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

2004-08-29 11:08  havoc

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

2004-08-29 00:37  havoc

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

2004-08-28 00:21  havoc

	* todo: 367

2004-08-27 11:53  havoc

	* common.c, common.h: added GAME_NETHERWORLD

2004-08-27 11:07  havoc

	* todo: 368

2004-08-27 10:42  havoc

	* todo: 369

2004-08-26 23:08  havoc

	* darkplaces.txt: modified Tomaz credits

2004-08-26 10:43  tomaz

	* todo: 369

2004-08-26 09:43  havoc

	* todo: 370

2004-08-26 05:10  havoc

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

2004-08-26 01:57  havoc

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

2004-08-26 01: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-26 01: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 22: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 19:00  tomaz

	* todo: 3371 items left.

2004-08-25 12:46  tomaz

	* todo: 373 items left.

2004-08-25 11:42  havoc

	* todo: 3 notifies done

2004-08-25 11:33  havoc

	* todo: a few more things done

2004-08-25 11:32  havoc

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

2004-08-25 10:55  havoc

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

2004-08-25 10: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 10:08  havoc

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

2004-08-25 08:51  tomaz

	* todo: 376 items left.

2004-08-25 08:48  tomaz

	* cl_particles.c: Slightly tweaked CL_ParticleExplosion2 by VorteX.

2004-08-25 08: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-25 04:07  havoc

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

2004-08-25 00:43  havoc

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

2004-08-24 20:18  tomaz

	* todo: Still 378 items.

2004-08-24 20: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 20:09  tomaz

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

2004-08-24 18:54  tomaz

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

2004-08-24 04:10  havoc

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

2004-08-23 10:20  havoc

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

2004-08-23 09:25  havoc

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

2004-08-23 07: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-23 07:34  havoc

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

2004-08-23 04: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 19:15  tomaz

	* todo: 380 items left.

2004-08-22 18:20  tomaz

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

2004-08-22 17:37  tomaz

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

2004-08-22 13:45  tomaz

	* todo: 383 items left.

2004-08-22 13: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 13:12  tomaz

	* gl_backend.c: Changed 360. to 360.0

2004-08-22 03:58  tomaz

	* todo: 384 items left.

2004-08-22 03:58  tomaz

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

2004-08-22 03:30  tomaz

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

2004-08-22 03:08  tomaz

	* todo: 385 items left.

2004-08-22 00:27  havoc

	* todo: notified Todd about 3 items being done

2004-08-21 18:45  tomaz

	* todo: 389 items.

2004-08-21 18: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 18:42  tomaz

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

2004-08-21 01:57  havoc

	* todo: finished labeling categories of 0 difficulty items

2004-08-20 22:54  tomaz

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

2004-08-20 22:53  tomaz

	* todo: down to 393

2004-08-20 22: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 22:49  tomaz

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

2004-08-20 08: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-20 02:00  tomaz

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

2004-08-19 14:34  tomaz

	* todo: [no log message]

2004-08-19 02:09  tomaz

	* todo: [no log message]

2004-08-19 00:23  tomaz

	* todo: [no log message]

2004-08-19 00: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-18 00:52  tomaz

	* todo: [no log message]

2004-08-18 00:50  tomaz

	* r_light.c: Added lightstyle interpolation.

2004-08-17 01:51  havoc

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

2004-08-13 01: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 19:25  havoc

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

2004-08-10 04: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-10 04:10  havoc

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

2004-08-09 23:35  havoc

	* cl_particles.c: fix unused variable k warning

2004-08-09 23:29  havoc

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

2004-08-09 15:07  havoc

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

2004-08-09 14:59  havoc

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

2004-08-09 12:12  havoc

	* todo: [no log message]

2004-08-09 00: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-09 00: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-09 00:52  tomaz

	* todo: [no log message]

2004-08-08 23:51  tomaz

	* todo: [no log message]

2004-08-08 23:49  tomaz

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

2004-08-08 23:26  tomaz

	* todo: [no log message]

2004-08-08 23:07  tomaz

	* todo: [no log message]

2004-08-08 23:04  tomaz

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

2004-08-08 22:17  havoc

	* todo: [no log message]

2004-08-08 22:06  tomaz

	* todo: [no log message]

2004-08-08 01: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 17:52  havoc

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

2004-08-07 17:51  havoc

	* gl_backend.c: fixed r_showtris

2004-08-07 15: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 15: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 10: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 15: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 10:39  black

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

2004-08-02 20:00  tomaz

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

2004-08-02 16:18  molivier

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

2004-07-27 11: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-26 08:11  havoc

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

2004-07-26 08: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 12:29  tomaz

	* todo: [no log message]

2004-07-23 12:01  tomaz

	* todo: [no log message]

2004-07-22 15:35  molivier

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

2004-07-22 13:05  molivier

	* todo: [no log message]

2004-07-22 02:38  havoc

	* todo: [no log message]

2004-07-21 14:46  molivier

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

2004-07-20 14:26  molivier

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

2004-07-20 11:59  molivier

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

2004-07-17 22:25  tomaz

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

2004-07-17 22:17  tomaz

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

2004-07-17 22:15  tomaz

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

2004-07-17 22:10  tomaz

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

2004-07-16 17: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 22: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 15:01  black

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

2004-07-14 15: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 14:52  havoc

	* todo: [no log message]

2004-07-14 14:31  havoc

	* todo: [no log message]

2004-07-12 20: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 19:58  coderjoe

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

2004-07-11 16: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 14:27  black

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

2004-07-06 10: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 09: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 15:28  molivier

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

2004-07-05 04:19  havoc

	* todo: [no log message]

2004-07-02 17:31  molivier

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

2004-07-02 17: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 16:32  black

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

2004-06-25 17: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 15: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 16: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 16: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 16: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 16:06  molivier

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

2004-06-16 14:06  molivier

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

2004-05-27 01: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 13:28  havoc

	* todo: [no log message]

2004-05-26 13:25  havoc

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

2004-05-23 10: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 10:11  havoc

	* todo: [no log message]

2004-05-22 05:13  havoc

	* todo: [no log message]

2004-05-22 05:12  havoc

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

2004-05-22 05:00  havoc

	* todo: sort

2004-05-22 05:00  havoc

	* todo: [no log message]

2004-05-22 04: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-22 04:42  havoc

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

2004-05-22 04:12  havoc

	* todo: forgot to sort the todo

2004-05-22 04:11  havoc

	* todo: [no log message]

2004-05-22 00:25  havoc

	* todo: [no log message]

2004-05-22 00:18  havoc

	* todo: [no log message]

2004-05-21 21:45  havoc

	* todo: [no log message]

2004-05-21 21:42  havoc

	* todo: [no log message]

2004-05-21 21:18  havoc

	* todo: [no log message]

2004-05-21 21:09  havoc

	* todo: [no log message]

2004-05-21 20:59  havoc

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

2004-05-21 20:56  havoc

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

2004-05-21 20:55  havoc

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

2004-05-21 20:53  havoc

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

2004-05-21 10:29  havoc

	* todo: [no log message]

2004-05-21 04:56  havoc

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

2004-05-21 03:30  havoc

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

2004-05-21 02:49  havoc

	* r_sky.c: handle sky scroll wrapping better

2004-05-21 02:40  havoc

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

2004-05-21 02:38  havoc

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

2004-05-21 01:24  havoc

	* common.c, common.h: added GAME_NEOTERIC

2004-05-21 01:18  havoc

	* todo: [no log message]

2004-05-21 01:17  havoc

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

2004-05-21 01: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 23:05  havoc

	* todo: [no log message]

2004-05-20 22: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 21:29  havoc

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

2004-05-20 20: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 09:22  havoc

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

2004-05-19 09:22  havoc

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

2004-05-19 09:20  havoc

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

2004-05-19 02: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-19 00: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 23:48  havoc

	* image.c: Tomaz fixed Image_CopyMux

2004-05-18 23:28  havoc

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

2004-05-18 23:04  havoc

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

2004-05-18 22:48  havoc

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

2004-05-18 20:55  havoc

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

2004-05-18 20:26  havoc

	* image.c: Vic optimized Image_CopyMux

2004-05-18 08: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-18 08:24  havoc

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

2004-05-18 08:13  havoc

	* todo: [no log message]

2004-05-18 06: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 22:09  havoc

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

2004-05-17 22: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 21: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 21: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 21: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 21: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 20:22  havoc

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

2004-05-16 02:21  havoc

	* matrixlib.c: Tomaz optimized Matrix4x4_CreateFromQuakeEntity

2004-05-16 02:19  havoc

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

2004-05-16 01:35  havoc

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

2004-05-16 01:24  havoc

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

2004-05-15 23: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 22:43  havoc

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

2004-05-15 22:40  havoc

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

2004-05-15 22: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 21: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 20:34  havoc

	* todo: [no log message]

2004-05-15 07: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 17:53  havoc

	* r_shadow.c: Tomaz fixed cubemap loading of skyboxes

2004-05-14 02:17  havoc

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

2004-05-14 02: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-14 00:39  havoc

	* todo: [no log message]

2004-05-14 00: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 21:10  havoc

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

2004-05-13 20:41  havoc

	* todo: [no log message]

2004-05-13 20:40  havoc

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

2004-05-13 19: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-13 00: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 20:03  havoc

	* todo: [no log message]

2004-05-12 18: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 18:55  havoc

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

2004-05-12 18:52  havoc

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

2004-05-04 12: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 10: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 12: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-02 05: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 09: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 09: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 09: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-18 03:47  havoc

	* gl_rsurf.c: merged R_DrawSurfaceChain into R_DrawSurfaces loop

2004-04-18 03:24  havoc

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

2004-04-16 10:06  havoc

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

2004-04-16 08:36  havoc

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

2004-04-16 08: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-16 08: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-16 08:06  havoc

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

2004-04-15 16: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-15 08: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 10: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 09:53  havoc

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

2004-04-14 09: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-14 08: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-14 08: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-14 07: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-14 06:59  havoc

	* todo: [no log message]

2004-04-14 06:58  havoc

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

2004-04-14 06:47  havoc

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

2004-04-12 09:58  havoc

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

2004-04-12 09: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 09:30  havoc

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

2004-04-11 19: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 19: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-10 04:20  havoc

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

2004-04-09 21: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 15: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 14: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-07 06:36  havoc

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

2004-04-06 15:08  molivier

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

2004-04-06 07:58  molivier

	* protocol.c, todo: Fixed cl_nodelta 1

2004-04-05 09: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-05 08:51  molivier

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

2004-04-05 08: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-05 08:45  molivier

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

2004-04-05 08: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-04 01:20  havoc

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

2004-04-03 03:34  havoc

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

2004-04-02 15: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-02 09: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-02 09: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-02 09: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-02 00:42  havoc

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

2004-04-02 00:10  havoc

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

2004-04-02 00: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 11:46  molivier

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

2004-04-01 04:06  havoc

	* r_shadow.c: default to r_shadow_realtime_dlight 1 mode

2004-03-31 18:14  havoc

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

2004-03-31 15:41  molivier

	* snd_bsd.c: OpenBSD doesn't define _PATH_SOUND

2004-03-31 03: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-31 03:33  havoc

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

2004-03-31 03: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 18:19  havoc

	* todo: [no log message]

2004-03-26 15:22  molivier

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

2004-03-26 15:20  molivier

	* console.c: Removed a couple of useless inclusions

2004-03-25 15:36  havoc

	* matrixlib.c: include <> above ""

2004-03-25 10: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 14: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 09: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 20:32  havoc

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

2004-03-23 16:59  molivier

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

2004-03-23 09: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-23 08: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-23 08:44  havoc

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

2004-03-22 19:43  havoc

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

2004-03-22 17:15  havoc

	* gl_backend.c: fixed two warnings on glGetDoublev calls

2004-03-22 11:08  havoc

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

2004-03-22 11: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 10: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 10:19  havoc

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

2004-03-19 11:16  havoc

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

2004-03-18 11:49  havoc

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

2004-03-18 06:15  havoc

	* gl_rsurf.c: fixed r_fullbright

2004-03-17 07:48  havoc

	* cl_main.c: expanded cl_max_beams from 24 to 256

2004-03-17 04: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 10:49  havoc

	* todo: [no log message]

2004-03-16 10:49  havoc

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

2004-03-16 07:37  coderjoe

	* cd_null.c, sv_user.qc: fix newlines

2004-03-16 01: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-16 01:27  havoc

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

2004-03-16 00: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 09: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 09:24  havoc

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

2004-03-15 09: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-15 08: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-15 08: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-15 06: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 10:58  havoc

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

2004-03-14 10:50  havoc

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

2004-03-14 06: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-14 00:50  havoc

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

2004-03-14 00: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-14 00: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-14 00:14  havoc

	* gl_draw.c: fixed gl_paranoid warnings in R_DrawQueue

2004-03-14 00: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 15:43  black

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

2004-03-13 12:50  havoc

	* todo: [no log message]

2004-03-13 08:21  havoc

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

2004-03-13 08: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 09: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-11 01:43  havoc

	* cl_screen.c: removed special GAME_FNIGGIUM default for
	  con_forcewhiledisconnected

2004-03-10 22: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 10:52  havoc

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

2004-03-10 10: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 09: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-10 08: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-10 08: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-10 07:34  havoc

	* pr_cmds.c: sorted extension list again

2004-03-10 07:33  havoc

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

2004-03-10 07:20  havoc

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

2004-03-10 07:17  havoc

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

2004-03-10 06: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-10 06: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-10 06:47  havoc

	* common.h: added an extern for cmdline cvar

2004-03-10 04: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-10 01:06  havoc

	* fs.c: clean up an unnecessary snprintf

2004-03-09 23: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 23:14  havoc

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

2004-03-09 22:59  havoc

	* todo: [no log message]

2004-03-09 22:56  havoc

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

2004-03-09 21: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-09 05: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-09 05:56  havoc

	* r_shadow.c: fix saving of rtlights files (everything past cubemap
	  was getting lost)

2004-03-07 09:15  havoc

	* menu.c: fix two signed/unsigned comparison warnings

2004-03-07 02:06  havoc

	* todo: [no log message]

2004-03-06 03:09  havoc

	* todo: [no log message]

2004-03-06 02: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 14:12  molivier

	* cl_main.c: Don't use coronas for muzzleflashes

2004-03-05 06:01  havoc

	* view.c: no view tilt when dead in GAME_FNIGGIUM

2004-03-05 03:27  havoc

	* model_brush.c: fixed noclipping rendering nothing (there was no
	  vis update)

2004-03-05 03: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 20: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 14:17  molivier

	* menu.c: Fixed key bindings menu (we have a range of 1024 key
	  numbers now)

2004-03-04 14:14  molivier

	* curves.c, gl_backend.c: Removed a few warnings in MSVC6

2004-03-04 08: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-04 07: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-04 03:11  havoc

	* r_shadow.c: fix r_editlights_edit not accepting some commands

2004-03-04 02:27  havoc

	* gl_backend.c: r_showtris is now a float cvar which controls
	  intensity, rather than just a flag

2004-03-03 16: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-03 08:05  havoc

	* model_brush.c: fix Q3BSP submodels to have no GetPVS function (or
	  assorted other functions which would fail)

2004-03-03 07:50  havoc

	* gl_rsurf.c, todo: fixed bmodel realtime lighting/shadowing render
	  crashes (and bogus shadows from them)

2004-03-03 07:00  havoc

	* gl_backend.c, gl_backend.h, gl_rmain.c, render.h, todo: added
	  r_showtris

2004-03-03 06: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 21: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-02 06:34  havoc

	* r_shadow.c: fix rtlights cubemapname load/save

2004-03-02 03:27  havoc

	* model_shared.c: fix the inverted bumps on some surfaces (no
	  longer uses CrossProduct to get the svector)

2004-03-02 01:26  havoc

	* r_shadow.c: forgot to init the effects variable in the light
	  parser

2004-03-02 01: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 19: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-03-01 06:03  havoc

	* view.c: remove unused variable i in V_ParseDamage

2004-03-01 06:01  havoc

	* cl_parse.c: remove unused variable i in CL_ParseStartSoundPacket

2004-03-01 05: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-03-01 05: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-03-01 05:20  havoc

	* gl_rmain.c, todo: fixed viewblends which were broken the past few
	  days

2004-03-01 04: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-03-01 02: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-03-01 02:54  havoc

	* progs.h: forgot to commit this as part of the SV_TouchAreaGrid
	  fix

2004-03-01 02: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-03-01 02: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 16:41  havoc

	* gl_rmain.c, r_shadow.c: default a few cvars accordingly for
	  GAME_TENEBRAE mode

2004-02-28 16:18  havoc

	* r_shadow.c: support angles on light entities

2004-02-28 16:15  havoc

	* r_shadow.c: support skin and pflags in light entity loader

2004-02-26 20:28  havoc

	* todo, world.c: PF_traceline/PF_tracebox can now use world as the
	  edict

2004-02-26 20:25  havoc

	* r_shadow.c, todo: made the static light built message a dprint

2004-02-26 03:06  havoc

	* host.c: TEU uses teu.rc, not quake.rc

2004-02-25 19: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 19: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 13:42  havoc

	* pr_cmds.c: enable MOVE_ values on PF_tracebox (already enabled on
	  PF_traceline)

2004-02-24 18:10  havoc

	* gl_models.c, todo: fixed black fullbrights on models in realtime
	  mode

2004-02-22 19: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 18:09  havoc

	* sv_user.c: allow "rate" command to be executed on server when
	  sent from client

2004-02-22 07: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 22: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 15:19  havoc

	* cl_demo.c, client.h, todo: timedemo now also prints min/avg/max
	  fps

2004-02-21 13:51  havoc

	* menu.c: added rate limiting to player setup menu

2004-02-21 12: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-21 08: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-21 08:39  havoc

	* model_sprite.c: remove unused stripextension code

2004-02-21 08: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 18: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 17: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 17:15  havoc

	* gl_backend.c: possible improvement to infinite perspective matrix
	  generation

2004-02-20 03: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 15: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 15:37  havoc

	* r_shadow.c: now loads each cubemap only once, no matter how many
	  lights use it

2004-02-18 15: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 11: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 11:29  havoc

	* keys.c: fix some warnings

2004-02-17 03: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 17:50  black

	* prvm_cmds.c: Forgot to add a couple of return statements to a
	  switch block.

2004-02-11 19:56  black

	* menu.h: Fixed: Removed not needed variable.

2004-02-11 18: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-11 08: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-11 08:22  molivier

	* ui.c: Commented out some unused static functions in "ui.c" to get
	  rid of GCC warnings

2004-02-11 08:20  molivier

	* mingw_note.txt: Updated the MinGW note according to the new
	  makefiles

2004-02-11 08:20  molivier

	* snd_null.c: I forgot to add the new sound functions to
	  "snd_null.c"

2004-02-10 22: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 21:54  havoc

	* darkplaces.txt: corrections and additions

2004-02-10 21:54  havoc

	* gl_rmain.c: recalculate farclip immediately before rendering,
	  instead of from the previous frame, cures some quick turn
	  glitches

2004-02-10 17: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-10 08: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 10: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-09 08: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-09 06: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-09 06:21  havoc

	* menu.c: fix video modes menu to not let you select the extra 0x0
	  mode

2004-02-08 20:02  havoc

	* netconn.c: added Willis's dpmaster to list

2004-02-06 22:36  havoc

	* darkplaces.txt: trying to make this binary

2004-02-06 22:30  havoc

	* darkplaces.txt: DOS line endings, and now marked binary (I hope)

2004-02-06 19:48  havoc

	* darkplaces.txt, todo: updated readme

2004-02-06 19:45  havoc

	* model_alias.c: increased numverts/numtris/skinwidth/skinheight
	  limits to 65536, and made r_fullbrights affect model skins

2004-02-06 06: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-06 06:22  havoc

	* model_brush.c, model_brush.h: fixed Mod_Q3BSP_BoxTouchingPVS to
	  handle unvised maps properly

2004-02-06 06:20  havoc

	* pr_cmds.c: rewrote PF_tokenize to not use memory allocations

2004-02-06 06: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-06 06:17  havoc

	* gl_textures.c: gl_texturemode should not affect TEXF_FORCENEAREST
	  and TEXF_FORCELINEAR textures

2004-02-06 05: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 20:22  havoc

	* model_brush.c: optimized BoxTouchingPVS code to no longer be
	  recursive

2004-02-03 05:52  havoc

	* image.c: support tga's with incomplete colormaps (less than 256
	  colors), I HOPE this is correct

2004-02-03 03: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 16: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 15:55  havoc

	* sys_win.c, vid_wgl.c: fix misplaced extern S_UnblockSound

2004-02-02 15:47  black

	* snd_dma.c: DS_OK used instead of DD_OK

2004-02-02 15:44  coderjoe

	* darkplaces.dsp, darkplaces.rc, resource.h, vid_wgl.c: get msvc
	  using the new icon

2004-02-02 15: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 15: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 15: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 14: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 14:09  havoc

	* makefile, makefile.bsd, makefile.inc: thanks to Mathieu Olivier
	  for these new makefiles

2004-02-02 13: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-02 05:32  havoc

	* sv_phys.c: fixed sv_freezenonclients (now freezes time as well)

2004-02-02 05:06  havoc

	* collision.c: forgot to init enterfrac2 in the TraceLineBrushFloat
	  code

2004-02-02 04: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-02 04: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-02 03: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-02 03: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-02 03: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 23:40  havoc

	* r_lightning.c: reduced default r_lightningbeams_repeatdistance
	  from 1024 to 128

2004-02-01 23: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 13: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-02-01 00: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 10: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 09: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-27 07:13  havoc

	* host.c: use sys_ticrate timing on dedicated servers

2004-01-26 09:57  havoc

	* vid_shared.c: improved handling of video mode failures

2004-01-24 02: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-24 01: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 11: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 10:22  havoc

	* sv_phys.c: wrap angles on rotating pushers because large angle
	  values are bad for precision

2004-01-21 08: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 22:03  havoc

	* vid_shared.c: -safe now implies -window and disables all GL
	  extensions that offer a disable option

2004-01-20 14: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 23: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 22:34  havoc

	* fs.c: changed comment above FS_CreatePath

2004-01-17 05:07  havoc

	* todo: [no log message]

2004-01-13 23:14  havoc

	* r_sprites.c: fixed a crash with r_lerpsprites 0 mode

2004-01-12 19:48  black

	* prvm_cmds.c: Fixed findkeysforcommand hopefully.

2004-01-12 08: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-12 08:33  molivier

	* snd_dma.c, snd_win.c: Removed a few warnings when compiling with
	  MinGW

2004-01-12 04:54  havoc

	* model_shared.c: don't try to upload distorttextures if the
	  texture shader extension is missing

2004-01-11 18: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 18:35  black

	* ui.c, ui.h: Hopefully finished the core of the new ui.

2004-01-07 13: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 13: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 17: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 17: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 13: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 11: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)

2004-01-01 06:22  havoc

	* vid_glx.c: fix a missing ; from knghtbrd's commit

2004-01-01 05:39  knghtbrd

	* vid.h, vid_shared.c: Moved an extern to the proper header.

2004-01-01 05:00  knghtbrd

	* vid_glx.c, vid_shared.c, vid_wgl.c: Moved cl_available definition
	  to vid_shared.c

2004-01-01 03: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

2004-01-01 03:33  havoc

	* snd_dma.c: fixed the complaints about missing sounds (no longer
	  complains after the initial precache failure)

2003-12-31 19: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 09:32  havoc

	* cl_main.c: make sure client ports are opened before trying to
	  connect to anything

2003-12-31 08:37  havoc

	* vid_glx.c: don't even try to support XF86DGA stuff on Mac

2003-12-31 08:18  havoc

	* common.h: fix a thinko in big endian support (forgot to use
	  defined() in a #elif)

2003-12-30 14: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-30 00:47  havoc

	* netconn.c: updated sv_masterextra1 to point to the newer master
	  server address

2003-12-29 06:43  havoc

	* sbar.c: changed nexuiz hud to display a different (more minimal)
	  sbar pic when viewsize is 110

2003-12-29 02: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-28 07:21  havoc

	* sv_phys.c: fixed bug with falling (not on ground) MOVETYPE_STEP
	  entities not touching triggers

2003-12-28 06:14  havoc

	* sv_phys.c: made TryUnstick failure a DPrintf (like TryUnstick
	  success is)

2003-12-28 03:14  havoc

	* makefile: added ogg.o to WGL exe build

2003-12-28 03: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-28 02: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-28 01:58  havoc

	* r_shadow.c: improved support for q3map2 lights (added fade and
	  scale keys supported by rtcw and sof2 respectively)

2003-12-27 22: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 18:28  havoc

	* model_brush.c: made an annoying cbox message that I had forgotten
	  to disable, into a COLLISIONPARANOID >= 3 line

2003-12-24 22:24  havoc

	* sv_move.c: fix a bug with using the wrong trace end variable in
	  the COLLISIONPARANOID print

2003-12-24 22:22  havoc

	* ui.c: patched up some compiler warnings in incomplete code

2003-12-24 22: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 22: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 19:16  havoc

	* r_sky.c: fixed cloud layers in quake sky loading

2003-12-23 13: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 19:32  black

	* sbar.c, sbar.h, todo: Added the cvar sbar_alpha.

2003-12-20 19: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 18:54  black

	* pr_edict.c, prvm_edict.c, todo: Added the console commands
	  edictset and prvm_edictset.

2003-12-19 17:46  black

	* console.c, todo: Fixed the crash that occured when the
	  commandline got "too long".

2003-12-18 09:59  molivier

	* fs.c: Removed a potential buffer overflow and factorized some
	  code

2003-12-17 14:16  black

	* host.c: minor, minor change to Host_Init - the loading plaque is
	  now displayed before the menu is initialized

2003-12-17 10:50  havoc

	* sv_phys.c: fixed a bug with high framerate (or low speed)
	  rotating bmodels failing to push when blocked

2003-12-17 08: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 16:59  havoc

	* fs.c: fix a filesystem directory listing bug in FS_Search

2003-12-16 16: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 13:43  black

	* menu.c, prvm_cmds.c: Added the togglemenu command for both menus
	  and the chr builtin command (menu qc)

2003-12-16 12:08  havoc

	* pr_cmds.c: added cvar_string extension at the request of Paul
	  Timofeyev

2003-12-15 08: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 16:01  molivier

	* cd_linux.c, cd_win.c: Removed redundant definitions in cd_linux.c

2003-12-12 01:28  havoc

	* gl_rsurf.c, todo: made sure EF_FULLBRIGHT works on everything
	  (bmodels were broken)

2003-12-11 15: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 14:57  molivier

	* cd_shared.c: Oops... I forgot to add this file to the previous
	  commit

2003-12-11 14:52  molivier

	* cd_linux.c, cd_win.c, cdaudio.h, darkplaces.dsp, makefile:
	  Factorized audio CD code

2003-12-10 09:05  molivier

	* makefile.bsd, sys_shared.c: OpenBSD support wasn't very far
	  away...

2003-12-09 14: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 09: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-09 08:54  molivier

	* cl_screen.c, menu.c: Fixed scr_screenshot_jpeg_quality slider in
	  options menu

2003-12-08 09: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-08 08: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-08 08:11  havoc

	* cl_main.c: fix the weapon alpha with invisibility in transfusion

2003-12-08 06:05  havoc

	* todo: [no log message]

2003-12-08 01:22  havoc

	* cl_particles.c: added a comment above particle() function to
	  describe its parameters

2003-12-07 19: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 14: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 12: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 12:13  havoc

	* cl_input.c, todo: todo item done: turning keys are no longer
	  affected by slowmo

2003-12-07 12:08  havoc

	* console.c, console.h, todo: todo item done: fixed con_notify cvar
	  (limits number of displayed notify lines)

2003-12-07 11: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 11:28  havoc

	* todo: [no log message]

2003-12-07 11: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 10:56  havoc

	* host.c, todo: todo item done: added "saveconfig" console command

2003-12-07 10:47  havoc

	* pr_cmds.c, todo: added DP_LITSUPPORT extension

2003-12-07 10:39  havoc

	* menu.c, todo: todo item done: GAME_FNIGGIUM minimum resolution of
	  640x480

2003-12-07 10:24  havoc

	* menu.c: added r_wateralpha to effects menu

2003-12-07 09: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 09:33  havoc

	* todo: [no log message]

2003-12-07 09:24  havoc

	* host.c: no longer throttles back framerate when console is
	  active, now only when app is not the focus

2003-12-07 09: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 09: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 12: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 11: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 10: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-03 03: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-12-01 01: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 19:33  black

	* host.c: The menu isnt initialized for dedicated servers

2003-11-30 07: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-30 02:56  havoc

	* common.c, common.h: added GAME_FNIGGIUM and GAME_SETHERAL

2003-11-30 02: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-30 02: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-30 02:10  havoc

	* common.c, common.h: added comment support to
	  COM_ReadAndTokenizeLine

2003-11-29 06: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-29 06:30  havoc

	* model_brush.c: added a quick hack for nodraw support in q3bsp (I
	  hope this is right)

2003-11-19 15:59  black

	* menu.c, vid.h, vid_shared.c: vid_hardwaregammasupported is now a
	  read-only cvar

2003-11-19 14:56  black

	* cvar.c, cvar.h, pr_edict.c: Cvars can be read-only now.

2003-11-19 11: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 09:50  havoc

	* vid_shared.c: ignore vid_restart commands in configs

2003-11-19 08: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-19 08:45  molivier

	* darkplaces.dsp: Updated MSVC6 DSP file

2003-11-18 18:48  havoc

	* keys.c: fix an input bug that prevented function keys from
	  working inside console

2003-11-17 06:00  havoc

	* palette.c: now includes quake palette as a fallback if no
	  gfx/palette.lmp is loaded

2003-11-15 05:16  havoc

	* todo: [no log message]

2003-11-15 02:03  havoc

	* host.c: fixed flipped sound (stupid bug in S_Update call)

2003-11-14 15: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 14:55  havoc

	* snd_null.c: removed double newlines (don't have a clue how this
	  file got them)

2003-11-14 14:46  havoc

	* menu.c: fix a couple signed/unsigned comparison warnings

2003-11-14 14:19  havoc

	* cl_main.c: don't draw viewmodel during intermission

2003-11-12 12:37  molivier

	* menu.c: Options menu has a width of 320, not 640

2003-11-12 09: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 21:20  black

	* menu.c: Added {0,0} to vid_resolutions and added the
	  macro/constant VID_RES_COUNT

2003-11-11 21:18  black

	* prvm_cmds.c: Added 2 builtins.

2003-11-11 05: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-11 03: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 09: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 09: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-08 04: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 09:13  molivier

	* menu.c: When exiting the color control menu, return to the
	  options menu instead of the main menu

2003-11-05 09: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 09: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 09: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-05 05:14  havoc

	* gl_rsurf.c: added r_fullbright (and EF_FULLBRIGHT) support to
	  q3bsp rendering

2003-11-05 05:10  havoc

	* gl_rsurf.c, model_brush.c: added r_ambient support to q3bsp
	  rendering

2003-11-05 04: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-05 04: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 20:24  black

	* mprogdefs.h, prvm_cmds.c, prvm_edict.c: Added isfunction and
	  changed callfunction so it works

2003-10-30 13: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 23: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 12:17  molivier

	* snd_mem.c: Moved some sound code in preparation of adding Ogg
	  Vorbis support

2003-10-26 22: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 18: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-24 08:47  molivier

	* fs.c: Fixed FS code so that unpacked files are handled normally
	  when AKVERSION isn't defined

2003-10-23 21: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 10:41  molivier

	* snd_dma.c: Factorized the code of the S_Play* functions

2003-10-22 10:35  molivier

	* cd_win.c, vid_wgl.c: Fixed 2 warnings found by MSVC6

2003-10-21 15: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 14:59  black

	* cl_screen.c, gl_backend.c, gl_backend.h: I hope this fixes some
	  warnings

2003-10-21 14: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 14: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 14: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 13: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 13:34  havoc

	* model_brush.c: one more input underrun check in pvs decompression

2003-10-17 17:30  black

	* prvm_cmds.c: Removed some bugs (I forget to change a few pr_argc
	  to prog->argc)

2003-10-17 16: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-17 05:32  havoc

	* cl_demo.c: read multiple frames from demo if client is falling
	  behind

2003-10-16 19:45  black

	* host.c: Fixed crash in Host_Shutdown when MR_Shutdown was 0.

2003-10-16 13: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 09:37  havoc

	* todo: marked off some completed items and such

2003-10-13 23:14  havoc

	* r_shadow.c: added r_shadow_help and r_editlights_help commands
	  containing documentation

2003-10-13 14:43  black

	* menu.c, prvm_cmds.c, sys_win.c, vid_wgl.c: Fixed windows input
	  (bad,bad hack)

2003-10-12 11:05  warp

	* keys.c, vid_glx.c: Whoops, fix some stupidity on my part, should
	  work better.

2003-10-12 10: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-12 07:45  warp

	* vid_glx.c: Tweak the key handling, may need more invasive
	  changes.

2003-10-11 21:46  black

	* snd_null.c: Added S_GetCached so the dedicated servers compiles
	  now

2003-10-11 21: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 14: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-11 07: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-11 07:16  havoc

	* todo: [no log message]

2003-10-11 05: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-11 05:25  havoc

	* sbar.c: fix Sbar_MiniDeathmatchOverlay to draw to the right of
	  the sbar (in non-Nexuiz modes) like quake did

2003-10-11 05:12  havoc

	* todo: added another todo item for dpmod, sorted list again

2003-10-11 05: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-10 06: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-10 06:42  havoc

	* model_brush.c: one more reminder that nested for(i) loops are
	  bad, mmk?

2003-10-10 05: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-10 03: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 21:48  black

	* host.c: Sorry, forgot to remove some debug code from host.c

2003-10-09 21: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 23:57  havoc

	* view.c: added back glquake stair step up smoothing, and made it
	  somewhat adjustable (cl_stairsmoothspeed)

2003-10-08 23:40  havoc

	* menu.c: fixed Apply option in video options menu (I had forgotten
	  to renumber it)

2003-10-08 23:00  havoc

	* snd_win.c: fixed a couple warnings on memsetting shm

2003-10-08 22: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 22: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-08 04: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-08 03:28  havoc

	* darkplaces.dsp: added prvm_cmds.c prvm_edict.c prvm_exec.c
	  prvm_execprogram.h

2003-10-08 02:59  havoc

	* cd_win.c: fixed a variable declaration I forgot to move when
	  moving some other code

2003-10-08 01: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 17:16  havoc

	* makefile: removed a temporary comment from Black

2003-10-07 17:15  havoc

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

2003-10-07 14:11  black

	* host.c, prvm_edict.c, makefile: [no log message]

2003-10-07 13:56  black

	* makefile: AK: Changed makefile temporarily so the new prvm
	  compiles on linux.

2003-10-07 08: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-07 06:49  havoc

	* model_brush.c: a stab in the dark at supporting unlit q3bsp maps

2003-10-06 20: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 15:48  havoc

	* common.c, common.h: added COM_ReadAndTokenizeLine, a useful
	  parsing function

2003-10-05 15:47  havoc

	* pr_edict.c: fix a signed/unsigned comparison in
	  PR_UglyValueString

2003-10-02 11: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 14:36  molivier

	* pr_edict.c: Fixed/switched the "ev_string" and "ev_field" cases
	  in PR_UglyValueString

2003-10-01 14: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 17:07  molivier

	* cl_parse.c, netconn.c, sv_main.c, zone.c: More strcpy -> strlcpy
	  and sprintf -> snprintf

2003-09-30 14: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 14: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 10:10  havoc

	* model_alias.c: md3 flags support (blood trails, etc)

2003-09-30 08:36  molivier

	* common.c: Fixed 2 potential buffer overflows in SearchInfostring

2003-09-29 14: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 22: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 22: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 21:44  havoc

	* model_brush.c: empty lightgrid lump should now work

2003-09-22 04: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-22 03: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-22 01:23  havoc

	* gl_rsurf.c: removed RSurf_LightCheck because nothing used it
	  anymore

2003-09-22 01:08  havoc

	* gl_rsurf.c, menu.c, r_light.c, render.h: r_dlightmap 0 mode
	  removed (vertex dlights on lightmapped walls)

2003-09-22 00:45  havoc

	* snd_oss.c, snd_win.c: engine now defaults to 44100hz sound

2003-09-22 00: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-22 00: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 23:06  havoc

	* gl_rsurf.c: removed water lighting support

2003-09-21 05: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 11:16  havoc

	* common.c, common.h: added GAME_ZYMOTIC

2003-09-20 09: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 22: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 21: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 21: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 21:48  havoc

	* image.c: flip the X in normalmaps generated from heightmaps
	  (according to FrikaC it was broken)

2003-09-19 21:44  havoc

	* sv_phys.c: added some SV_CheckVelocity calls to MOVETYPE_WALK
	  code

2003-09-19 03: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 21: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 19: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 19: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 19:48  havoc

	* wad.c, wad.h: no longer opens gfx.wad until a lump is requested
	  (and gracefully fails if not found)

2003-09-15 04:21  havoc

	* model_brush.c: fixed empty texture lump handling in q1bsp loading

2003-09-15 04:21  havoc

	* protocol.c: made a commit debugging message only happen with
	  developer_networkentities

2003-09-14 23:34  havoc

	* protocol.c, protocol.h: move developer_networkentities extern to
	  protocol.h

2003-09-14 05: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-14 05:40  havoc

	* todo: added an item about corona shaders

2003-09-13 22:58  havoc

	* mathlib.h: fixed log2i to use parentheses around n changed bit2i
	  to use log2i((n) << 1)

2003-09-13 22: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 22: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 22:37  havoc

	* cl_input.c, sv_user.c: more developer_networkentities messages

2003-09-13 06: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-13 06:49  havoc

	* todo: [no log message]

2003-09-13 01:57  havoc

	* common.c: changed teu game dir to "baseteu" at request of teu
	  team

2003-09-12 14:47  havoc

	* model_alias.c: aitur fixed some important bugs in the error
	  checks of the md2 model loader, thanks!

2003-09-09 00:00  havoc

	* todo: [no log message]

2003-09-04 15: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 15:30  havoc

	* sbar.c: fix some glitches in the original commit clean up blank
	  lines

2003-09-04 14:30  havoc

	* cl_screen.h, gl_draw.c, quakedef.h, sbar.c: patch from Andreas
	  Kirsh to add Nexuiz hud

2003-09-04 11:30  havoc

	* netconn.c: the Connect failed error is now just a print

2003-09-04 11:25  havoc

	* sv_main.c: fix a nasty crash with multiplayer servers (thanks to
	  Willis for finding this bug)

2003-08-31 08:35  havoc

	* pr_cmds.c: fixed a couple stupid bugs

2003-08-31 07:25  havoc

	* todo: [no log message]

2003-08-31 07: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-31 07:17  havoc

	* pr_edict.c: fix a crash related to MAX_EDICTS in "pr_fields"
	  command (thanks to SeienAbunae for reporting this)

2003-08-30 03: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-29 05:49  havoc

	* todo: [no log message]

2003-08-29 05: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 16: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 15: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 10:08  havoc

	* host_cmd.c: fixed Prydon Gate behavior regarding the start map
	  (which immediately changes level)

2003-08-28 08: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 15: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 15:10  havoc

	* gl_rsurf.c, model_brush.c: fixed a crash with clusterindex -1 in
	  GetPVS and FatPVS

2003-08-27 14: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-25 08: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-25 02: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-25 01: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-24 06: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 12:30  havoc

	* todo: [no log message]

2003-08-23 12: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 10:32  havoc

	* r_light.c: negate the dnormal instead of negating the dotproduct
	  result

2003-08-23 10:30  havoc

	* r_light.c: diffusenormal lighting was backwards (thanks to
	  Electro for pointing this out)

2003-08-23 10:23  havoc

	* sv_phys.c: don't call PlayerPreThink/PlayerPostThink on unspawned
	  clients

2003-08-23 09:09  havoc

	* netconn.c: fix a (very bad!) bug with -port cvar setting

2003-08-23 09: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-23 08:20  havoc

	* menu.c: in the server setup menu, default to 8 players instead of
	  MAX_SCOREBOARD

2003-08-23 07:13  havoc

	* cl_particles.c, collision.c: fixed a couple warnings

2003-08-23 04: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-23 01: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 10: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-19 06:03  havoc

	* chase.c: adjusted up camera height for chase_stevie in GoodVsBad2
	  as requested by yummyluv

2003-08-19 02:43  havoc

	* winding.c, winding.h: forgot to commit these

2003-08-19 02: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 21:31  havoc

	* todo: [no log message]

2003-08-14 21:29  havoc

	* darkplaces.dsp: sv_light.c is gone, updated project to remove it

2003-08-14 05: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-14 01: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-13 04: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-13 04:16  havoc

	* todo: [no log message]

2003-08-13 04:08  havoc

	* model_alias.c: I hope this fixes a md3 tag bug, but don't know

2003-08-11 14:20  havoc

	* model_brush.c, model_shared.h, sv_main.c: moved SV_FatPVS to
	  model code

2003-08-10 22: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 21:58  havoc

	* todo: [no log message]

2003-08-10 15: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 19: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 19:54  havoc

	* common.c: change GAME_BATTLEMECH gamedir to "base" (patch
	  supplied by Toddd)

2003-08-09 19: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 18: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-09 00:23  havoc

	* todo: [no log message]

2003-08-09 00:22  havoc

	* sv_user.qc: fixed compile errors

2003-08-09 00: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-09 00: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 13: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 12:56  havoc

	* pr_cmds.c: fix a warning

2003-08-07 12: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 12:41  havoc

	* todo: [no log message]

2003-08-07 12:38  havoc

	* cl_input.c: sigh, one more thing I forgot to commit :(

2003-08-06 18: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 15: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 15:11  havoc

	* todo: [no log message]

2003-08-06 12:22  havoc

	* collision.c: optimized polygon collision code a bit (optimized
	  node side comparison)

2003-08-03 15: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 15:05  havoc

	* todo: [no log message]

2003-08-03 15: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-31 02: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-31 02:25  havoc

	* todo: [no log message]

2003-07-31 02:16  havoc

	* cl_main.c: simplified dlight fading code

2003-07-29 01:47  havoc

	* protocol.c, protocol.h: added code for protocol 4, not hooked up
	  or tested

2003-07-29 01:46  havoc

	* todo: [no log message]

2003-07-28 13:45  havoc

	* model_alias.c: I hope this fixes tags on md3 models, but I don't
	  have any idea...

2003-07-28 13: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-27 07: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-27 07:20  havoc

	* sv_main.c: remove an unused variable (and kill the one incorrect
	  use of it)

2003-07-27 07: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-27 06:52  havoc

	* todo: [no log message]

2003-07-26 12:52  havoc

	* model_alias.c: missing )

2003-07-26 11: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 10:28  havoc

	* model_alias.c: report if skins are missing in SkinFiles system

2003-07-26 02:18  havoc

	* todo: [no log message]

2003-07-26 02:08  havoc

	* todo: [no log message]

2003-07-26 00:35  havoc

	* todo: [no log message]

2003-07-25 11:23  havoc

	* todo: marked a couple done, and sorted

2003-07-25 11:19  havoc

	* pr_cmds.c: added DP_GFX_SKINFILES and DP_GFX_QUAKE3MODELTAGS
	  extensions

2003-07-25 10: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 23: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 23:43  havoc

	* mingw_note.txt: wsipx.h is not needed anymore, removed from the
	  list

2003-07-24 23:14  havoc

	* mingw_note.txt: a correction about mingw makefile

2003-07-24 22: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 21: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 20: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 09:20  havoc

	* r_shadow.c: a little more explanation of shadow edge code

2003-07-24 08:12  havoc

	* cl_particles.c: quite possibly the smallest ever commit -
	  deleting an obsolete comment

2003-07-23 00:02  warp

	* r_sky.c: Kill an unused increment.

2003-07-22 22:02  havoc

	* model_alias.c, model_alias.h, model_shared.h: now loads md3 tags

2003-07-22 21: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 20: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 20:45  havoc

	* view.c: get rid of bobbing when dead

2003-07-22 20:44  havoc

	* mathlib.h: added VectorLerp

2003-07-22 20:42  havoc

	* bspfile.h: added Q2 and Q3 contents flags

2003-07-22 20: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 20: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 19: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 18: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 18: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 18:28  havoc

	* zone.h: expose the developer_memory and developer_memorydebug
	  cvars for use in other modules

2003-07-22 02:46  havoc

	* todo: two more dpzoo items

2003-07-22 02: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-22 00:36  havoc

	* todo: more changes

2003-07-22 00:24  havoc

	* todo: some more battlemech related todo items

2003-07-21 23:26  havoc

	* todo: added a battlemech bug report

2003-07-21 22:48  havoc

	* todo: [no log message]

2003-07-21 06:15  havoc

	* lhnet.c: fix an error in a last minute change (was using
	  maxcontentlength in Write, which takes contentlength)

2003-07-21 06:04  havoc

	* netconn.c: skip over NULL sockets in cl_sockets and sv_sockets
	  lists

2003-07-21 06: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-21 01: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 19: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 19:51  havoc

	* todo: [no log message]

2003-07-18 23:20  havoc

	* darkplaces.dsp: thanks to Tomaz for updating the project files

2003-07-18 21:42  havoc

	* todo: [no log message]

2003-07-18 20: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 19: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 16: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 11:09  havoc

	* makefile: turn down optimizations to -O2 because some versions of
	  gcc are buggy on higher settings

2003-07-15 11:07  havoc

	* zone.c: increase number of digits for memlist reports

2003-07-15 11:06  havoc

	* cl_screen.c: jpeg screenshot support in cl_avidemo recording

2003-07-14 17: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 17: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 10: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 10: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 09: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 09: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 19:54  havoc

	* model_shared.c: added some (untested) terrain code for whomever
	  cares

2003-07-13 19:53  havoc

	* sv_main.c: compare coop.value instead of coop.integer (no
	  difference in any mod I know of, but...)

2003-07-13 19: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 12:22  havoc

	* gl_textures.c, glquake.h, vid_shared.c:
	  GL_EXT_texture_filter_anisotropic support (thanks zinx!)

2003-07-13 06:20  havoc

	* model_alias.c: slight simplification of fog layer in alias skins

2003-07-13 06:09  havoc

	* model_shared.c: fixed a severe bug in texcoord2f[] reading in
	  Mod_BuildTextureVectorsAndNormals

2003-07-12 18: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 18: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 17:05  havoc

	* netconn.c: NetConn_Write should print packets even if LHNET_Write
	  returns 0

2003-07-12 16:59  havoc

	* pr_cmds.c: added GL_HALFLIFE_MAP_CVAR extension to list (the cvar
	  is ancient)

2003-07-12 16:57  havoc

	* gl_rmain.c: added .ent file loading to client

2003-07-12 12:01  havoc

	* pr_cmds.c: added DP_GFX_EXTERNALTEXTURES extension to list

2003-07-12 05: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-12 05:07  havoc

	* model_shared.c: all outputs of Mod_BuildTextureVectorsAndNormals
	  are now optional slightly optimized
	  Mod_BuildTextureVectorsAndNormals

2003-07-11 09: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 09:44  havoc

	* gl_backend.c: added a note about another kind of terrain strip
	  and documented code for generating the strips

2003-07-10 06:33  havoc

	* palette.c: err I guess BuildGammaTable8 was used!

2003-07-10 06:30  havoc

	* mathlib.c, model_brush.c, palette.c: #if 0'd out a few unused
	  functions

2003-07-10 06: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-10 06:19  havoc

	* menu.c: added decals to effects options menu

2003-07-10 06: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-10 06:12  havoc

	* r_shadow.c: added 'readable' version of a particular line of code
	  in shadow volume building

2003-07-08 12:06  havoc

	* cl_parse.c: check svc_setview against MAX_EDICTS

2003-07-08 12:04  havoc

	* host.c: fixed a buffer overflow in SV_BroadcastPrintf

2003-07-08 12: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 12: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 11: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 11:51  havoc

	* pr_cmds.c: redesigned much of PF_VarString to clean it up
	  (shorter, faster, etc)

2003-07-08 11: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 09:50  havoc

	* common.c: renamed GAME_GOODVSBAD2 executable to gvb2

2003-07-06 09:49  havoc

	* cl_particles.c: reverted RunParticleEffect appearance in
	  non-GOODVSBAD2 mode because they were far too different looking

2003-07-06 09:48  havoc

	* pr_cmds.c: allow traceline to take unusual values for nomonsters
	  parameter again (like original quake traceline)

2003-07-04 03: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-04 01: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-04 01:40  havoc

	* r_explosion.c: fixed numerous bugs with explosion hull shape (now
	  looks consistently correct for the first time ever)

2003-07-03 23:23  havoc

	* darkplaces.dsp: Tomaz updated the darkplaces project file
	  (thanks!)

2003-07-03 09:01  havoc

	* snd_dma.c: ambients should be forced to loop as well

2003-07-03 08: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-03 02: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-02 07: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-02 07: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-02 07:44  havoc

	* common.c, common.h: added GAME_GOODVSBAD2 and GAME_TEU

2003-07-02 05: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-02 04: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 20: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 20:32  havoc

	* world.c: extremely minor optimization to linking edicts into area
	  grid

2003-07-01 04:59  havoc

	* menu.c: Disable singleplayer menu in Nexuiz (just like
	  Transfusion does)

2003-06-29 01: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 22: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 18:51  havoc

	* snd_mem.c: a prototype for the long dead function S_Alloc removed
	  (thanks to Vic for mentioning this)

2003-06-26 18: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 17: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 12:31  havoc

	* netconn.c: initialize the various server properties when parsing
	  an infoResponse incase some are not set

2003-06-22 12: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 11: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 11:55  havoc

	* world.c: report invalid edicts when attempting to link them

2003-06-21 13:05  havoc

	* zone.c: added developer_memorydebug cvar (does
	  CheckSentinelsGlobal on all Mem_Alloc calls)

2003-06-09 06:19  havoc

	* sbar.c: Sbar_UpdateScoreboard was totally unused in quake, it's
	  history (as are the arrays it used)

2003-06-08 07: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-08 07:43  havoc

	* host.c: cleaned up Host_Error a bit

2003-06-08 07: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 21:21  havoc

	* pr_cmds.c, pr_edict.c, progs.h, sv_user.c:
	  KRIMZON_SV_PARSECLIENTCOMMAND extension (untested currently!)

2003-06-07 21:20  havoc

	* makefile: no longer uses -Werror on exe builds

2003-06-07 21:19  havoc

	* sys_linux.c: fix an uninitialized variable warning in win32

2003-06-04 21: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 21:24  havoc

	* gl_rsurf.c: added support for gl_mesh_copyarrays 0 mode in most
	  shaders

2003-06-04 21: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-03 07: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 15: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-28 04:00  havoc

	* makefile: apparently -Werr isn't valid in gcc3.2, so switch to
	  -Werror

2003-05-26 20:58  havoc

	* cl_screen.c, cl_screen.h, gl_draw.c: 2D art can now be drawn
	  using vertex pointers

2003-05-26 20:57  havoc

	* makefile: added back -Werr so warnings are errors

2003-05-26 20:52  havoc

	* r_sky.c: fix some warnings I kept forgetting

2003-05-26 20: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 20:18  havoc

	* gl_models.c: fix a warning caused by the fact vertex pointers are
	  now const

2003-05-26 20:17  havoc

	* gl_backend.c, gl_backend.h: vertex pointers are now const

2003-05-26 18: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 15: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 15:23  havoc

	* gl_models.c: no longer uses R_Shadow_VertexBuffer, instead uses
	  aliasvert_vertex3f

2003-05-26 03:01  havoc

	* sv_main.c, sv_user.c: fixed connection process again added
	  developer prints for changes to sendserverinfo

2003-05-26 00:47  havoc

	* net_dgrm.c: fix an unused variable warning

2003-05-26 00: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-26 00:38  havoc

	* makefile.mingw, makefile.mingwcross: no longer needed (makefile
	  does it all now)

2003-05-26 00:37  havoc

	* makefile: merged makefile, makefile.mingw (outdated) and
	  makefile.mingwcross into one makefile

2003-05-26 00: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-26 00: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 18:26  havoc

	* makefile.mingwcross: fix darkplaces-dedicated.exe building to
	  open a console

2003-05-25 18: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 17: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 13:59  havoc

	* gl_models.c: alias model fake shadows can now be cached

2003-05-25 13: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 13:40  havoc

	* r_explosion.c: simplified explosion rendering a little (probably
	  a very minor slowdown, but more maintainable)

2003-05-24 16: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 16: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 16: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 09:18  havoc

	* vid_wgl.c: possible stability improvement in VID_Shutdown - moved
	  ChangeDisplaySettings call after DestroyWindow

2003-05-23 20: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 20: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 09: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 09:38  havoc

	* common.c, console.c, console.h: console logging (-condebug) now
	  starts earlier in the startup process (just after the filesystem)

2003-05-23 08:58  havoc

	* bspfile.h, model_brush.c, model_shared.c, model_shared.h: more
	  preparation for quake2 bsp support

2003-05-23 08:30  havoc

	* sv_phys.c: merged SV_Physics_Client into SV_Physics (not
	  difficult)

2003-05-23 08: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 14:15  havoc

	* snd_dma.c: renamed "precache" cvar to "snd_precache" because it's
	  name was very confusing

2003-05-21 13: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 11: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 11:05  havoc

	* world.c: added a note about an id bug with triggers and ignoring
	  .owner (the fact they don't)

2003-05-19 09: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 12: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 13:34  havoc

	* image.c: corrected call to Image_HasAlpha to be Image_CheckAlpha

2003-05-16 13: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 13:09  havoc

	* pr_cmds.c: added DP_GFX_SKYBOX and DP_CL_LOADSKY extensions

2003-04-29 18: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 12: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 12:19  havoc

	* gl_backend.c: increased default gl_mesh_maxverts to 65536, and
	  also increased the limit to that

2003-04-26 12:03  havoc

	* net_udp.c: cleaned up UDP_Init a bit

2003-04-25 16: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 16:39  havoc

	* net_udp.c: UDP_Init now tries to bind to INADDR_ANY and various
	  others in sequence

2003-04-25 14: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 13:48  havoc

	* pr_execprogram.h: increased runaway loop counter 10x (now 10
	  million opcodes before runaway error

2003-04-21 13:27  havoc

	* gl_rmain.c: always do r_shadow_realtime_dlight if
	  r_shadow_realtime_world is on

2003-04-21 13:26  havoc

	* cl_main.c: nudge dlights out of walls if they're too close

2003-04-21 12: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-20 07: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-20 07:39  havoc

	* gl_rmain.c: fix flipped sprites

2003-04-18 14: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 14:03  havoc

	* model_shared.c: very minor correction to a comment

2003-04-18 14:03  havoc

	* r_light.c: inlined the only call of R_ModelLightPoint (in
	  R_LightModel)

2003-04-18 14: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 13: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 13: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 13:53  havoc

	* cl_main.c: fix model lighting (pitch was backwards)

2003-04-15 00:23  havoc

	* pr_cmds.c: added some extensions I forgot to put in the list
	  before

2003-04-14 14:18  havoc

	* menu.c, net_main.c: removed special cases for transfusion in
	  server search messages (now prints gamename)

2003-04-14 05: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 12:45  havoc

	* net_udp.c: expanded UDP_Read and UDP_Write error messages to
	  include the function parameters

2003-04-10 06:03  havoc

	* model_brush.c: Mod_FindNonSolidLocation fixed for no map case
	  (again)

2003-04-08 10: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 10:02  havoc

	* pr_cmds.c: added DP_QUAKE3_MODEL extension (thanks to Elric for
	  pointing out the need for this)

2003-04-07 08: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-07 07: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-07 03:45  havoc

	* menu.c: fixed M_ScanSaves to use FS_Open properly

2003-04-07 03: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-07 03:43  havoc

	* r_shadow.c: forgot to make a couple changes before committing
	  this

2003-04-07 03: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 21: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 21:23  havoc

	* makefile: release build optimizations changed - removed
	  -funroll-loops, added -O9

2003-04-06 02:23  havoc

	* protocol.h: revised EntityFrame4 function prototypes (no I still
	  haven't coded this)

2003-04-05 18:53  havoc

	* r_shadow.c: optimized shadow volume generation a bit (only
	  projects vertices that are necessary)

2003-04-03 22:56  havoc

	* protocol.h: preparation for a new protocol upgrade to use partial
	  frame updates

2003-04-03 22:55  havoc

	* cl_main.c, cl_parse.c, client.h, view.c: got rid of use of eye in
	  entity database

2003-04-03 22:49  havoc

	* quakedef.h: added MAX_NETRELIABLE define (currently same as
	  MAX_DATAGRAM, but will change someday)

2003-04-03 10: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-03 02: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 20:51  havoc

	* protocol.c: fix for incorrect rounding of vertex locations when
	  using RENDER_LOWPRECISION (now it always rounds to nearest)

2003-04-02 02: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-02 02:20  havoc

	* net_main.c: fixed NET_SendToAll

2003-03-31 23: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 23: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 21: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 21:18  havoc

	* snd_dma.c, snd_mem.c, sound.h: no longer complains about missing
	  ambient liquid sounds in nexuiz

2003-03-30 10:40  havoc

	* dpvsimpledecode.c: removed a couple unused hz_bitstream_read
	  functions

2003-03-29 21:02  havoc

	* gl_models.c: fix zym model rendering (wrong vertex padding)

2003-03-29 19: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 17: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 16: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 16: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 16:43  havoc

	* net.h, net_main.c: added developer_networking cvar

2003-03-28 14: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 14: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 14: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 11: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 11: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 09: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-28 04: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-28 04: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-28 04: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-28 04:18  havoc

	* net_win.c: forgot to remove #include "net_wipx.h"

2003-03-28 04:04  havoc

	* darkplaces.dsp, makefile.mingw, makefile.mingwcross, net_win.c,
	  net_wipx.c, net_wipx.h: removed winsock ipx support

2003-03-27 13: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 09:58  havoc

	* fs.c: Elric's pk3 support (no support for compressed files yet,
	  that's still to come)

2003-03-27 09: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 09: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 09: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 09: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 11:23  havoc

	* cl_parse.c, gl_rmain.c, render.h: got rid of R_NewMap, directly
	  calls R_Modules_NewMap instead

2003-03-22 11:22  havoc

	* cl_main.c: fix decals bug introduced by transition to matrix use

2003-03-21 22:54  havoc

	* server.h, sv_phys.c, sv_user.c: added more SV_CheckVelocity calls
	  on players for safety sake

2003-03-21 22: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 22: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-15 05: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-15 05: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 17: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 16:38  havoc

	* gl_textures.c: fix for 16bit textures looking awful (bug in the
	  alpha check for 8bit)

2003-03-10 08: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 21: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 17: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 12: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 12: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 10: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 10:33  havoc

	* r_shadow.c: unfinished beginnings of support for voodoo1/voodoo2
	  class paths for realtime lighting (no shadows however)

2003-03-07 10:31  havoc

	* model_brush.c: now uses TEXF_FORCELINEAR on lightmaps

2003-03-07 10:31  havoc

	* gl_textures.c, r_textures.h: added TEXF_FORCENEAREST and
	  TEXF_FORCELINEAR flags

2003-03-07 10: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 10:28  havoc

	* gl_backend.c: added gl_delayfinish cvar (default off, used to
	  always be on)

2003-03-07 10: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 10: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 10: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 10:23  havoc

	* matrixlib.c, matrixlib.h: added Matrix4x4_OriginFromMatrix, and
	  Matrix4x4_ScaleFromMatrix

2003-03-05 08:20  havoc

	* makefile.mingw: got an email about this being out of date, fixed

2003-03-02 08: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-02 08:18  havoc

	* model_alias.c: fix external model skins (they weren't rendering)

2003-03-02 02: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 12:31  havoc

	* gl_backend.c: fix improper handling of overbright pixels when
	  saving screenshots

2003-02-28 12: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 12: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 12: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-27 01: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 13:47  havoc

	* r_shadow.c: adjustable r_shadow_projectdistance for testing
	  (trying to identify Radeon bug)

2003-02-26 02: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 10: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 10:22  havoc

	* mathlib.h: added VectorMultiply (not used by anything, but for
	  completeness...)

2003-02-21 10:22  havoc

	* cl_parse.c: disable step interpolation unless entity is
	  MOVETYPE_STEP

2003-02-20 10: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 10:20  havoc

	* sv_main.c: added #include "portals.h"

2003-02-20 10: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 10: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 10:13  havoc

	* net_main.c: simplified "connect local" a bit

2003-02-20 10: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-17 03: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-17 01: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-14 02: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-14 02:22  havoc

	* r_light.c: fix some bugs with r_fullbright, no lights, and other
	  such cases

2003-02-14 02: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-14 02:16  havoc

	* mathlib.h, matrixlib.c, matrixlib.h: added VectorBlend and
	  Matrix4x4_Blend

2003-02-14 02:15  havoc

	* gl_rmain.c: don't crash on NULL model in entity culling

2003-02-12 19: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-12 01: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-12 00: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 15:03  havoc

	* sv_main.c: another stack overflow fixed, this one more on the
	  order of 300k+?

2003-02-11 14: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-11 00: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 22:04  havoc

	* cl_main.c: added cl_noplayershadow cvar to allow disabling player
	  shadow

2003-02-10 22:02  havoc

	* sv_main.c: almost lost this very important part of the MAX_EDICTS
	  commit

2003-02-10 15: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 15:20  havoc

	* makefile.mingwcross: makefile to use for cross compiling mingw
	  builds

2003-02-01 09:42  havoc

	* r_sky.c: fixed targa quake sky loading

2003-01-31 08: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-31 08:24  havoc

	* vid_shared.c: limited pitch range to that of quake

2003-01-28 03: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-28 03:14  havoc

	* cl_main.c: corrected numbering of polygons in comment (oops)

2003-01-28 03:13  havoc

	* cl_main.c: added a lot of comments to lightning beam code

2003-01-27 10: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-27 08:37  havoc

	* makefile: fixed some very ewww bugs (a few .c files made their
	  way into the .o lists)

2003-01-27 08:36  havoc

	* r_shadow.c: corrected rtlights loading of cubemapname (stupid
	  typo)

2003-01-27 03: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 21: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 20:34  havoc

	* menu.c: added resolutions 320x240, 400x300, 1152x864, 1280x1024,
	  1600x1200, 1792x1344, 1920x1440, 2048x1536

2003-01-22 01:49  havoc

	* cl_parse.c: reduced intensity and radius of teleport flash

2003-01-22 01:42  havoc

	* pr_cmds.c: removed allsolid check from droptofloor

2003-01-22 01:42  havoc

	* r_shadow.c: turned off mipmapping on attenuation texture

2003-01-17 00: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 14:21  havoc

	* model_brush.c: changed a debugging notice about texture loading

2003-01-15 14:13  havoc

	* gl_rsurf.c: now checks for NULL worldmodel

2003-01-15 14:12  havoc

	* image.c: now prints image size (was printing garbage before)

2003-01-15 14:12  havoc

	* mathlib.c: tiny cleanup to RotatePointAroundVector (uses a
	  VectorCopy instead of 3 lines)

2003-01-15 14:09  havoc

	* model_shared.c: fixed bumpmapping!  now looks correct

2003-01-15 14: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 14: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 13:59  havoc

	* gl_rmain.c: now checks if worldmodel is NULL again, some comment
	  cleanups and clarifications

2003-01-15 12:40  havoc

	* cl_parse.c: cleanup of precache messages and assorted comments

2003-01-06 15:28  molivier

	* menu.c: E4M9 was added to the Transfusion map list

2002-12-25 00: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 23:59  havoc

	* gl_textures.c: detect bogus texture upload attempts and print the
	  info to console

2002-12-22 23: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 18: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-11 04:06  havoc

	* gl_backend.c, glquake.h, vid_shared.c: I guess those
	  glLoadIdentity calls were more important than expected

2002-12-09 13: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 13:35  havoc

	* cl_particles.c: added Electro's smoke trail tweaks decals now
	  follow the bmodel they stuck to

2002-12-03 11:16  molivier

	* matrixlib.c: Removed some warnings in MSVC6

2002-12-03 11:15  molivier

	* menu.c: Updated Transfusion map list

2002-12-02 21:06  havoc

	* gl_draw.c: fix textured DrawQ_Fill problem when DrawQ_Fill is the
	  first 2d primitive rendered (thanks Tomaz)

2002-12-02 05:52  havoc

	* cl_particles.c: another bugfix for WORKINGLQUAKE code

2002-12-02 02: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-02 02:53  havoc

	* net_main.c: beginnings of some proper server list code, commented
	  out for now

2002-12-02 02: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-02 02: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-02 02:33  havoc

	* image.c, image.h: added loadtextureimagebumpasnmap

2002-12-02 02:31  havoc

	* gl_rsurf.c: water moves around again

2002-12-02 02:28  havoc

	* gl_models.c: optimized single frame lerp case removed
	  FetchSkinFrame mesh rendering loop now... advances the mesh

2002-12-02 02: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-02 01: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 21:08  havoc

	* darkplaces.dsp, matrixlib.h: fix compiling problems in MSVC
	  (thanks Tomaz)

2002-12-01 09:28  havoc

	* cl_particles.c: a few more glquake and glqwcl compatibility fixes

2002-12-01 05:40  havoc

	* cl_particles.c: added a simplified CL_TraceLine in the
	  WORKINGLQUAKE code and enabled particle collisions in
	  WORKINGLQUAKE

2002-11-30 10: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-29 01: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-28 04:41  havoc

	* gl_models.c, model_alias.c, model_alias.h, model_shared.h:
	  mdl/md2 transitioned to meshes

2002-11-28 03: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-27 01: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 22:01  havoc

	* model_alias.h: cleaned up md3 structs

2002-11-26 21:55  havoc

	* model_alias.c, model_shared.h: removed model_t mdlmd2data_frames
	  (no longer needed)

2002-11-26 21: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 21: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-25 02: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-25 02:08  havoc

	* model_alias.h: reverse engineered md3 format and wrote struct
	  declarations (this is *NOT* based on Q3 SDK source)

2002-11-22 13: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 19: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 19:24  havoc

	* gl_rsurf.c: defaulting to r_surfaceworldnode 1

2002-11-21 11:56  havoc

	* gl_rsurf.c: fixed a silly and harmless typo in RSurfShader_Water
	  (*chain++ should have been chain++)

2002-11-20 13: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 12: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 12: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 14: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 14:35  havoc

	* gl_backend.c, gl_backend.h: merged GL_DrawRangeElements into
	  R_Mesh_Draw for a mild speed gain

2002-11-16 13: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-16 02: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-16 02:00  havoc

	* sv_phys.c: fixed fiends teleporting when they check if a jump is
	  a good one or not

2002-11-14 09:05  molivier

	* jpeg.c: The Linux version doesn't need libjpeg.h anymore

2002-11-11 22: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-11 06: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-10 06: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-10 03:51  havoc

	* common.c, common.h: add GAME_NEXIUZ gamemode

2002-11-10 03:49  havoc

	* model_alias.c: fixed Mod_LoadZymoticModel - it had TONS of crashs

2002-11-10 03:34  havoc

	* model_brush.c: fix crashs on maps with missing textures

2002-11-10 03:26  havoc

	* r_crosshairs.c: fix which crosshair texture is used

2002-11-10 03:22  havoc

	* sv_main.c: don't send free entities!	(I've been observing this
	  bug for months)

2002-11-09 00: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 21: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 21:42  havoc

	* cl_parse.c: changed a server protocol error to use Host_Error

2002-11-07 21:41  havoc

	* gl_rmain.c: when realtime mode fails now mentions setting
	  vid_bitsperpixel to 32 as well

2002-11-07 21:40  havoc

	* image.c: LoadTGA now loads colormapped and greyscale targas (as
	  found in qe1m1 project)

2002-11-07 21:38  havoc

	* vid_shared.c: don't allow stencil without bitsperpixel 32

2002-11-04 16:56  havoc

	* model_brush.h: added comments explaining what all the fields of
	  surfmesh_t do

2002-11-04 02:28  havoc

	* r_shadow.c, r_shadow.h: removed use of 3D textures

2002-11-04 02:23  havoc

	* gl_rmain.c: renamed r_staticworldlights to
	  r_shadow_staticworldlights

2002-11-04 02: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-04 00:10  havoc

	* gl_rsurf.c, model_brush.c: fix polygon distance checks (the
	  radius comparison was completely wrong)

2002-11-04 00:07  havoc

	* glquake.h, vid_shared.c: added support for glPolygonOffset (not
	  used though)

2002-10-31 16:35  havoc

	* image.c: untested support for tenebrae override/ textures
	  directory

2002-10-31 16: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 16: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 16:23  havoc

	* cl_particles.c: commented out two unused static const int
	  variables gcc 3.3 noticed

2002-10-30 12:46  havoc

	* cl_main.c, client.h, view.c: fix viewmodel crash

2002-10-29 22:06  havoc

	* r_shadow.c: minor update to texture flags and logic stuff

2002-10-29 22:04  havoc

	* gl_backend.c: fix for use of cubemaps on hardware without 3d
	  texture support

2002-10-29 20:29  havoc

	* cl_main.c, gl_rmain.c, view.c: view model is now properly lit in
	  realtime mode

2002-10-29 19:55  havoc

	* r_shadow.c: color the torch light

2002-10-29 19:36  havoc

	* r_shadow.c: tweak large flame lights a bit more

2002-10-29 19: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 19:01  havoc

	* r_shadow.c: now lights are automatically loaded from the .bsp,
	  .lights, or .rtlights if available

2002-10-29 16: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 16: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 15: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 15:24  havoc

	* pr_exec.c: check for negative pr_depth in PR_Crash just to be
	  obsessive

2002-10-28 15:23  havoc

	* pr_cmds.c: fixed CopyEntity builtin, now only copies the vars
	  (not the physics info and such)

2002-10-28 10: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 14: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 14:10  havoc

	* r_sky.c: added a FIXME note about skyboxes and vid_restart

2002-10-27 13:13  havoc

	* gl_backend.c: set depth and stencil clear values

2002-10-27 13:11  havoc

	* collision.c: check for out of bounds fraction

2002-10-27 13:00  havoc

	* cl_collision.c: add an error check for invalid maxfrac before
	  returning it, nothing significant

2002-10-26 17: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 14:30  havoc

	* sv_phys.c: fix for lift blocking due to imprecision at very low
	  frame times (slowmo)

2002-10-25 13:15  havoc

	* sv_phys.c: minor whitespace cleanup

2002-10-22 09: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 09:10  havoc

	* gl_backend.c: added a comment describing GL triangle strip order
	  (why add it to this?	convenience)

2002-10-22 09:05  havoc

	* makefile: make profile now works no longer prints 'Compiling
	  whatever.c' and so on as per Mercury's request

2002-10-22 09:03  havoc

	* r_shadow.c: cast shadows from frontfaces instead of backfaces

2002-10-22 09:02  havoc

	* vid_shared.c: don't use 3d textures on drivers that don't
	  explicitly advertise it as an extension

2002-10-21 09: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-21 08:07  molivier

	* menu.c: The new video menu is clean now (or at least cleaner).
	  Updated Transfusion map list

2002-10-20 01: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 12: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 11: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-17 04:44  havoc

	* makefile.mingw: trying less optimizations in hopes that it will
	  fix the crashs

2002-10-17 04:39  havoc

	* r_shadow.c: MSVC has a pathetic stack size.

2002-10-17 00:33  havoc

	* r_shadow.c: oops, removed the wrong one

2002-10-17 00:26  havoc

	* r_shadow.c: remove unused variables

2002-10-16 23: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 10: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-16 01:22  havoc

	* cl_video.c: made the QueueWantsMore message a Con_DPrintf

2002-10-14 21:37  havoc

	* cl_parse.c: cruft

2002-10-14 21:34  havoc

	* cl_parse.c: fix jitter in interpolation of monster movement

2002-10-14 21: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-14 00: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-11 08:20  molivier

	* menu.c: Added Frag'M to the Transfusion map list

2002-10-09 19:25  havoc

	* sv_main.c: fixed glowing entities disappearing randomly (by
	  testing more thoroughly)

2002-10-07 20:43  havoc

	* makefile: Elric rewrote the makefile, it is quite self
	  explanatory when run.

2002-10-07 01: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 18: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 17:08  havoc

	* host.c: fix restart command

2002-10-06 17:07  havoc

	* host_cmd.c: clean up map changes a little more

2002-10-06 16: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 16:43  havoc

	* gl_backend.c: GL_DrawRangeElements now reports if it got a bogus
	  indexcount and vertex range

2002-10-06 16:40  havoc

	* model_shared.c: R_ShadowMesh_Finish now discards empty meshs

2002-10-06 16:23  havoc

	* vid_shared.c: detect 3D textures as GL_EXT_texture3D again

2002-10-06 15:58  havoc

	* model_alias.c: use qbyte * math instead of void * math to keep
	  MSVC happy

2002-10-06 05: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 21:32  havoc

	* gl_backend.c, gl_backend.h: backend now supports 1D, 2D, 3D, and
	  Cubemap texture binding

2002-10-05 16: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-05 00:31  havoc

	* r_shadow.c: now uploads a 3D attenuation texture (not used yet)

2002-10-05 00: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 23: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 15: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-04 08: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 19: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-03 08:51  molivier

	* gl_models.c: From LordHavoc: the r_quickmodels cvar wasn't used
	  anywhere; it's fixed.

2002-10-03 08: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 14:02  molivier

	* host_cmd.c: Fixed dedicated server (the server was never really
	  spawned)

2002-10-02 09:02  molivier

	* makefile: Made a few changes to makefile so we can switch
	  compiler more easily

2002-10-02 08: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 20: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 16: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 16:52  havoc

	* cl_particles.c: smoke from bullet impacts and rocket trails now
	  grows in size a little as it fades

2002-09-30 08: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-30 05:37  havoc

	* host_cmd.c: fix changelevel, and simplify restart code

2002-09-30 04:34  havoc

	* gl_draw.c: fix view blends

2002-09-30 04:19  havoc

	* r_shadow.h: newline to keep gcc3 happy

2002-09-30 04:07  havoc

	* r_shadow.h: forgot to commit this

2002-09-30 03: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-30 03: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-30 03:05  havoc

	* cl_main.c, client.h, r_light.c, r_light.h: ent field added back
	  to dlight structures

2002-09-30 03:00  havoc

	* cl_particles.c: now uses more smoke particles for gunshots, looks
	  better more WORKINGLQUAKE stuff

2002-09-30 02:55  havoc

	* vid_glx.c: added -gl_driver commandline option, and cleaned up
	  some glX init stuff a bit

2002-09-29 04:06  havoc

	* gl_draw.c: fix DrawQ_Fill rendering (Pic with no string)

2002-09-29 01: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 14:41  havoc

	* vid_wgl.c: needed one more prototype

2002-09-28 14:34  havoc

	* vid_wgl.c: trying to fix many forward references in input code

2002-09-28 12: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 12: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 12:23  havoc

	* host_cmd.c: fix restart command (can't do the "connect local" for
	  a restart)

2002-09-28 07: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-28 06:44  havoc

	* cl_screen.c, cl_screen.h, cl_video.c, gl_draw.c: 2D is now drawn
	  using R_Mesh system

2002-09-28 06:43  havoc

	* gl_backend.c: fixed glOrtho call

2002-09-28 06:42  havoc

	* cl_parse.c, cl_particles.c, client.h: added sparks and smoke to
	  explosions

2002-09-27 14: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 09: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-27 07:49  havoc

	* model_alias.c, model_shared.c, model_shared.h: alias mdl/md2
	  models now have a mdlmd2data_triangleneighbors array

2002-09-27 07: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-27 07:06  havoc

	* gl_draw.c: added newline to end of Draw_CachePic error message

2002-09-26 09:28  molivier

	* menu.c: Updated Transfusion map list

2002-09-26 09: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-26 04:55  havoc

	* pr_exec.c: increased maximum stack depth

2002-09-26 04:38  havoc

	* cl_parse.c: limit entity movement lerp to 10th of a second

2002-09-26 03:45  havoc

	* vid_glx.c: fix for repeated mode switchs losing keyboard/mouse
	  focus

2002-09-26 03: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-25 04:38  havoc

	* vid_wgl.c: added -gl_driver commandline option, it's useless
	  though (crashs when I try it on my voodoo2)

2002-09-25 00:17  havoc

	* net_udp.c, net_udp.h: fix warnings

2002-09-25 00:11  havoc

	* net.h, net_wipx.c, net_wipx.h: fix some prototype warnings

2002-09-25 00:11  havoc

	* makefile.mingw: update file list

2002-09-25 00:10  havoc

	* sys_win.c: fix a warning on argv

2002-09-25 00:09  havoc

	* vid_wgl.c: remove an unused extension function list

2002-09-24 14: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 10:38  havoc

	* cd_linux.c: whitespace changes by Elric

2002-09-24 09: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 09: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-24 08:59  havoc

	* vid_null.c: fixed.

2002-09-23 08:13  havoc

	* vid_shared.c: default to 640x480x16 again, just for consistency
	  with other engines

2002-09-23 07: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-23 07:56  havoc

	* vid.h, vid_shared.c: VID_CompareMode removed

2002-09-23 06: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-23 06:24  havoc

	* sys_win.c: now uses VID_Shutdown instead of VID_SetDefaultMode
	  (which hardly does anything in vid_wgl anyway)

2002-09-23 06:17  havoc

	* snd_mix.c, menu.c: no need to include winquake.h

2002-09-23 04:02  eviltypeguy

	* snd_oss.c: Make formatting sane

2002-09-22 02:29  havoc

	* vid_wgl.c: fixed crash on startup and shutdown

2002-09-22 02: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-22 02:16  havoc

	* console.c: Mem_Free on a const pointer apparently irritates MSVC
	  but not gcc...  hush MSVC

2002-09-22 02:15  havoc

	* cd_win.c, net_wins.c, net_wins.h, net_wipx.c, net_wipx.h: const.

2002-09-22 01:18  havoc

	* darkplaces.dsp: DOS line endings

2002-09-20 07: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-20 01:51  havoc

	* cl_main.c: fix for beams coming from invisible objects

2002-09-19 20: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-18 07:02  havoc

	* makefile: disable profiling by default

2002-09-18 06:57  havoc

	* cl_main.c: move CL_RelinkBeams after CL_RelinkNetworkEntities so
	  position is up to date

2002-09-18 06:51  havoc

	* cl_tent.c: make lightning come from player's gun fix lightning
	  visibility (wasn't calculating bounding box before)

2002-09-18 05: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-18 01: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 23:47  havoc

	* cl_particles.c, client.h: sparks and rain are now beam particles

2002-09-17 23:27  havoc

	* gl_rmain.c, render.h: added R_CalcBeamVerts function, calculates
	  vertex array for beam polygon

2002-09-17 23: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-17 03: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 22: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-14 02:25  havoc

	* sv_main.c: enlarge bbox for visibility purposes if there is a
	  glow or other such effect

2002-09-13 06: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-13 05:33  havoc

	* gl_draw.c: unused variable arraylocked removed

2002-09-13 00: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 18: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 16: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 14: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 14:15  havoc

	* keys.c: a little extra error checking in keynum lookup

2002-09-11 17: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 16: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 16:12  havoc

	* snd_dma.c: check for -safe

2002-09-11 15:59  havoc

	* r_sky.c, render.h: R_SetSkyBox now takes a const char *

2002-09-11 15:57  havoc

	* pr_cmds.c: whitespace

2002-09-11 15:54  havoc

	* in_win.c: check for -safe

2002-09-11 15:49  havoc

	* keys.c: whitespace

2002-09-11 15:48  havoc

	* cd_linux.c, cd_win.c: check for -safe

2002-09-11 06: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-11 03:19  havoc

	* gl_rsurf.c: major speed gain in cavetest2 by checking if the
	  portal is facing the wrong way

2002-09-11 02:15  havoc

	* zone.c, zone.h: memheaders are now doubly linked, so Mem_Free
	  goes faster than it used to

2002-09-11 01:04  havoc

	* model_brush.c: corrected an error message in .lights code

2002-09-11 00:47  havoc

	* gl_rsurf.c: no need to update lightmaps if using r_vertexsurfaces

2002-09-11 00: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 19:17  havoc

	* makefile: enable optimizations again (oops)

2002-09-10 19: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 18:54  havoc

	* gl_backend.c: fixed combine overbright behavior

2002-09-09 17: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 17:31  havoc

	* net_main.c: fixed typo

2002-09-09 17: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 16:30  havoc

	* gl_rsurf.c, model_brush.c, model_shared.h: removed
	  modelsortedsurfaces

2002-09-06 18:51  havoc

	* zone.c, zone.h: mempools now have sentinel checks, for
	  completeness

2002-09-06 14:05  havoc

	* model_brush.h: whitespace cleanup

2002-09-06 13: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 11: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 09: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-06 08: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 16: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 16: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 16:22  havoc

	* gl_backend.c: moved state update from R_Mesh_Render to
	  R_Mesh_Draw_GetBuffer

2002-09-05 15:05  havoc

	* gl_backend.c: buf_mesh is no longer a pointer, since there is
	  only one of it

2002-09-05 14: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 12:24  havoc

	* pr_cmds.c: added getsurfaceclippedpoint builtin

2002-09-05 12: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 12: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-02 08:46  havoc

	* gl_backend.c: make sure zFar is at least 64 units to avoid
	  feeding a bogus value to glFrustum

2002-09-02 08:20  molivier

	* menu.c: Updated Transfusion map list

2002-09-01 14: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-09-01 03: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-09-01 03:05  havoc

	* cl_particles.c: reduced default max particles from 16384 to 8192

2002-08-31 11: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 11:15  havoc

	* console.c: removed console text left/right edge margins (giving
	  an extra 2 chars per line)

2002-08-30 15:18  havoc

	* gl_rmain.c: weapon models were not being lit in maps using
	  .lights

2002-08-30 15:17  havoc

	* r_light.c: commented out bit-hacking 1/sqrt code

2002-08-30 15:16  havoc

	* matrixlib.c: consistency cleanup of a (disabled) part of
	  Invert_Simple

2002-08-30 15:13  havoc

	* darkplaces.dsp: MSVC updated the project file, why I'm not sure,
	  oh well...

2002-08-30 15:09  havoc

	* darkplaces.dsp: changed to use C runtime library DLL instead of
	  static linking it

2002-08-30 11: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-30 04:20  havoc

	* model_alias.c: fixed bug which caused all models to be untextured
	  if they used internal skins

2002-08-30 04:06  havoc

	* gl_models.c: draw models which have no textures using the
	  notexture checkerboard

2002-08-30 03:27  havoc

	* model_alias.c: support for loading external skins that don't
	  exist inside the model

2002-08-29 16: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 14:45  havoc

	* gl_models.c: fixed crash when ent->skinnum >= model->numskins

2002-08-29 14:44  havoc

	* gl_rsurf.c: speed gain in lightmap updates

2002-08-28 16: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 15: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 14: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 14:14  havoc

	* menu.c: added lighting options (and explosion clipping) to
	  effects options menu

2002-08-28 13: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-28 08:46  havoc

	* cl_main.c: got rid of dlightradius variable which was never
	  actually used

2002-08-27 13: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 12:04  havoc

	* gl_rmain.c: forgot a m.transparent = in the last commit, and
	  removed a comment

2002-08-27 11: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 11: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 16: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-26 08:24  molivier

	* console.c: Fixed a potential buffer overflow in Con_DebugLog

2002-08-26 07:40  havoc

	* gl_backend.c: renamed mesh_ variables to gl_state. (created a
	  struct for this purpose)

2002-08-25 17: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 14: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 13: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 09: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-23 08: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-23 08: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-23 00:24  havoc

	* pr_cmds.c: added DP_SV_SLOWMO to extensions list

2002-08-22 23:58  havoc

	* cl_particles.c, gl_rsurf.c: made stains more small and focused

2002-08-22 09: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-22 08:13  molivier

	* r_crosshairs.c: Disabled crosshair during intermission

2002-08-21 13:26  molivier

	* sys_win.c: Fixed GetModuleFileName call

2002-08-21 13:24  molivier

	* common.c: Refixed COM_StripExtension	:oP

2002-08-21 11: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 11: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 09:49  molivier

	* common.c: Fixed COM_StripExtension for strings without a single
	  dot

2002-08-21 09:47  molivier

	* menu.c, r_crosshairs.c, screen.h: Static/floating crosshair is
	  now an option controled by the cvar "crosshair_static"

2002-08-21 02: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-21 00:47  havoc

	* fractalnoise.c: corrected spelling of alorgithm

2002-08-20 22:24  havoc

	* gl_draw.c, image.c, image.h, menu.c: fixed menu player
	  colormapping

2002-08-20 21:54  havoc

	* host_cmd.c: changed color command description to mention it is
	  0-15 range, not 0-13

2002-08-20 10: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 09: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-20 05: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-20 04:57  havoc

	* sbar.c: centered Sbar_IntermissionOverlay

2002-08-20 04: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-18 01: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-16 07:59  havoc

	* cl_parse.c: update client color values when new values are
	  recieved from server

2002-08-16 07:57  havoc

	* host_cmd.c: SV_ChangeTeam now actually gets called with the right
	  value

2002-08-16 07:56  havoc

	* pr_cmds.c: reformatted and updated extensions list

2002-08-16 07:55  havoc

	* sbar.c: fix alignment of frag list, it is now centered

2002-08-16 07: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 21:00  havoc

	* sys_linux.c, sys_win.c: only warn about time stepping backwards
	  if it's more than 10ms

2002-08-15 20: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 20: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 20: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-15 01:48  havoc

	* pr_edict.c, pr_exec.c, progs.h: reset stack position when new
	  progs loaded, or error occurs

2002-08-15 01: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 18:51  havoc

	* common.c, common.h, host.c, menu.c, net_main.c: (patch from
	  Elric) BloodBath renamed to Transfusion

2002-08-10 18:29  havoc

	* cl_particles.c, render.h: converted particle rendering to use
	  R_Mesh_Draw_GetBuffer

2002-08-10 01:20  havoc

	* r_sprites.c: now uses R_Mesh_Draw_GetBuffer

2002-08-10 01:13  havoc

	* gl_rmain.c: changed viewblend to use R_Mesh_Draw_GetBuffer

2002-08-10 00:45  havoc

	* r_light.c: converted coronas to R_Mesh_Draw_GetBuffer

2002-08-10 00:19  havoc

	* r_sky.c: converted skysphere to R_Mesh_Draw_GetBuffer

2002-08-10 00:03  havoc

	* gl_rsurf.c: changed a bunch of #if 1's to #if USEMESHBUFFER
	  (which is 1)

2002-08-10 00:02  havoc

	* r_sky.c: skybox now uses R_Mesh_Draw_GetBuffer

2002-08-10 00:01  havoc

	* makefile: re-enable optimizations by default

2002-08-09 23:48  havoc

	* r_explosion.c: converted code to use R_Mesh_Draw_GetBuffer

2002-08-09 23:47  havoc

	* r_crosshairs.c: converted drawing code from R_Mesh_Draw to
	  R_Mesh_Draw_GetBuffer

2002-08-09 23: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 22: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 22:09  havoc

	* image.c: support for top to bottom TGA, thanks Elric.

2002-08-06 18: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 18:04  havoc

	* menu.c: fix for the effects menu input code, thanks Elric

2002-08-06 18: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-06 01:23  havoc

	* cl_parse.c: spawned entities were often not appearing in quake
	  protocol (demos), oops

2002-08-05 21:57  havoc

	* makefile.mingw: the -I and -L  weren't necessary (and didn't work
	  anyway)

2002-08-05 21:18  havoc

	* cgame.c: fix for double to float warning in MSVC

2002-08-05 21: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 15: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 14: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 13: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 13: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 13:39  havoc

	* snd_mix.c: attempt to optimize SND_PaintChannelFrom8 a little bit

2002-08-05 13:11  havoc

	* sv_main.c: fix view_ofs when dead (negative viewheight)

2002-08-05 12: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 12: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 11:47  havoc

	* cg_math.h, cgame.c: optimized phys_moveentities (in cgame.c) so
	  it doesn't waste so much time

2002-08-04 22:07  havoc

	* cl_main.c, cl_parse.c, client.h, sv_main.c: fix svc_setview

2002-08-04 22:04  havoc

	* vid_wgl.c: moved the GL_CloseLibrary call a bit

2002-08-04 21: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 17: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 23:02  havoc

	* cl_light.h, darkplaces.dsp: removed cl_light.h (which has already
	  been merged into client.h)

2002-08-03 22: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 22: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 22:46  havoc

	* cl_parse.c: optimized entity updates substantially (or rather,
	  UpdateEnd), nice speedup

2002-08-03 22: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 22: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 22: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 22: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 22:27  havoc

	* host_cmd.c: cls.spawnparms isn't needed

2002-08-03 22: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 22:23  havoc

	* world.c: print edict responsible for "Trigger in clipping list"
	  error

2002-08-02 20: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 17: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 17: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 17: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 17: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 16: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 16:55  havoc

	* net_main.c: 'sock' local variable isn't needed anymore, cleaned
	  up NET_Shutdown socket closing loop

2002-08-02 16:53  havoc

	* net_main.c: fixed bug in NET_Shutdown related to freeing sockets

2002-08-02 14:11  havoc

	* gl_backend.c, gl_backend.h: removed R_Mesh_Draw_NativeOnly (it
	  was not used) cleaned up modulate detection (overbright
	  decisions)

2002-08-01 08: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 16:04  havoc

	* gl_backend.c, gl_draw.c: cleaned up gl_mesh_drawmode related
	  code, hopefully fixing various unknown bugs

2002-07-31 15:46  havoc

	* pr_cmds.c: expanded sprint/centerprint buffer from 256 chars to
	  4096

2002-07-31 14: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 13: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 11:57  havoc

	* makefile.mingw: added -fno-strict-aliasing  (even though it isn't
	  a problem with gcc 2.95.3 anyway)

2002-07-31 11: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-31 07:24  havoc

	* darkplaces.txt: added the readme file to cvs (... and it needs
	  massive updates)

2002-07-31 07:15  havoc

	* cl_screen.c, dpvsimpledecode.c, snd_win.c, wavefile.c: win32
	  fixes and some MSVC warnings fixed

2002-07-31 05:07  knghtbrd

	* cl_particles.c: Fix for -particles specified wrongly on the
	  cmdline..

2002-07-30 05:15  havoc

	* r_crosshairs.c: fix 'flashing' crosshair bug caused by negative
	  colors (clamp them before drawing the sprite)

2002-07-29 15:23  havoc

	* gl_rsurf.c: slight simplification/optimzation/readability
	  enhancement/whatever to animating textures

2002-07-29 15:21  havoc

	* model_brush.c: fix animating textures

2002-07-29 13: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 13:11  knghtbrd

	* r_light.c: Make coronas look better (it looks good in Twilight,
	  so...)

2002-07-29 12: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 12:31  havoc

	* cl_particles.c: much nicer rocket and grenade trails

2002-07-29 12: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 09: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-28 07:45  knghtbrd

	* pr_cmds.c: Alphabetized extensions and added TW_SV_STEPCONTROL..

2002-07-26 08:18  molivier

	* image.c: Fixed PCX file loading for images with an odd width

2002-07-25 11:58  havoc

	* cl_video.c: now uses a fragment texture for the video (massive
	  speedup) clears audioqueue when video stops

2002-07-25 11: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 11:50  havoc

	* snd_dma.c: fix fatal bugs in S_RawSamples_Enqueue and Dequeue
	  relating to mis-detected buffer wraps

2002-07-25 11: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-25 04:51  havoc

	* snd_mix.c: whitespace

2002-07-25 04:49  havoc

	* snd_mix.c: whitespace cleanup

2002-07-25 04: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-25 04:03  havoc

	* makefile: add -fno-strict-aliasing

2002-07-25 03:44  havoc

	* snd_mem.c: minor whitespace and comment cleanup

2002-07-25 03: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 10: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-20 03:02  havoc

	* gl_rmain.c: fix view blends so they are alpha, not additive

2002-07-17 07: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-17 07: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-17 07:18  havoc

	* mathlib.h: put parentheses around parameters to min/max/bound
	  macros

2002-07-17 07: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 20: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-08 08:54  havoc

	* darkplaces.dsp, makefile.mingw: updated mingw makefile and MSVC
	  project to add matrix4x4.c and matrix3x4.c

2002-07-08 08: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-08 04:57  havoc

	* mathlib.c: some whitespace cleanups and a correction of a comment

2002-07-08 04:40  havoc

	* matrix3x4.c, matrix4x4.c: Matrix4x4_CreateRotate and
	  Matrix3x4_CreateRotate now take degrees instead of radians for
	  the angle

2002-07-08 02:39  havoc

	* mathlib.c: a minor whitespace cleanup on R_ConcatRotations

2002-07-08 02: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-08 02:02  havoc

	* .cvsignore: updated .cvsignore so it ignores darkplaces-3dfx and
	  gmon.out

2002-07-08 02: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-08 01: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-08 01:38  havoc

	* mathlib.h: now includes qtypes.h

2002-07-08 01:37  havoc

	* qtypes.h, quakedef.h: added a qtypes.h for little things like
	  qbyte and such

2002-07-07 22:43  knghtbrd

	* cl_screen.c: Make screenshot saving more like Twilight's.

2002-07-06 22:23  havoc

	* mathlib.h: corrected QuatMake math, and commented out the entire
	  set of quaternion macros

2002-07-06 14:04  knghtbrd

	* darkplaces.dsp, darkplaces.dsw: Make sure these files are marked
	  as binary so CVS keeps the dos newlines.

2002-07-06 03: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-06 03: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-06 03:43  havoc

	* sv_phys.c: fix for grenades sinking into brush model floor in
	  start.bsp

2002-07-05 15:28  knghtbrd

	* cl_tent.c: Change to using a flash for teleport rather than a
	  particle effect.

2002-07-05 05:28  knghtbrd

	* pr_edict.c: Kill trigraphs.  Die die die.  Or something.

2002-06-29 06: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 09:19  molivier

	* vid_wgl.c: Fixed video modes menu on Win32

2002-06-14 11:49  knghtbrd

	* pr_edict.c: Someone has been programming QC too long.  (At least
	  it was QC related!)

2002-06-13 21: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-13 02:38  lordhavoc

	* r_light.c: Forgot to apply Vic's axial patch for r_light.c, here
	  it is.

2002-06-13 02:25  lordhavoc

	* gl_rsurf.c: Optimized AddDynamicLights and StainNode for axial
	  surfaces/nodes (respectively), thanks to Vic for example code.

2002-06-12 14:24  molivier

	* menu.c: Added a special key binding menu when compiling for
	  BloodBath

2002-06-12 14:22  molivier

	* sys_win.c: Removed an error when compiling with MSVC

2002-06-10 23:43  lordhavoc

	* gl_rsurf.c: faster stainmap code in BuildLightMap

2002-06-10 23: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 23:40  lordhavoc

	* sv_phys.c: cleaned up SV_Physics_Toss a bit - particularly water
	  transitions and floating items

2002-06-10 21: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 19:21  lordhavoc

	* sv_phys.c: advance angles as well as origin on clients when
	  noclipping (why?  I don't know, consistency)

2002-06-09 02:36  lordhavoc

	* sv_phys.c: step up stairs while flying

2002-06-09 02: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-09 02:26  lordhavoc

	* cl_particles.c: made snow smaller and slightly transparent, looks
	  better now

2002-06-09 02: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-09 02: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 22: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 21: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 19: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-03 08:14  molivier

	* menu.c: Updated BloodBath maps list

2002-06-03 05:02  lordhavoc

	* gl_backend.c: make r_render skip the 3D rendering code (I forgot
	  this before? ick)

2002-06-03 04:19  lordhavoc

	* gl_rmain.c: removed unneeded r_render check

2002-06-03 04:07  lordhavoc

	* gl_rmain.c: disable hidden surface removal by default

2002-06-02 21: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 15:47  knghtbrd

	* buildnumber.c: Unused.

2002-06-02 15: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 23: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 23: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 23: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 13: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-27 08: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-27 08:48  lordhavoc

	* collision.c: make bbox collisions work again

2002-05-27 08:47  lordhavoc

	* gl_backend.c: fix for gl_mesh_maxtriangles not defaulting
	  correctly and raised minimum limit to 1024

2002-05-27 08:44  lordhavoc

	* cl_particles.c: added some smoke to the fire effect (requested
	  for bloodbath)

2002-05-22 12:08  lordhavoc

	* collision.c: fix for uninitialized start/end of trace against
	  bbox (oops!!)

2002-05-22 11: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-22 05: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 13:12  lordhavoc

	* .cvsignore: ignore various MSVC files (.opt, .plg, .ncb) and .exe

2002-05-21 13:10  lordhavoc

	* .cvsignore: ignore .o files

2002-05-21 12:49  lordhavoc

	* darkplaces.dsp: added collision.c, cl_collision.c. collision.h,
	  cl_collision.h

2002-05-21 12: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 12: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 12:22  lordhavoc

	* sv_user.c: changed Length() call to VectorLength() macro in two
	  places

2002-05-21 12:20  lordhavoc

	* view.c: changed Length() call to VectorLength() macro...  inside
	  a comment...	yes pointless I know...

2002-05-21 12: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-21 05:51  lordhavoc

	* makefile.mingw: build for -mwindows (so it doesn't open a
	  console)

2002-05-21 04:32  lordhavoc

	* model_alias.c: validate animations in zym models

2002-05-19 03:30  lordhavoc

	* model_brush.c: fix for really dumb mistake (missing memset) in
	  Mod_SplitSurfMeshIfTooBig

2002-05-16 08: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-16 08:51  lordhavoc

	* gl_textures.c: use qglDeleteTextures, not glDeleteTextures

2002-05-15 11: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 10: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 10:53  lordhavoc

	* r_sky.c: reduced skysphere from 2048 triangles to 1024

2002-05-15 06: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-15 05: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-15 05:55  lordhavoc

	* pr_cmds.c: oops forgot to commit this piece of the unsuccessful
	  support for floating items

2002-05-15 04: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-15 04:25  lordhavoc

	* gl_backend.c: slight optimizations to GL_ConvertColorsFloattoByte

2002-05-14 12: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 12: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 14: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 14: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-04 00: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-04 00: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 09:37  lordhavoc

	* palette.c: i is not longer an unsigned short in
	  Palette_Setup8to24

2002-04-30 08:28  lordhavoc

	* gl_draw.c, gl_textures.c, r_clip.c: more cleaning -
	  glTexParameterf replaced with glTexParameteri

2002-04-30 08: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-30 08:03  lordhavoc

	* gl_draw.c: no longer uses glColor3f at all

2002-04-30 08:02  lordhavoc

	* glquake.h: disabled lookup of unused multitexture function
	  (glMultiTexCoord2f)

2002-04-30 07:43  lordhavoc

	* vid_shared.c: disabled lookup of unused multitexture function
	  (glMultiTexCoord2f)

2002-04-28 22: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 21: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 21: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 21: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-12 06:24  lordhavoc

	* makefile.mingw: cleaned up the newlines (carriagereturn
	  carriagereturn linefeed?  weird!)

2002-04-11 11: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 11:30  lordhavoc

	* gl_rmain.c: timerefresh works more sanely again

2002-04-06 05: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 11: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 11: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 11:14  lordhavoc

	* darkplaces.dsp: newline change?

2002-04-01 11: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 10:58  lordhavoc

	* host.c: fix for dedicated server spewing error about cl_avidemo

2002-03-30 06: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-30 06:00  lordhavoc

	* model_brush.h: forgot to commit this before

2002-03-30 04:04  lordhavoc

	* filematch.c: force filenames to lowercase in listdirectory code
	  on windows

2002-03-27 11:21  lordhavoc

	* makefile: -lXIE does not seem to be necessary, disabled (but left
	  a comment incase anyone needs it)

2002-03-27 10:13  lordhavoc

	* gl_rmain.c, gl_rsurf.c: removed fog shaderstage, merged it into
	  the normal stage

2002-03-27 04: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-27 04:42  lordhavoc

	* cl_particles.c: smoke is alpha again (not additive), rather dark
	  in appearance, lingers longer

2002-03-27 04:40  lordhavoc

	* protocol.c: massive speedups (removed a few 256k memsets)

2002-03-27 01: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 18:47  eviltypeguy

	* filematch.c: Added newline at end for lame gcc versions ;)

2002-03-26 13:40  molivier

	* menu.c: Some menu customizations for BloodBath

2002-03-26 10:55  molivier

	* pr_cmds.c: Fixed PF_registercvar

2002-03-26 01: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-26 00:00  lordhavoc

	* darkplaces.dsp, makefile.mingw: updated MSVC and mingw files to
	  compile filematch.c

2002-03-25 23: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 23:48  lordhavoc

	* cl_screen.h: reduced the drawqueue buffer from 1mb to 256k
	  (really it only needs about 60k)

2002-03-25 23:46  lordhavoc

	* host.c: seed the random number generator with the current time at
	  startup (quake never seeded it)

2002-03-25 13:38  molivier

	* net_main.c: DarkPlaces should always wait for connections in
	  BloodBath mode

2002-03-22 08: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 20: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 20:05  lordhavoc

	* common.c, common.h: added -bloodbath game

2002-03-20 18: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 18:29  lordhavoc

	* menu.c: fixed options menu item count (thanks Elric)

2002-03-17 17: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 16:56  lordhavoc

	* protocol.c: fix for EF_FLAME and lots of other bugs with
	  16bit/8bit fields (modelindex, frame, effects)

2002-03-16 16: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 15:51  lordhavoc

	* makefile: added note not to use athlon optimizations in current
	  gcc versions

2002-03-16 15:49  lordhavoc

	* net_dgrm.c: whitespace

2002-03-16 15: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 15:45  lordhavoc

	* world.c: Check bbox for overlap even on bmodels again (disabling
	  it was a speed loss)

2002-03-15 15:40  lordhavoc

	* cl_particles.c: darkened blood

2002-03-14 20: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 20: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 20:46  lordhavoc

	* r_lerpanim.c: Hide no such frame warning if developer is off

2002-03-14 20:26  lordhavoc

	* model_sprite.c: workaround for absolutely empty sprites (Nehahra
	  s_null.spr)

2002-03-14 17:46  molivier

	* darkplaces.dsp, makefile.mingw: Removed references to
	  r_particles.c

2002-03-14 14: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-14 01: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-14 01: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-14 00:59  lordhavoc

	* r_sprites.c: sprite code now uses left vector instead of right,
	  and upright facing sprites now work correctly

2002-03-14 00:57  lordhavoc

	* gl_rsurf.c: fog water when r_wateralpha is 1

2002-03-14 00: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 14: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 14:46  lordhavoc

	* makefile: added athlon CPU choice (for gcc 2.96 and up)

2002-03-13 13: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 11:41  lordhavoc

	* cl_particles.c: knight/scrag/vore trail effects are half as
	  intense now

2002-03-13 06:56  lordhavoc

	* vid_wgl.c: whoever last modified this forgot a rather important ;

2002-03-12 18:14  lordhavoc

	* cl_particles.c: more subtle rocket smoke

2002-03-12 17: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-10 06:04  lordhavoc

	* model_brush.c: check for empty submodels (lacrima.bsp for
	  example)

2002-03-04 12:10  lordhavoc

	* r_explosion.c: slowed down explosion so it lasts about as long as
	  the light flash

2002-03-04 12:09  lordhavoc

	* sv_phys.c: greatly improved movetype bounce stopping check to
	  consider the angle of the surface

2002-03-04 12:08  lordhavoc

	* sv_main.c: don't send entities outside addressable origin range
	  (+-32767)

2002-03-01 13: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 13:52  lordhavoc

	* menu.c: added Texture Combine option to menu

2002-03-01 13: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-03-01 01:13  lordhavoc

	* makefile.mingw: changed mingw makefile to by default not compile
	  for any specific processor

2002-02-28 11:36  lordhavoc

	* gl_models.c, gl_rsurf.c: fixed fogging on models and opaque
	  liquids (teleport/lava)

2002-02-28 11:35  lordhavoc

	* r_sprites.c: made sprite interpolation optional with a #define
	  (enabled currently, looks too bad ingame without it)

2002-02-28 08:15  lordhavoc

	* cl_input.c, vid_shared.c: fixed some majorly messed up fixes to
	  the angle clamping

2002-02-28 07:43  lordhavoc

	* vid_glx.c: fixed some sloppyness in my earlier input merging

2002-02-28 03:58  lordhavoc

	* conproc.c, in_win.c, makefile.mingw, snd_win.c: fix mingw
	  warnings

2002-02-28 02: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-27 06:07  lordhavoc

	* cd_win.c: fixed warnings in mingw

2002-02-27 06:06  lordhavoc

	* winquake.h: removed unneeded protocol

2002-02-27 05: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-27 05:00  lordhavoc

	* makefile.mingw, mingw_note.txt: darkplaces now compiles in mingw

2002-02-27 04: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-27 00:20  lordhavoc

	* world.c: hopeful fix for flymove !trace.ent error

2002-02-25 14:46  lordhavoc

	* cl_parse.c, model_shared.c: removed a few CheckSentinelsGlobal
	  calls to get a loading speedup

2002-02-25 13:58  lordhavoc

	* gl_backend.c: removed gl_mesh_merge feature due to unknown
	  buggyness

2002-02-25 13: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 09: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-25 08:14  lordhavoc

	* gl_backend.c: clean up

2002-02-25 04:47  lordhavoc

	* r_sky.c, render.h: removed mergesky code

2002-02-25 04:45  lordhavoc

	* gl_rsurf.c, r_sky.c, render.h: removed r_mergesky

2002-02-25 03: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-25 00:48  lordhavoc

	* gl_textures.c: improved internal texture management error
	  messages

2002-02-25 00:40  lordhavoc

	* r_light.c, r_particles.c, r_sprites.c: Forgot to commit removal
	  of DrawDecal

2002-02-24 08: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-24 06: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 23: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 23:00  lordhavoc

	* r_explosion.c: fix for explosions sometimes not being freed at
	  very high framerates

2002-02-23 11:50  lordhavoc

	* pr_cmds.c: CRITICAL fix to checkextension function, it absolutely
	  did not work until this fix.

2002-02-23 10: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 10:32  lordhavoc

	* pr_edict.c: whitespace

2002-02-23 10:31  lordhavoc

	* r_crosshairs.c: improved client number check to prevent potential
	  crashs

2002-02-23 10:30  lordhavoc

	* common.c: removed -zone mention from SZ_GetSpace overflow error

2002-02-22 11:41  lordhavoc

	* r_explosion.c: fixed bugs with explosion intensity shading
	  according to view direction

2002-02-20 09:59  molivier

	* gl_draw.c: Modified 3 casts to get rid of a few warnings in
	  MSVC6.

2002-02-20 09:08  lordhavoc

	* makefile: changed clean to delete *.o

2002-02-19 11: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 11:49  molivier

	* darkplaces.dsp: Updated DSP file

2002-02-18 07: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-18 05:57  lordhavoc

	* gl_textures.c: fixed dedicated erroring on startup

2002-02-17 21:56  lordhavoc

	* protocol.c, protocol.h: new entity protocol nearly complete, but
	  still unused

2002-02-16 00: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-16 00:21  lordhavoc

	* sys_linux.c: removed (unused) quake endscreen text

2002-02-16 00:16  lordhavoc

	* cl_screen.c: reduced view warping when underwater

2002-02-16 00:15  lordhavoc

	* menu.c: disable sliders for volume and vgmvolume (CD volume) when
	  they do not exist

2002-02-15 23: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 22:40  lordhavoc

	* cl_particles.c: particle tweaks

2002-02-15 22:33  lordhavoc

	* chase.c: double precision RecursiveHullCheck

2002-02-15 22:29  lordhavoc

	* r_particles.c: made smoke/blood texture a little brighter

2002-02-15 22: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 22: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 22:24  lordhavoc

	* world.h, sv_main.c, sv_move.c: double precision
	  RecursiveHullCheck

2002-02-15 22:21  lordhavoc

	* gl_models.c: cleaned up zym cruft from debugging

2002-02-15 22:20  lordhavoc

	* cvar.c, cvar.h: added Cvar_SetQuick and Cvar_SetValueQuick (both
	  take a cvar_t * instead of a name)

2002-02-15 22: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-14 01:43  lordhavoc

	* gl_models.c: fixed zymotic model transforms (lots of cruft
	  leftover that I will clean up soon)

2002-02-07 02:18  eviltypeguy

	* sv_phys.c: Remove pointless and wasteful variable assignment

2002-02-05 16:22  lordhavoc

	* sv_main.c: check if model is NULL when doing trace checking

2002-02-05 04: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 11:36  molivier

	* cgame.c, darkplaces.dsp: Updated DSP file. Fixed a bunch of
	  warnings with MSVC6

2002-02-03 17:51  lordhavoc

	* sv_phys.c: fixed numerous bugs in SV_Trace_Toss

2002-02-03 17:50  lordhavoc

	* progs.h: removed steporigin etc, they aren't used anymore

2002-02-03 12: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 11: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 11:34  lordhavoc

	* makefile: changed back to profiling, with optimizations, and back
	  to alsa 0.5 sound

2002-02-03 11:32  lordhavoc

	* cl_parse.c: fixed monster interpolation in normal quake, which
	  makes dpcrush not lerped unfortunately

2002-02-03 11: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 11:29  lordhavoc

	* cl_main.c: muzzleflashs do not keep stacking up on consecutive
	  frames now

2002-02-03 11:27  lordhavoc

	* gl_rmain.c: moved viewmodel rendering to avoid polluting the main
	  model rendering time

2002-02-03 11:26  lordhavoc

	* r_light.c: removed some old commented out code

2002-02-03 11: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 11:24  lordhavoc

	* r_explosion.c: changed explosion color calculations, they look
	  much better now

2002-02-03 11:23  lordhavoc

	* r_light.c: made coronas small and intense, much more noticable
	  now

2002-02-02 19:58  lordhavoc

	* r_light.c: coronas now scale with the light radius

2002-02-01 16:28  knghtbrd

	* cgame.c: cgame.c:60: warning: implicit declaration of function
	  `memset', fixed

2002-02-01 16:22  knghtbrd

	* buildnumber.c, cgamevm.h, makefile: cgamevm.h:11:6: no newline at
	  end of file, fixed.

2002-02-01 12: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 12:37  lordhavoc

	* cgame_api.h, cgamevm.c: added CGVM_Stain function

2002-02-01 10:22  lordhavoc

	* gl_rsurf.c: removed unnecessary if in setting up divide table for
	  dlighting

2002-02-01 08:20  molivier

	* cgame.c, cgamevm.c, darkplaces.dsp, gl_draw.c: Removed warnings
	  in MSVC6. Updated the DSP file.

2002-01-31 17: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 13: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-30 07:35  eviltypeguy

	* snd_dma.c: Fix for memset glibc bug crash

	  (why would it read from PROT_WRITE only memory? silly thing...)

2002-01-29 08:10  lordhavoc

	* cl_screen.c: changed free(dat) to Mem_Free(dat) (EWWW I HAD A
	  FREE STILL??)

2002-01-28 10: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 09:33  lordhavoc

	* gl_rsurf.c: fix problem with dynamic lights on lightmaps wider
	  than 18 pixels (oops!)

2002-01-27 08:58  lordhavoc

	* r_light.c: halved corona size

2002-01-27 01:16  lordhavoc

	* buildnumber.c, gl_rmain.c, r_light.c, r_light.h: added coronas
	  (glow) to dynamic lights

2002-01-27 01: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-27 00: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-27 00:33  lordhavoc

	* cl_particles.c, client.h, r_particles.c: made most particles
	  additive (speedup in fog)

2002-01-27 00:30  lordhavoc

	* r_explosion.c: made explosions additive, softened edges (hacky
	  but looks good enough), cleaned up some of the physics

2002-01-27 00: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-27 00:25  lordhavoc

	* cl_tent.c: got rid of cl_glowinglightning cvar, lightning no
	  longer glows

2002-01-27 00:24  lordhavoc

	* cl_main.c: made "entities" command show scale and alpha made
	  rocket glow a little brighter (25%)

2002-01-27 00:18  lordhavoc

	* gl_textures.c, model_brush.c, r_textures.h: renamed
	  R_GetFragmentLocation to R_FragmentLocation

2002-01-26 03: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 13: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 09:31  lordhavoc

	* sbar.c: added back intermission overlays (oops)

2002-01-25 01: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-22 08:01  lordhavoc

	* gl_textures.c: moved CHECKGLERROR to detect errors *after* rather
	  than before uploading a texture

2002-01-22 07:58  lordhavoc

	* r_light.c: made lights half as bright

2002-01-22 06:36  lordhavoc

	* cl_main.c, host.c, host_cmd.c: make dedicated work again

2002-01-22 06:34  lordhavoc

	* gl_textures.c: fake answers for R_GetFragmentLocation when
	  running dedicated

2002-01-22 06:33  lordhavoc

	* model_shared.c: models don't allocate a texture pool when running
	  dedicated

2002-01-22 06:32  lordhavoc

	* cl_decals.c, r_decals.c: more thorough checking of 'this should
	  never happen' cases

2002-01-22 06:31  lordhavoc

	* sv_main.c: flush unused models when running dedicated server

2002-01-22 05:46  lordhavoc

	* model_brush.c: fixed 4 warnings in MSVC related to assigning
	  -1000 to unsigned shorts

2002-01-21 04:02  lordhavoc

	* model_brush.c: removed a lot of memory checks now that it works
	  again

2002-01-21 03:57  lordhavoc

	* model_brush.c: fix for bug in memory checking

2002-01-21 03:50  lordhavoc

	* model_brush.c: yet more memory testing

2002-01-21 03:39  lordhavoc

	* model_brush.c: changed way windings are allocated, may fix memory
	  corruption bug on MSVC

2002-01-21 03:09  lordhavoc

	* model_brush.c: added some memory corruption checks, trying to
	  find a bug

2002-01-20 00: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 22: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-19 01: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 21: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 21:21  lordhavoc

	* r_decals.c: minor optimization to fogged decal rendering

2002-01-18 21:20  lordhavoc

	* gl_models.c: view model is no longer fully fogged (it was a
	  divide by zero)

2002-01-18 21:17  lordhavoc

	* sv_phys.c: grenades no longer stick when you fire down a slope

2002-01-17 18:38  molivier

	* gl_backend.c: Fixed a couple of warnings on MSVC6

2002-01-17 02:30  lordhavoc

	* buildnumber.c, cl_parse.c: removed no longer used static light
	  parsing code

2002-01-17 02: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-17 02: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 21: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 20:17  lordhavoc

	* darkplaces.dsp: updated project to match added/removed files

2002-01-16 20: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 19: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 19: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-16 07:20  lordhavoc

	* cl_effects.c, r_decals.h: forgot to remove these

2002-01-16 07: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 22:20  eviltypeguy

	* console.c: Small fixes to tab completion

2001-12-17 09: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-05 08:06  molivier

	* darkplaces.dsp: Updated MSVC6 project files

2001-12-04 14: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 20:33  lordhavoc

	* sv_main.c: reenabled some invisible entity checking (probably no
	  difference)

2001-11-12 16:52  lordhavoc

	* ui.h: added comments about use of the functions, and regrouped
	  engine-use-only ones to avoid confusion

2001-11-08 03:25  lordhavoc

	* pr_edict.c: got rid of two trigraph warnings in gcc 3.0

2001-11-08 03:23  lordhavoc

	* model_alias.c: changed swapintblock loop to hopefully get rid of
	  a gcc 3.0 warning

2001-11-08 03:20  lordhavoc

	* cl_tent.c: fix for gcc 3.0 warnings on MSG_ReadByte in function
	  parameters

2001-11-06 08:16  molivier

	* darkplaces.dsp, darkplaces.dsw: Added MSVC6 project files

2001-11-02 13: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 12:06  lordhavoc

	* vid_shared.c: fixed gl_combine so it is enabled by default (if
	  present)

2001-11-02 12: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 11:54  lordhavoc

	* sys_shared.c: minor buffer-size-safe improvement in Sys_Printf,
	  and some other changes to it

2001-11-02 11: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 11:50  lordhavoc

	* sv_phys.c: corrected a typo in a comment referring to the e4 hall
	  in start as e1m4

2001-11-02 11: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 10:18  lordhavoc

	* keys.c: clear keybindings[] array during Key_Init (bounds checker
	  freaks if it isn't cleared before it is used)

2001-11-02 07:15  lordhavoc

	* makefile: changed -march=686 to -march=i686

2001-10-30 22: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 22:51  lordhavoc

	* gl_models.c, model_alias.c, model_shared.c, model_shared.h: added
	  support for transparent model skins

2001-10-30 22:48  lordhavoc

	* gl_textures.c, r_textures.h: added R_TextureHasAlpha function to
	  check if a loaded texture has alpha

2001-10-30 00:43  lordhavoc

	* sys_shared.c: added include unistd.h and fcntl.h on non-win32

2001-10-30 00:38  lordhavoc

	* portals.c: removed unused portalstack array

2001-10-29 08: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-29 08: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-29 08:17  lordhavoc

	* pr_edict.c: fixed ED_Print so that it can not cause buffer
	  overflows on large entities

2001-10-29 08: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-29 07: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-29 07:45  lordhavoc

	* mathlib.c: forgot to put a newline at the end of the file

2001-10-29 07: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-29 07:40  lordhavoc

	* sv_phys.c: changed SV_Move call to use MOVE_NORMAL instead of
	  false, no effect on code behavior

2001-10-29 07: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-29 07:34  lordhavoc

	* portals.c: rearranged some variable declarations (no code
	  changes)

2001-10-29 07:32  lordhavoc

	* gl_rsurf.c: minor whitespace tweak on loc1 label, removed old
	  debugging warnings about not checking certain portals

2001-10-29 07: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-29 07:28  lordhavoc

	* console.c: removed duplicate comment on a line

2001-10-29 07: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-29 04:28  lordhavoc

	* ui.c: no longer needs ui/mousepointer.lmp

2001-10-29 04:11  lordhavoc

	* common.h: fix for snprintf check (can't check if functions exist,
	  changed to WIN32 check)

2001-10-29 00: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 23:10  lordhavoc

	* palette.c: don't change gamma ramps when running dedicated

2001-10-28 21:49  lordhavoc

	* menu.c: added hidden surface removal option (r_ser cvar)

2001-10-28 21:48  lordhavoc

	* common.h: added #define snprintf _snprintf for win32

2001-10-28 21:48  lordhavoc

	* winquake.h: add externs for window_x and window_y

2001-10-28 21:47  lordhavoc

	* in_win.c: forgot to update this file apparently

2001-10-28 10: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 22: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 16:48  lordhavoc

	* buildnumber.c: Forgot to update build number for 105 release

2001-10-18 02: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 21:17  lordhavoc

	* vid_wgl.c: little whitespace change

2001-10-17 21: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 21:14  lordhavoc

	* cvar.c: fix for cvar tab completion crash

2001-10-17 20:43  lordhavoc

	* r_sprites.c: fix for oriented sprites not appearing

2001-10-16 14:49  lordhavoc

	* makefile: forgot to commit updated makefile

2001-10-15 19:12  lordhavoc

	* cmd.c, console.c, model_brush.c, quakeio.c: mallocs, callocs, and
	  frees changed to qmalloc/qfree

2001-10-15 18:25  lordhavoc

	* console.c: fix for command/cvar/alias completion bug (example:
	  imp gave iimpulse)

2001-10-15 15:41  lordhavoc

	* chase.c: changed defaults for chase_active camera position, and
	  the settings are now saved to the config

2001-10-15 15: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 15:36  lordhavoc

	* gl_rsurf.c: fix the off-by-one fix (oops)

2001-10-15 15: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 14:13  lordhavoc

	* cmd.h: added function definitions for tab completion back (oops)

2001-10-15 13: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 22:25  taniwha

	* .cvsignore: ignore ChangeLog

2001-07-20 22: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 22:55  lordhavoc

	* gl_poly.c, gl_poly.h, render.h: another attempt to fix skybox
	  loading

2001-06-10 23:21  taniwha

	* host_cmd.c: fix loading savegames

2001-06-10 22: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 21:38  taniwha

	* gl_rmain.c: apply a fix for LordHavoc as his tree is not yet
	  ready for committing

2001-06-07 21:36  lordhavoc

	* gl_poly.c: fix for skybox

2001-06-04 01:40  lordhavoc

	* world.h: added a newline to the end

2001-06-03 05:18  taniwha

	* common.c: hopefully fix external file gzip support

2001-05-31 04:02  lordhavoc

	* gl_poly.c: skyquality and mergesky are saved to the config now

2001-05-30 10:36  lordhavoc

	* image.c: fixed PCX loader bug to do with palettes added bounds
	  checking for PCX, TGA, and LMP loaders

2001-05-30 10:28  lordhavoc

	* common.c, common.h: added loadsize variable set by COM_LoadFile

2001-05-30 10:03  lordhavoc

	* model_alias.h: added newline at end to appease gcc

2001-05-30 10:02  lordhavoc

	* image.c: fix for mistake in pcx loader (had two pointers swapped)

2001-05-30 09:09  lordhavoc

	* buildnumber.c: increased build number to 103

2001-05-30 09:08  lordhavoc

	* gl_poly.h, menu.c, screen.h: added sky quality and show framerate
	  options to menu

2001-05-30 08:16  taniwha

	* .cvsignore, makefile: compile dependencies

2001-05-30 08:04  lordhavoc

	* common.c, in_win.c, quakeio.c, quakeio.h: fixes for zlib support,
	  eliminated win32 FAR warnings and other warnings

2001-05-30 07:10  taniwha

	* sys_win.c: oops, forgot to fix the Qread and Qwrite calls

2001-05-30 06: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-30 06:50  lordhavoc

	* gl_textures.c, r_textures.h: added TEXF_ALWAYSPRECACHE

2001-05-30 06: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-30 06:50  lordhavoc

	* glquake.h: removed unused skytexturenum

2001-05-30 06:44  lordhavoc

	* gl_rmisc.c: removed unused skytexturenum code

2001-05-30 06:39  lordhavoc

	* common.h: commented out COM_LoadCacheFile

2001-05-30 06:38  lordhavoc

	* cmd.c: converted script loading to use COM_LoadMallocFile instead
	  of COM_LoadHunkFile

2001-05-30 04: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 18:25  lordhavoc

	* buildnumber.c: updated to build 102

2001-05-29 18: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-27 04: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-27 00:24  lordhavoc

	* makefile: added protocol.o

2001-05-26 21: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 20:26  knghtbrd

	* makefile: Cleaned up clean target Changed defaults to reflect the
	  majority of systems

2001-05-13 09:49  lordhavoc

	* gl_rsurf.c: now renders inward portals rather than outward
	  portals in r_drawportals (more useful)

2001-05-12 17: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 13:09  lordhavoc

	* cl_parse.c: forgot to put in extern qboolean hlbsp;

2001-05-12 13: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 12:54  lordhavoc

	* makefile: removed net_vcr from the list of objects

2001-05-11 10: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-05 05: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 20: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-28 08: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-26 07: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-24 00:49  lordhavoc

	* gl_textures.c: oops, two loop counting bugs, fixed

2001-04-24 00:03  lordhavoc

	* gl_textures.c: added back support for textures smaller than 4
	  pixels wide (Nehahra uses one)

2001-04-20 17: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 17: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-06 05:51  knghtbrd

	* vid_glx.c: gl_mtex_enum has moved to vid_shared.c

2001-04-06 05:49  lordhavoc

	* cl_effects.c: missed this one...

2001-04-06 05:48  lordhavoc

	* r_part.c: added default case for particles to report the error
	  and remove the particle

2001-04-06 05:44  knghtbrd

	* gl_rsurf.c, r_part.c: Fix a couple gcc warnings

2001-04-06 05:43  lordhavoc

	* gl_rsurf.c: fix for lightmap update check

2001-04-06 05: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 19: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 17:19  dabb

	* dp-bc.mak: Compile fixes.

2001-03-04 23:30  lordhavoc

	* gl_rsurf.c, model_brush.c: now supports upto 256x256 texel
	  lightmaps (rather than 17x17), as_tundra.bsp works now

2001-03-04 02:16  lordhavoc

	* sys_wind.c: forgot this file while changing FALSE and TRUE to
	  false and true

2001-03-04 02: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 23: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 23:10  lordhavoc

	* model_brush.c, wad.c: fixed transparent color in HL textures (was
	  red, should be blue... oops)

2001-03-03 23:02  lordhavoc

	* view.c: server speed controls fade out of damage/bonus flashs now
	  (more reliable timedemo)

2001-03-02 23:14  lordhavoc

	* cl_parse.c: a little cleanup, and eliminated a lightstyle buffer
	  overflow

2001-03-02 23:03  lordhavoc

	* cl_parse.c: added DPPROTOCOL support to svc_version parsing (is
	  svc_version even used?)

2001-03-02 22:40  lordhavoc

	* cl_parse.c: added a new hack to make MSVC work which will
	  definitely not break any other compilers

2001-03-02 22:28  lordhavoc

	* cl_parse.c: removed hack to make MSVC work as it was breaking gcc

2001-03-02 11: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 21: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 09:11  lordhavoc

	* sv_light.c: oops, hadn't finished this

2001-02-27 09:07  lordhavoc

	* makefile: forgot to commit this

2001-02-27 09:07  lordhavoc

	* r_light.c, sv_light.c, sv_main.c: clean up use of client structs
	  in server

2001-02-24 01:21  despair

	* snd_alsa_0_5.c: Minor comment update.

2001-02-24 01: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-24 01:10  despair

	* snd_alsa_0_9.c: Update to latest ALSA development drivers.
	  (Thanks again to Abramo)

2001-02-24 01:08  lordhavoc

	* model_zymotic.h: added model_zymotic.h (forgot)

2001-02-24 00:51  lordhavoc

	* makefile, r_explosion.c: updated makefile and added r_explosion.c
	  (forgot)

2001-02-24 00: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 16:14  despair

	* makefile: Undo accidental makefile commit.

2001-02-18 16:09  despair

	* makefile, net_udp.c, sys_linux.c: Couple of 1 liner compile
	  fixes. Missing header and missing cast.

2001-02-13 23:07  lordhavoc

	* zone.c: report name when Hunk_Alloc fails

2001-02-12 09:24  lordhavoc

	* gl_rmain.c: fix for unitialized variable warnings

2001-02-09 13: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 11:22  lordhavoc

	* snd_linux.c, snd_oss.c: renamed snd_linux.c to snd_oss.c

2001-02-06 18: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 16:54  lordhavoc

	* buildnumber.c: increased build number to 79

2001-02-03 16:54  lordhavoc

	* vid_wgl.c: removed unused cvars

2001-01-29 12: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 09: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-29 08:00  lordhavoc

	* common.c, zone.c: reduced default -zone from 512k to 128k (quake
	  used 48k)

2001-01-29 07:49  lordhavoc

	* r_part.c: smoke trails no longer rise (but you could hardly tell
	  anyway, due to their short length)

2001-01-29 07:47  lordhavoc

	* r_part.c: smoke trails changed again, smoke texture greatly
	  improved

2001-01-29 07: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 12:03  lordhavoc

	* r_part.c: smoke effects changed a bit (and the smoke texture
	  generator as well), rockets trail sparks too

2001-01-28 11:03  lordhavoc

	* gl_rmain.c, vid.h, vid_glx.c, vid_wgl.c: VID_CheckMultiTexture
	  case was wrong (now VID_CheckMultitexture)

2001-01-25 07:46  lordhavoc

	* makefile: updated OBJECTS list and added cleaning of
	  darkplaces-3dfx

2001-01-23 01:27  lordhavoc

	* vid_3dfxsvga.c: removed unused gldir string

2001-01-23 01:12  lordhavoc

	* vid_glx.c: disabled unused variable

2001-01-23 01:10  lordhavoc

	* vid_glx.c: ripped out vertex array function lookup, require
	  OpenGL 1.2.x instead.

2001-01-23 00: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-23 00:15  lordhavoc

	* image.c, model_sprite.c: fixed (byte *) - (char *) subtraction

2001-01-23 00:13  taniwha

	* image.c: fix a char type problem

2001-01-12 12: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 17:56  lordhavoc

	* model_brush.c: workaround/fix for bounds checking warning

2001-01-07 17:49  lordhavoc

	* common.c: critical fix for COM_FileBase (could go hunting through
	  mem for /)

2001-01-07 17:38  lordhavoc

	* model_brush.c: workaround for bounds checking error in loading
	  texture lump

2001-01-07 17: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 23:16  lordhavoc

	* r_part.c: smoke and blood changes

2000-12-10 11:59  dabb

	* dp-bc.mak: Added palette.c and r_sprites.c. Compiles now.

2000-12-09 19:15  lordhavoc

	* buildnumber.c: build 78

2000-12-09 19: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 18:06  taniwha

	* net_udp.c, net_wins.c: apply the 0 byte udp packet DoS fix from
	  nuq.

2000-11-28 14:22  lordhavoc

	* cl_tent.c: made glowing lightning optional

2000-11-27 07:46  lordhavoc

	* r_part.c: spark showers on explosions, better sparks on bullet
	  impacts

2000-11-27 07:40  lordhavoc

	* model_shared.c: removed cruft from debugging

2000-11-27 07:05  lordhavoc

	* model_shared.c: put in dprinting of model names as they are
	  loaded

2000-11-27 07:04  lordhavoc

	* r_part.c: removed unused tracercount

2000-11-27 02:47  lordhavoc

	* buildnumber.c: build 77

2000-11-27 02: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-27 00: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 10:38  lordhavoc

	* gl_draw.c: forgot to extern GL_LoadPicTexture

2000-11-26 10: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 10:18  lordhavoc

	* model_alias.c, model_alias.h: work around gcc lacking support for
	  no-size arrays in structures

2000-11-23 16:09  dabb

	* dp-bc.mak: Cleaned up a bit..

2000-11-23 16:03  dabb

	* dp-bc.mak: Fixed some of the mess. Might work now...

2000-11-23 14:15  lordhavoc

	* buildnumber.c: build 76

2000-11-23 14:14  lordhavoc

	* draw.h, gl_draw.c: minor redesign of console loading/drawing,
	  cruft removal, change to Draw_GenericPic parameter types

2000-11-23 09:25  lordhavoc

	* gl_draw.c: cruft removal

2000-11-23 09:24  lordhavoc

	* vid_3dfxsvga.c, vid_glx.c: very minor cruft removal

2000-11-21 16:36  dabb

	* dp-bc.mak: Borland C++ makefile for Darkplaces. Does NOT use asm
	  objs yet, but works otherwise.

2000-11-21 15:54  dabb

	* sys_win.c: Borland C++ compile fix - works/compiles now.

2000-11-21 15:49  dabb

	* console.c: Borland C++ compile fixes

2000-11-21 11:17  lordhavoc

	* gl_rmain.c: fix for sprite scale bug (it was scaling vup and
	  vright!)

2000-11-21 10: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 10:12  lordhavoc

	* gl_textures.c: fixed duplicate application of gamma correction

2000-11-21 10:11  lordhavoc

	* view.c: removed cruft

2000-11-21 10:11  lordhavoc

	* gl_models.c: removed fullbright torch hack :)

2000-11-21 10:09  lordhavoc

	* gl_draw.c: skip all of Draw_String when rendering is disabled

2000-11-21 10: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 09:58  lordhavoc

	* r_part.c: more particle effect changes...

2000-11-21 09:49  lordhavoc

	* cvar.c: fixed spelling error (allready -> already)

2000-11-18 10: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 09:37  lordhavoc

	* cl_main.c, r_light.h: removed unused 'minlight' option from
	  dlight struct, and made muzzleflash light maller

2000-11-18 09:12  lordhavoc

	* world.c: backport of PM_RecursiveHullCheck for speedup

2000-11-18 09:07  lordhavoc

	* gl_models.c: removed cruft

2000-11-18 02:08  lordhavoc

	* gl_models.c: removed cruft

2000-11-18 02:05  lordhavoc

	* r_light.c: light only the front faces, cuts down on noticable
	  visdata anomolies

2000-11-17 12: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 12:24  lordhavoc

	* gl_rsurf.c, gl_screen.c: combined glClear calls, may be a speedup

2000-11-17 12:22  lordhavoc

	* vid_3dfxsvga.c: removed glClearColor because it was being reset
	  in gl_screen anyway

2000-11-17 12:20  lordhavoc

	* cl_main.c: changed texture slots in use message (developer mode
	  only) to not mention glquake

2000-11-17 11: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 11:32  lordhavoc

	* sys_win.c: disabled Sys_PageIn for quicker startup (whether this
	  is good or not is questionable)

2000-11-17 09: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 23:40  lordhavoc

	* buildnumber.c: increased build number to 73

2000-10-31 16:33  taniwha

	* snd_alsa_0_6.c: from newtree. at worst will need a header tweek

2000-10-31 04: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-31 04:20  lordhavoc

	* buildnumber.c: incremented buildnum

2000-10-31 02:34  lordhavoc

	* pr_cmds.c: added setcolor builtin

2000-10-31 02:33  lordhavoc

	* image.c: increased max pcx size to 320x256

2000-10-28 21:04  lordhavoc

	* makefile: added buildnumber.c to makefile

2000-10-28 20:49  lordhavoc

	* host.c: recursive host_error improvement (prints both error
	  messages)

2000-10-28 20: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 20:45  lordhavoc

	* sv_main.c: remove never used svc_playerposition code

2000-10-26 13:57  lordhavoc

	* cl_tent.c, protocol.h, r_part.c, render.h: particle effect
	  changes and code cleanup

2000-10-26 13:54  lordhavoc

	* cl_input.c, common.c, common.h, sv_user.c: changes to dpprotocol
	  code (precise aiming mainly)

2000-10-24 12:26  lordhavoc

	* r_part.c: fix for blob particle crash

2000-10-21 12:25  lordhavoc

	* chase.c: fixed chase_active (TraceLine no longer returns '0 0 0'
	  when there was no impact)

2000-10-21 12:24  lordhavoc

	* view.c: fix for player model tilting in chase_active mode

2000-10-21 12:22  lordhavoc

	* sv_main.c: fix for serious bug in .nodrawtoclient,
	  .drawonlytoclient, and .viewmodelforclient comparisons - they now
	  work

2000-10-21 12: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 11: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 09: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-17 00:13  lordhavoc

	* gl_rsurf.c, model_brush.h: fixed all known vertex lighting mode
	  problems (except sorting issues)

2000-10-17 00:11  lordhavoc

	* gl_rmain.c: fix for transpolys disappearing while turning

2000-10-16 22: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 22:46  lordhavoc

	* mathlib.h: minor speedup to VectorNormalize #define's

2000-10-15 17: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-06 00:53  lordhavoc

	* host_cmd.c: Clear message buffer before calling ClientConnect,
	  rather than after.

2000-10-03 06:00  taniwha

	* makefile: hopefully fix the 3dfx target

2000-10-03 02:05  mercury

	* in_svgalib.c: Not adding, it has been here all along, you just
	  have not seen it.  REALLY!

2000-09-26 21:25  lordhavoc

	* gl_screen.c: epsilon checking on brightness and contrast cvars

2000-09-26 04:28  taniwha

	* .cvsignore: ignore darkplaces-glx

2000-09-22 06:47  lordhavoc

	* common.c: raised pack file count back to 16384 and fixed stack
	  overflow

2000-09-22 05:52  lordhavoc

	* common.c: decreased pack file count limit to 4096 due to stack
	  overflow

2000-09-22 05:37  lordhavoc

	* common.c: upped pack file count limit to 16384 from 2048

2000-09-22 03:44  lordhavoc

	* gl_rsurf.c: lighting improvement in rgba mode, may crash some
	  windows drivers

2000-09-22 03:42  lordhavoc

	* snd_win.c: -sndspeed option in windows (default: 11025)

2000-09-22 03:42  lordhavoc

	* snd_mem.c: Fix for crashs when downsampling sounds.

2000-09-21 05:09  lordhavoc

	* model_alias.c: disabled texcoord checks in alias models, due to
	  CTF v_star bug

2000-09-21 05:07  lordhavoc

	* snd_dma.c, snd_mem.c, snd_win.c: 44.1khz sound, interpolated
	  resampling, killed cvar loadas8bit

2000-09-21 03:47  lordhavoc

	* snd_mem.c: ResampleSfx clean up and a bug fix on resampled stereo

2000-09-18 20: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 17:53  lordhavoc

	* pr_cmds.c: copyentity builtin added

2000-09-18 17:52  lordhavoc

	* cl_tent.c, glquake.h, r_part.c: explosions push away particles

2000-09-18 17:50  lordhavoc

	* host.c: minor tweak to the forcing of color 255 to black

2000-09-18 00:30  lordhavoc

	* sbar.c: transparent statusbar

2000-09-16 21:53  taniwha

	* makefile, snd_alsa.c: add ALSA support

2000-09-15 22:34  taniwha

	* COPYING: I think that this really should be in here

2000-09-14 03: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 17: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 21: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 20:23  lordhavoc

	* menu.c: fix for uppercase nehahra movie names (oops, 'twas
	  Ender's code).

2000-09-11 19:56  mercury

	* glquake.h, keys.h, makefile, vid_3dfxsvga.c: -3dfx support for
	  linux!

2000-09-07 00: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 15: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 11:29  dabb

	* transform.h: Borland C++ compile fixes.

2000-08-31 18:49  lordhavoc

	* model_brush.c: extern fix

2000-08-31 18: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 17:32  lordhavoc

	* r_light.c: Fix for glowing objects sometimes appearing black.

2000-08-31 17:08  lordhavoc

	* fractalnoise.c: Very minor speedup to fractal noise generator.

2000-08-31 16:43  lordhavoc

	* model_alias.c: Major speedup to model loading, using
	  lightnormalindex table now.

2000-08-31 16:25  lordhavoc

	* net_wipx.c: -noipx changed to -ipx at Dabb's request.

2000-08-31 16: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 14: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 21:53  lordhavoc

	* cl_parse.c, gl_rmain.c: Fog variables redesigned slightly. (no
	  longer cvars)

2000-08-24 09: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-24 02:58  lordhavoc

	* cl_parse.c: SVC_FOG changed (uses a short instead of a float so
	  QC can write it).

2000-08-24 01:42  lordhavoc

	* cl_main.c, client.h, host_cmd.c, model_brush.c: HalfLife texture
	  transparency fixed, pmodel enhanced (Nehahra).

2000-08-23 13: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-23 03:40  lordhavoc

	* gl_poly.c, model_brush.c, sv_main.c: Fix for HalfLife texture
	  transparency and renderamt (originally misunderstood).

2000-08-23 02:57  lordhavoc

	* pr_edict.c, progs.h: Corrected misspelling in HL support
	  (rendertype is now rendermode).

2000-08-23 02:03  lordhavoc

	* pr_edict.c, progs.h, sv_main.c: HalfLife renderamt support (why?
	  boredom...)

2000-08-23 01: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-22 04: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-22 04: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-22 04: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-22 04: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-22 04: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-22 04: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-22 04: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

2000-08-22 04: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.

