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

15 years agoAdded function S_IsSoundPrecached to the sound engine API. "snd_main.h" shouldn't...
molivier [Mon, 20 Feb 2006 23:33:24 +0000 (23:33 +0000)]
Added function S_IsSoundPrecached to the sound engine API. "snd_main.h" shouldn't be included outside of the sound engine.

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

15 years agoModified path for Transfusion gfx files
molivier [Mon, 20 Feb 2006 23:28:52 +0000 (23:28 +0000)]
Modified path for Transfusion gfx files

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

15 years agofix player not being able to move bug introduced by recent input accumulation code
havoc [Mon, 20 Feb 2006 04:07:22 +0000 (04:07 +0000)]
fix player not being able to move bug introduced by recent input accumulation code

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

15 years agoWorkaround for a bug in the Linux ATI proprietary driver; it does not put the current...
molivier [Sun, 19 Feb 2006 09:25:42 +0000 (09:25 +0000)]
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)

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

15 years agocall NetConn_UpdateSockets instead of NetConn_ClientFrame in playdemo code
havoc [Sat, 18 Feb 2006 10:16:18 +0000 (10:16 +0000)]
call NetConn_UpdateSockets instead of NetConn_ClientFrame in playdemo code

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

15 years agoWillis added a better fallback when the nexuiz menu qc fails to load
havoc [Sat, 18 Feb 2006 05:20:04 +0000 (05:20 +0000)]
Willis added a better fallback when the nexuiz menu qc fails to load

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

15 years agofix crashes with NAN bounding boxes (collisions or dlights) recursing down the BSP...
havoc [Fri, 17 Feb 2006 09:41:32 +0000 (09:41 +0000)]
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

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

15 years agoadded an unstick function used on most entities if their movement trace indicates...
havoc [Fri, 17 Feb 2006 04:00:27 +0000 (04:00 +0000)]
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

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

15 years agochanged tryrates array to include 48000, 24000, and 16000 speeds (this should help...
havoc [Fri, 17 Feb 2006 03:25:31 +0000 (03:25 +0000)]
changed tryrates array to include 48000, 24000, and 16000 speeds (this should help 48khz AC97 chips)

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

15 years agoreworked input timing a bit more, now cl_movement 1 mode syncs client packets to...
havoc [Thu, 16 Feb 2006 10:28:15 +0000 (10:28 +0000)]
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)

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

15 years agoremove an unused extern for sys_ticrate, and added a comment warning about improper...
havoc [Thu, 16 Feb 2006 07:24:09 +0000 (07:24 +0000)]
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)

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

15 years agofixed bug that allowed accidental speed cheating with cl_movement 1 mode (move->time...
havoc [Thu, 16 Feb 2006 07:20:28 +0000 (07:20 +0000)]
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)

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

15 years agoadded a small how to install guide and a link to the Linux Quake Howto
havoc [Wed, 15 Feb 2006 22:29:50 +0000 (22:29 +0000)]
added a small how to install guide and a link to the Linux Quake Howto

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

15 years agoalso accumulate impulses when receiving multiple packets per server frame
havoc [Wed, 15 Feb 2006 06:04:51 +0000 (06:04 +0000)]
also accumulate impulses when receiving multiple packets per server frame

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

15 years agochanged client input packets to be sent at a fixed 50fps (configurable by cvar) rathe...
havoc [Wed, 15 Feb 2006 03:14:42 +0000 (03:14 +0000)]
changed client input packets to be sent at a fixed 50fps (configurable by cvar) rather than in response to each server packet

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

15 years agoimproved server handling of multiple packets per client physics frame (as would be...
havoc [Wed, 15 Feb 2006 03:09:37 +0000 (03:09 +0000)]
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)

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

15 years agofix very stupid bug that caused entities to sometimes not be removed (priority was...
havoc [Wed, 15 Feb 2006 02:54:14 +0000 (02:54 +0000)]
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)

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

15 years agofix a typo in vid_conwidth declaration
havoc [Tue, 14 Feb 2006 23:39:23 +0000 (23:39 +0000)]
fix a typo in vid_conwidth declaration

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

15 years agoadded nexuiz-agl executable name so that mac nexuiz builds work
havoc [Mon, 13 Feb 2006 18:35:43 +0000 (18:35 +0000)]
added nexuiz-agl executable name so that mac nexuiz builds work

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

15 years agomodified Host_ServerFrame to run multiple server frames again, but with a time limit...
havoc [Mon, 13 Feb 2006 00:23:46 +0000 (00:23 +0000)]
modified Host_ServerFrame to run multiple server frames again, but with a time limit of 0.05 seconds spent on server frames per call

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

