15 years agorefactored _Mem_Free into _Mem_FreeBlock which takes a memheader_t * and _Mem_Free...
havoc [Sat, 11 Mar 2006 18:28:00 +0000 (18:28 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6106 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded back brackets so that developer isn't forced to 100 on startup every time
havoc [Sat, 11 Mar 2006 18:10:56 +0000 (18:10 +0000)]
added back brackets so that developer isn't forced to 100 on startup every time

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6105 d7cf8633-e32d-0410-b094-e92efae38249

15 years agooops, accidentally set developer to 100 by default
havoc [Sat, 11 Mar 2006 17:33:31 +0000 (17:33 +0000)]
oops, accidentally set developer to 100 by default

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6104 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged VID_Finish to take an allowmousegrab parameter, this avoids mousegrab on...
havoc [Sat, 11 Mar 2006 17:24:10 +0000 (17:24 +0000)]
changed VID_Finish to take an allowmousegrab parameter, this avoids mousegrab on the initial loading screen (before +vid_mouse 1 on commandline is executed)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6103 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoinit host_framecount to 0, just a cleanup
havoc [Sat, 11 Mar 2006 17:23:09 +0000 (17:23 +0000)]
init host_framecount to 0, just a cleanup

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6102 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix bug in [515]'s csqc code - it was using the literal number 64 for the max players...
havoc [Sat, 11 Mar 2006 17:22:22 +0000 (17:22 +0000)]
fix bug in [515]'s csqc code - it was using the literal number 64 for the max players, not MAX_SCOREBOARD as it should

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6101 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix incredibly stupid bug in Memory_Init, it was clearing the pool chain AFTER alloca...
havoc [Sat, 11 Mar 2006 17:11:23 +0000 (17:11 +0000)]
fix incredibly stupid bug in Memory_Init, it was clearing the pool chain AFTER allocating two pools

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6100 d7cf8633-e32d-0410-b094-e92efae38249

15 years agocleaned up the stupid forcedeveloper hack, now changes the default string of the...
havoc [Sat, 11 Mar 2006 17:10:55 +0000 (17:10 +0000)]
cleaned up the stupid forcedeveloper hack, now changes the default string of the cvar before it is registered, this is much cleaner

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6099 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomoved -developer code to the very beginning of Host_Init, and added a -developer2...
havoc [Sat, 11 Mar 2006 16:59:04 +0000 (16:59 +0000)]
moved -developer code to the very beginning of Host_Init, and added a -developer2 option for heavy memory debugging from the beginning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6098 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomoved name in memory pools to a different part of the structure, to make ddd displays...
havoc [Sat, 11 Mar 2006 16:58:28 +0000 (16:58 +0000)]
moved name in memory pools to a different part of the structure, to make ddd displays read better

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6097 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix skinfile memory leaks on ZYM, DPM, and PSK model loaders, and move the skinfile...
havoc [Sat, 11 Mar 2006 16:57:48 +0000 (16:57 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6096 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomoved Log_Start call into SCR_BeginLoadingPlaque (which occurs as soon as a map or...
havoc [Sat, 11 Mar 2006 16:19:18 +0000 (16:19 +0000)]
moved Log_Start call into SCR_BeginLoadingPlaque (which occurs as soon as a map or demo loads, or when config parsing is done)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6095 d7cf8633-e32d-0410-b094-e92efae38249

15 years ago446
havoc [Fri, 10 Mar 2006 23:47:18 +0000 (23:47 +0000)]

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6094 d7cf8633-e32d-0410-b094-e92efae38249

15 years agodefault sv_jumpstep to 0 to not allow players to jump places they should not be able...
havoc [Fri, 10 Mar 2006 23:45:42 +0000 (23:45 +0000)]
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)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6093 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed cl_activebeams handling, now beams work again
havoc [Fri, 10 Mar 2006 23:23:21 +0000 (23:23 +0000)]
fixed cl_activebeams handling, now beams work again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6092 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed bug that caused SV_SpawnServer to fail to send reconnect commands to clients...
havoc [Fri, 10 Mar 2006 05:21:43 +0000 (05:21 +0000)]
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)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6089 d7cf8633-e32d-0410-b094-e92efae38249

15 years agowhen loading a savegame, use the saved v_angle value, not angles which usually lacks...
havoc [Fri, 10 Mar 2006 05:19:54 +0000 (05:19 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6088 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed bug that allowed the quake2 stair jump to work
havoc [Fri, 10 Mar 2006 05:18:39 +0000 (05:18 +0000)]
fixed bug that allowed the quake2 stair jump to work

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6087 d7cf8633-e32d-0410-b094-e92efae38249

15 years agodon't clear player entity when loading a savegame
havoc [Fri, 10 Mar 2006 04:02:56 +0000 (04:02 +0000)]
don't clear player entity when loading a savegame

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6086 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged TraceBox functions to take start,mins,maxs,end like they did in Quake, this...
havoc [Fri, 10 Mar 2006 02:37:40 +0000 (02:37 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6085 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed bullets-going-through-walls bug in q3bsp collision code, this was a really...
havoc [Fri, 10 Mar 2006 02:31:42 +0000 (02:31 +0000)]
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)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6084 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed bug that caused ClientDisconnect to not be called on bots in their first level...
havoc [Thu, 9 Mar 2006 16:19:23 +0000 (16:19 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6083 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomade zym and dpm model loaders warn and ignore the model if it is missing geometry...
havoc [Wed, 8 Mar 2006 15:53:47 +0000 (15:53 +0000)]
made zym and dpm model loaders warn and ignore the model if it is missing geometry or frames

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6082 d7cf8633-e32d-0410-b094-e92efae38249

15 years agosome work on SV_TestEntityPosition and entity unsticking, now only checks against...
havoc [Wed, 8 Mar 2006 01:13:29 +0000 (01:13 +0000)]
some work on SV_TestEntityPosition and entity unsticking, now only checks against bmodels

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6081 d7cf8633-e32d-0410-b094-e92efae38249

15 years agosome win64 fixes from Willis
havoc [Tue, 7 Mar 2006 20:39:58 +0000 (20:39 +0000)]
some win64 fixes from Willis

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6080 d7cf8633-e32d-0410-b094-e92efae38249

15 years agorearranged surface renderer some more
havoc [Tue, 7 Mar 2006 14:18:05 +0000 (14:18 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6079 d7cf8633-e32d-0410-b094-e92efae38249

15 years agosimplified cl_particles_quality handling, shouldn't affect particle lifetime anymore now
havoc [Tue, 7 Mar 2006 11:22:16 +0000 (11:22 +0000)]
simplified cl_particles_quality handling, shouldn't affect particle lifetime anymore now

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6078 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix r_speeds 1 so that it works again
havoc [Tue, 7 Mar 2006 11:21:49 +0000 (11:21 +0000)]
fix r_speeds 1 so that it works again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6077 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed pogostick/doublejump bug when running id1 qc with a client sending input packet...
havoc [Tue, 7 Mar 2006 10:49:16 +0000 (10:49 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6076 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoModified ResampleSfx for a small speed gain
molivier [Tue, 7 Mar 2006 10:14:28 +0000 (10:14 +0000)]
Modified ResampleSfx for a small speed gain

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6075 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoAdded "SDL/include" to the include paths and "SDL/lib" to the library paths (allow...
molivier [Mon, 6 Mar 2006 10:16:16 +0000 (10:16 +0000)]
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!)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6074 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoupped player limit (MAX_SCOREBOARD) from 64 to 255, and corrected my email address...
havoc [Sat, 4 Mar 2006 21:31:37 +0000 (21:31 +0000)]
upped player limit (MAX_SCOREBOARD) from 64 to 255, and corrected my email address in the menu

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6073 d7cf8633-e32d-0410-b094-e92efae38249

15 years agocommented out a line as suggested by Spike, to fix a crash when length is 0, this...
havoc [Sat, 4 Mar 2006 18:49:26 +0000 (18:49 +0000)]
commented out a line as suggested by Spike, to fix a crash when length is 0, this matches the behavior of md4

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6072 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded LittleLong around the checksums to fix endian-ness issues in QW
havoc [Sat, 4 Mar 2006 18:48:37 +0000 (18:48 +0000)]
added LittleLong around the checksums to fix endian-ness issues in QW

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6071 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadd SV_VM block around SV_DropClient call in NetConn_ServerFrame to fix a crash when...
havoc [Sat, 4 Mar 2006 15:04:28 +0000 (15:04 +0000)]
add SV_VM block around SV_DropClient call in NetConn_ServerFrame to fix a crash when players time out

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6068 d7cf8633-e32d-0410-b094-e92efae38249

15 years agosome cleanup of surface->cached_dlight handling to fix the broken unlit q1bsp handlin...
havoc [Sat, 4 Mar 2006 14:52:53 +0000 (14:52 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6067 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoFix a bug in the video system.
black [Sat, 4 Mar 2006 14:45:35 +0000 (14:45 +0000)]
Fix a bug in the video system.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6066 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoforgot to include this in the previous commit
havoc [Sat, 4 Mar 2006 14:36:50 +0000 (14:36 +0000)]
forgot to include this in the previous commit

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6065 d7cf8633-e32d-0410-b094-e92efae38249

15 years agounmerge OpenVideo code, back to the proper multilayer system it was
havoc [Sat, 4 Mar 2006 14:33:22 +0000 (14:33 +0000)]
unmerge OpenVideo code, back to the proper multilayer system it was

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6064 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged Q1BSP LoadEdges out of bounds error into just a warning
havoc [Sat, 4 Mar 2006 13:38:03 +0000 (13:38 +0000)]
changed Q1BSP LoadEdges out of bounds error into just a warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6063 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix a const warning
havoc [Sat, 4 Mar 2006 10:50:37 +0000 (10:50 +0000)]
fix a const warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6062 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix duplicate definition of identitymatrix (search and replace accident)
havoc [Sat, 4 Mar 2006 10:49:23 +0000 (10:49 +0000)]
fix duplicate definition of identitymatrix (search and replace accident)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6061 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix typo
havoc [Sat, 4 Mar 2006 10:48:40 +0000 (10:48 +0000)]
fix typo

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6060 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoeliminated calls to Matrix4x4_CreateIdentity (now copies from the already existing...
havoc [Sat, 4 Mar 2006 10:47:37 +0000 (10:47 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6059 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoreplaced sbarpic_t with cachepic_t in sbar code (saves a bit of memory)
havoc [Sat, 4 Mar 2006 09:24:21 +0000 (09:24 +0000)]
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)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6058 d7cf8633-e32d-0410-b094-e92efae38249

15 years ago454
havoc [Sat, 4 Mar 2006 09:23:32 +0000 (09:23 +0000)]

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6057 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded SDL_APPACTIVE checking so that vid_hidden is now set correctly, this turns...
havoc [Sat, 4 Mar 2006 09:23:05 +0000 (09:23 +0000)]
added SDL_APPACTIVE checking so that vid_hidden is now set correctly, this turns off rendering when minimized

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6056 d7cf8633-e32d-0410-b094-e92efae38249

15 years agooptimizations and refactoring to get a small (1-2%) speed gain
havoc [Sat, 4 Mar 2006 07:14:10 +0000 (07:14 +0000)]
optimizations and refactoring to get a small (1-2%) speed gain

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6055 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded a fast path for queries on "sv_gravity" in CG_Frame (which is unused)
havoc [Sat, 4 Mar 2006 06:13:50 +0000 (06:13 +0000)]
added a fast path for queries on "sv_gravity" in CG_Frame (which is unused)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6054 d7cf8633-e32d-0410-b094-e92efae38249

15 years agooptimized entity handling in cgame.c (not used) so that it doesn't drag down framerat...
havoc [Sat, 4 Mar 2006 05:40:06 +0000 (05:40 +0000)]
optimized entity handling in cgame.c (not used) so that it doesn't drag down framerates doing nothing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6053 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix a C99 lazy variable issue with non-C99 compilers
havoc [Sat, 4 Mar 2006 02:45:32 +0000 (02:45 +0000)]
fix a C99 lazy variable issue with non-C99 compilers

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6052 d7cf8633-e32d-0410-b094-e92efae38249

15 years agonow only compiles GLSL shaders on demand, this improves startup times (but causes...
havoc [Fri, 3 Mar 2006 15:02:56 +0000 (15:02 +0000)]
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)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6051 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomove SV_ClearDatagram call to eliminate missing weapon/pickup effects bug when using...
havoc [Fri, 3 Mar 2006 14:51:07 +0000 (14:51 +0000)]
move SV_ClearDatagram call to eliminate missing weapon/pickup effects bug when using cl_movement 1

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6050 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoFallback to "vorbis.dll" and "vorbisfile.dll" if "libvorbis.dll" and "libvorbisfile...
molivier [Thu, 2 Mar 2006 16:46:30 +0000 (16:46 +0000)]
Fallback to "vorbis.dll" and "vorbisfile.dll" if "libvorbis.dll" and "libvorbisfile.dll" can't be loaded

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6049 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoAdded mdfour.[ch] to the MSVC project files
molivier [Thu, 2 Mar 2006 15:47:38 +0000 (15:47 +0000)]
Added mdfour.[ch] to the MSVC project files

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6048 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofilter servers by "gameversion" cvar, which is now also exposed in the serverinfo
havoc [Tue, 28 Feb 2006 12:19:54 +0000 (12:19 +0000)]
filter servers by "gameversion" cvar, which is now also exposed in the serverinfo

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6047 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoonly query QuakeWorld servers when in GAME_NORMAL mode
havoc [Tue, 28 Feb 2006 08:17:49 +0000 (08:17 +0000)]
only query QuakeWorld servers when in GAME_NORMAL mode

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6046 d7cf8633-e32d-0410-b094-e92efae38249

15 years agocasts to fix warnings in MSVC x64, thanks Willis
havoc [Tue, 28 Feb 2006 06:29:59 +0000 (06:29 +0000)]
casts to fix warnings in MSVC x64, thanks Willis

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6045 d7cf8633-e32d-0410-b094-e92efae38249

15 years agopatch from div0 to fix a comment
havoc [Tue, 28 Feb 2006 06:00:27 +0000 (06:00 +0000)]
patch from div0 to fix a comment

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6044 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoreduced number of GAME_NEXUIZ checks in the engine (added cl_sound and sv_sound cvars...
havoc [Tue, 28 Feb 2006 05:41:39 +0000 (05:41 +0000)]
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)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6043 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix the minutes display on the QW scoreboard
havoc [Mon, 27 Feb 2006 02:19:30 +0000 (02:19 +0000)]
fix the minutes display on the QW scoreboard

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6042 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoMorphOS networking support patch from bigfoot
havoc [Mon, 27 Feb 2006 02:15:48 +0000 (02:15 +0000)]
MorphOS networking support patch from bigfoot

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6041 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded MorphOS labeling
havoc [Mon, 27 Feb 2006 02:15:10 +0000 (02:15 +0000)]
added MorphOS labeling

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6040 d7cf8633-e32d-0410-b094-e92efae38249

15 years agovast improvements in qw server listings in the server browser
havoc [Sun, 26 Feb 2006 11:00:19 +0000 (11:00 +0000)]
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)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6039 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded qw master support to server query system, and added 16 masters (15 of which...
havoc [Sun, 26 Feb 2006 09:39:59 +0000 (09:39 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6038 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoimproved packet command to have more escape codes (like \0)
havoc [Sun, 26 Feb 2006 09:37:52 +0000 (09:37 +0000)]
improved packet command to have more escape codes (like \0)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6037 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix crash in nq connect (oops)
havoc [Sun, 26 Feb 2006 09:36:46 +0000 (09:36 +0000)]
fix crash in nq connect (oops)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6036 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded support for qw movevars (sent in server join, and sometimes a couple of them...
havoc [Sun, 26 Feb 2006 06:15:17 +0000 (06:15 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6035 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix the timeout problem with cl_movement 1 mode on QW servers, but the prediction...
havoc [Sun, 26 Feb 2006 03:15:05 +0000 (03:15 +0000)]
fix the timeout problem with cl_movement 1 mode on QW servers, but the prediction still needs work to make use of movevars

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6034 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoqw support is 99% working
havoc [Sun, 26 Feb 2006 03:00:47 +0000 (03:00 +0000)]
qw support is 99% working

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6033 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded md4four map checksumming, since QW servers seem to be very picky about map...
havoc [Sat, 25 Feb 2006 14:13:18 +0000 (14:13 +0000)]
added md4four map checksumming, since QW servers seem to be very picky about map checksums matching

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6031 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoQW support getting very close
havoc [Sat, 25 Feb 2006 13:21:54 +0000 (13:21 +0000)]
QW support getting very close

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6030 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoQW support getting closer
havoc [Sat, 25 Feb 2006 10:11:36 +0000 (10:11 +0000)]
QW support getting closer

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6029 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomoved parse_model_precache and parse_sound_precache to cl.model_names and cl.sound_na...
havoc [Sat, 25 Feb 2006 09:59:58 +0000 (09:59 +0000)]
moved parse_model_precache and parse_sound_precache to cl.model_names and cl.sound_names respectively

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6028 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix typos that caused colormod to malfunction when hosting a QUAKEDP protocol server...
havoc [Sat, 25 Feb 2006 08:56:03 +0000 (08:56 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6027 d7cf8633-e32d-0410-b094-e92efae38249

15 years agobeginnings of qw protocol support
havoc [Fri, 24 Feb 2006 06:04:40 +0000 (06:04 +0000)]
beginnings of qw protocol support

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6026 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded InfoString_Print
havoc [Fri, 24 Feb 2006 06:03:21 +0000 (06:03 +0000)]
added InfoString_Print
modified InfoString_GetValue and InfoString_SetValue to reject " characters

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6025 d7cf8633-e32d-0410-b094-e92efae38249

15 years agorenamed cl.protocol to cls.protocol
havoc [Fri, 24 Feb 2006 05:18:03 +0000 (05:18 +0000)]
renamed cl.protocol to cls.protocol

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6024 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix infinite loop bugs in InfoString_SetValue
havoc [Fri, 24 Feb 2006 05:17:36 +0000 (05:17 +0000)]
fix infinite loop bugs in InfoString_SetValue

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6023 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoremoved canSend field from netconn_t, and added a fromserver variable in client parsi...
havoc [Fri, 24 Feb 2006 04:46:27 +0000 (04:46 +0000)]
removed canSend field from netconn_t, and added a fromserver variable in client parsing just for clarity

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6022 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoremove an unnecessary SV_VM block
havoc [Fri, 24 Feb 2006 04:44:04 +0000 (04:44 +0000)]
remove an unnecessary SV_VM block

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6021 d7cf8633-e32d-0410-b094-e92efae38249

15 years agopatch from esteel that fixes the +/-button command descriptions (they all said button3)
havoc [Fri, 24 Feb 2006 04:14:42 +0000 (04:14 +0000)]
patch from esteel that fixes the +/-button command descriptions (they all said button3)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6020 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix rcon_password validation to refuse whitespace, and refuse empty passwords (as...
havoc [Thu, 23 Feb 2006 16:19:09 +0000 (16:19 +0000)]
fix rcon_password validation to refuse whitespace, and refuse empty passwords (as it was meant to do all along, but wasn't working properly)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6019 d7cf8633-e32d-0410-b094-e92efae38249

15 years agorearrange SV_VM_Begin/End again to fix crashes
havoc [Thu, 23 Feb 2006 16:04:24 +0000 (16:04 +0000)]
rearrange SV_VM_Begin/End again to fix crashes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6018 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded qw compatible "rcon" support (allows a client who knows the server's rcon_passw...
havoc [Thu, 23 Feb 2006 14:50:41 +0000 (14:50 +0000)]
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)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6017 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged Polygon[DF]_Divide functions to also be able to return an on-plane points...
havoc [Thu, 23 Feb 2006 11:08:14 +0000 (11:08 +0000)]
changed Polygon[DF]_Divide functions to also be able to return an on-plane points count

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6016 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomerged NetConn_SendReliableMessage into NetConn_SendUnreliableMessage, and also merge...
havoc [Thu, 23 Feb 2006 10:57:31 +0000 (10:57 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6015 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomake cl_movement handling a little more robust (hopefully)
havoc [Thu, 23 Feb 2006 10:47:09 +0000 (10:47 +0000)]
make cl_movement handling a little more robust (hopefully)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6014 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged r_speeds to only display timings with r_speeds 2, r_speeds 1 now only display...
havoc [Thu, 23 Feb 2006 10:34:56 +0000 (10:34 +0000)]
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)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6013 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoanother int cast for that patch
havoc [Thu, 23 Feb 2006 05:47:53 +0000 (05:47 +0000)]
another int cast for that patch

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6012 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded int cast on write call in new terminal printing code, and added an include...
havoc [Thu, 23 Feb 2006 05:43:57 +0000 (05:43 +0000)]
added int cast on write call in new terminal printing code, and added an include of io.h on windows

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6011 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoremoved runmove array in favor of using a private entity flag to prevent movement...
havoc [Thu, 23 Feb 2006 05:29:16 +0000 (05:29 +0000)]
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

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6010 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadd the priv.server->move field needed by a previous commit
havoc [Thu, 23 Feb 2006 05:26:53 +0000 (05:26 +0000)]
add the priv.server->move field needed by a previous commit

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6009 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochange unknown opcode error to a Con_DPrintf, this makes fteqcc fastarrays progs...
havoc [Thu, 23 Feb 2006 04:14:59 +0000 (04:14 +0000)]
change unknown opcode error to a Con_DPrintf, this makes fteqcc fastarrays progs load

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6006 d7cf8633-e32d-0410-b094-e92efae38249

15 years agodiv0 fixed the bug that caused huge console prints to the terminal to be truncated...
havoc [Thu, 23 Feb 2006 01:48:09 +0000 (01:48 +0000)]
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!

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6005 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix alias execution order bug introduced by Black on 20050705 (using Cbuf_AddText...
havoc [Wed, 22 Feb 2006 23:18:12 +0000 (23:18 +0000)]
fix alias execution order bug introduced by Black on 20050705 (using Cbuf_AddText instead of Cbuf_InsertText for alias expansion is bad!)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6004 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix decal draw order bug introduced in recent commit, I forgot that decals are not...
havoc [Wed, 22 Feb 2006 12:12:24 +0000 (12:12 +0000)]
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)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6003 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged behavior of r_showtris (now only affects geometry in the game view, not sky...
havoc [Wed, 22 Feb 2006 10:02:25 +0000 (10:02 +0000)]
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)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6002 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded NAN error checks to traceline and tracebox calls, these cause a PRVM_ERROR
havoc [Wed, 22 Feb 2006 07:50:02 +0000 (07:50 +0000)]
added NAN error checks to traceline and tracebox calls, these cause a PRVM_ERROR

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6001 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomade QC error() and objerror() builtins print the error string above and below the...
havoc [Wed, 22 Feb 2006 07:46:31 +0000 (07:46 +0000)]
made QC error() and objerror() builtins print the error string above and below the crash information, to be less confusing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6000 d7cf8633-e32d-0410-b094-e92efae38249