15 years agonow make clean cleans up the nexuiz executables also
havoc [Sun, 12 Feb 2006 21:03:32 +0000 (21:03 +0000)]
now make clean cleans up the nexuiz executables also

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

15 years agochanged vorbis.dll and friends to use lib prefix (libvorbis.dll)
havoc [Sun, 12 Feb 2006 20:59:15 +0000 (20:59 +0000)]
changed vorbis.dll and friends to use lib prefix (libvorbis.dll)

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

15 years agoadded nexuiz icon and make rules to make use of it, and now the icon is included...
havoc [Sun, 12 Feb 2006 20:26:02 +0000 (20:26 +0000)]
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)

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

15 years agofixed changelevel networking bug (now ignores clc_ackframe messages from clients...
havoc [Sun, 12 Feb 2006 19:44:39 +0000 (19:44 +0000)]
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)

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

15 years agomoved sendsignon = true back to where it was, as it is directly related to the messag...
havoc [Sun, 12 Feb 2006 19:43:45 +0000 (19:43 +0000)]
moved sendsignon = true back to where it was, as it is directly related to the message writing above it

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

15 years agofix uninitialized specularscale in R_Shadow_RenderSurfacesLighting
havoc [Sun, 12 Feb 2006 18:22:42 +0000 (18:22 +0000)]
fix uninitialized specularscale in R_Shadow_RenderSurfacesLighting

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

15 years agofix uninitialized variables in InfoString_GetValue and InfoString_SetValue
havoc [Sun, 12 Feb 2006 18:22:09 +0000 (18:22 +0000)]
fix uninitialized variables in InfoString_GetValue and InfoString_SetValue

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

15 years agorenamed NetConn_UpdateServerStuff to NetConn_UpdateSockets and made it non-static...
havoc [Sun, 12 Feb 2006 18:21:16 +0000 (18:21 +0000)]
renamed NetConn_UpdateServerStuff to NetConn_UpdateSockets and made it non-static, now called in CL_EstablishConnection so +connect on commandline works again

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

15 years agorollback recent network compression changes, it really does have to be reset on level...
havoc [Sun, 12 Feb 2006 05:35:37 +0000 (05:35 +0000)]
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

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

15 years agofixed glsl colormapping brightness bug when using colormod
havoc [Sun, 12 Feb 2006 05:28:19 +0000 (05:28 +0000)]
fixed glsl colormapping brightness bug when using colormod

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

15 years agoa fix for the previous fix (don't reset host_client->latestframenum on level change)
havoc [Sun, 12 Feb 2006 05:12:37 +0000 (05:12 +0000)]
a fix for the previous fix (don't reset host_client->latestframenum on level change)

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

15 years agoGAME_NEXUIZ scoreboard team color names patch from KadaverJack
havoc [Sun, 12 Feb 2006 03:28:52 +0000 (03:28 +0000)]
GAME_NEXUIZ scoreboard team color names patch from KadaverJack

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

15 years agofix problems with changelevel causing network compression to stop working (bug introd...
havoc [Sun, 12 Feb 2006 02:55:42 +0000 (02:55 +0000)]
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

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

15 years agoremoved EntityFrame5_ResetDatabase because it was only used in EntityFrame5_AllocDatabase
havoc [Sun, 12 Feb 2006 00:35:46 +0000 (00:35 +0000)]
removed EntityFrame5_ResetDatabase because it was only used in EntityFrame5_AllocDatabase

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

15 years agofix a crash in SV_ConnectClient on bots
havoc [Sat, 11 Feb 2006 22:49:59 +0000 (22:49 +0000)]
fix a crash in SV_ConnectClient on bots

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

15 years agoremoved crash parameter from Host_ShudownServer, eliminated NetConn_SendToAll and...
havoc [Sat, 11 Feb 2006 04:24:19 +0000 (04:24 +0000)]
removed crash parameter from Host_ShudownServer, eliminated NetConn_SendToAll and SV_SendReconnect

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

15 years agominor cleanup of keepalive
havoc [Sat, 11 Feb 2006 04:21:51 +0000 (04:21 +0000)]
minor cleanup of keepalive

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

15 years agomigrated cls.message and client->message buffers into netconn_t struct
havoc [Sat, 11 Feb 2006 02:33:30 +0000 (02:33 +0000)]
migrated cls.message and client->message buffers into netconn_t struct

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