]> git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
17 years agocorrected some svc_nop's to clc_nop's (same value but more correct)
havoc [Fri, 15 Dec 2006 19:32:10 +0000 (19:32 +0000)]
corrected some svc_nop's to clc_nop's (same value but more correct)

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

17 years agoremoved NET_MAXRATE (as it served no useful purpose), changed description of rate...
havoc [Fri, 15 Dec 2006 17:38:52 +0000 (17:38 +0000)]
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)

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

17 years agoadd a newline at the end of each exec'd config file
havoc [Thu, 14 Dec 2006 12:12:02 +0000 (12:12 +0000)]
add a newline at the end of each exec'd config file

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

17 years agoupdated Dev-C++ project file from Spirit
havoc [Wed, 13 Dec 2006 11:18:35 +0000 (11:18 +0000)]
updated Dev-C++ project file from Spirit

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

17 years agodisplay loading plaque much sooner in startup process, and draw it to GL_FRONT buffer...
havoc [Tue, 12 Dec 2006 06:28:54 +0000 (06:28 +0000)]
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

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

17 years agomoved health counter in quake hud back to its original position, no longer overlappin...
havoc [Mon, 11 Dec 2006 16:39:13 +0000 (16:39 +0000)]
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...)

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

17 years agooptimized Mod_Alias_GetMesh_Vertices to eliminate memset calls and process arrays...
havoc [Mon, 11 Dec 2006 10:07:47 +0000 (10:07 +0000)]
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)

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

17 years agochanged demo playback csqc mismatch error to a warning
havoc [Mon, 11 Dec 2006 10:06:01 +0000 (10:06 +0000)]
changed demo playback csqc mismatch error to a warning

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

17 years agofix crash when a client reconnects to the same client slot, thanks to div0 for report...
havoc [Sun, 10 Dec 2006 13:30:16 +0000 (13:30 +0000)]
fix crash when a client reconnects to the same client slot, thanks to div0 for reporting and investigating this bug

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

17 years agopatch from div0 that fixes rate limiting code to make use of sv_maxrate (as it was...
havoc [Fri, 8 Dec 2006 15:18:19 +0000 (15:18 +0000)]
patch from div0 that fixes rate limiting code to make use of sv_maxrate (as it was supposed to)

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

17 years agofixed bug where non-autosprite transparencies rendered in the same batch as autosprit...
havoc [Wed, 6 Dec 2006 13:12:57 +0000 (13:12 +0000)]
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

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

17 years agocorrected a misspelling in a comment
havoc [Wed, 6 Dec 2006 13:08:44 +0000 (13:08 +0000)]
corrected a misspelling in a comment

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

17 years agoimproved warnings from drawstring/drawpic/drawfill functions (they now state the...
havoc [Wed, 6 Dec 2006 11:05:41 +0000 (11:05 +0000)]
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)

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

17 years agofix connect error when csqc is not present (oops!)
havoc [Wed, 6 Dec 2006 11:04:46 +0000 (11:04 +0000)]
fix connect error when csqc is not present (oops!)

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

17 years agofixed black models when csqc is active
havoc [Wed, 6 Dec 2006 09:04:48 +0000 (09:04 +0000)]
fixed black models when csqc is active

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

17 years agofixed bug that caused csqc to only load after a map restart
havoc [Wed, 6 Dec 2006 08:34:35 +0000 (08:34 +0000)]
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

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

17 years agofixed a bug with cl_movement prediction being applied during demo playback
havoc [Wed, 6 Dec 2006 08:07:40 +0000 (08:07 +0000)]
fixed a bug with cl_movement prediction being applied during demo playback

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

17 years agofixed a bug with blank frames in sprites failing to produce a texture (fixes painkeep...
havoc [Tue, 5 Dec 2006 09:00:09 +0000 (09:00 +0000)]
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)

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

17 years agoadded con_closeontoggleconsole cvar based on Dresk's patch, but reduced to a minimal...
havoc [Fri, 1 Dec 2006 01:40:16 +0000 (01:40 +0000)]
added con_closeontoggleconsole cvar based on Dresk's patch, but reduced to a minimal set of changes to one file rather than two

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

17 years agofunky interlacing-like rendering feature from div0 (scr_stipple cvar)
havoc [Thu, 30 Nov 2006 23:51:51 +0000 (23:51 +0000)]
funky interlacing-like rendering feature from div0 (scr_stipple cvar)

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

17 years agopatch from Dresk which adds DP_SV_ENTITYCONTENTSTRANSITION extension which calls...
havoc [Sat, 25 Nov 2006 01:28:12 +0000 (01:28 +0000)]
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)

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

17 years agopatch from Dresk for DP_QC_STRINGCOLORFUNCTIONS extension (strlennocol measures lengt...
havoc [Fri, 24 Nov 2006 22:55:08 +0000 (22:55 +0000)]
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)

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

17 years agoadded proper support for q3 shader animmap commands
havoc [Fri, 24 Nov 2006 20:32:54 +0000 (20:32 +0000)]
added proper support for q3 shader animmap commands

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

17 years agocleaned up GL_DepthTest and GL_CULL_FACE state management (by adding GL_CullFace...
havoc [Thu, 23 Nov 2006 19:35:52 +0000 (19:35 +0000)]
cleaned up GL_DepthTest and GL_CULL_FACE state management (by adding GL_CullFace), may fix some problems with rtlighting on EF_NODEPTHTEST entities

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

17 years agoadded DP_ASINACOSATANATAN2TAN extension which adds common trig functions missing...
havoc [Thu, 23 Nov 2006 00:06:38 +0000 (00:06 +0000)]
added DP_ASINACOSATANATAN2TAN extension which adds common trig functions missing from standard QuakeC

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

17 years agoadded #define _FILE_OFFSET_BITS 64 to reduce problems with video recording on 32bit...
havoc [Fri, 17 Nov 2006 15:47:22 +0000 (15:47 +0000)]
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)

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

17 years agomade cl_viewmodel_scale apply to csqc and gettaginfo
havoc [Wed, 15 Nov 2006 11:23:55 +0000 (11:23 +0000)]
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)

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

17 years agofixed view location bugs in csqc; it was reading the player entity's render.origin...
havoc [Wed, 15 Nov 2006 09:33:22 +0000 (09:33 +0000)]
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

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

17 years agopatch from div0 to fix a segfault in curl support when canceling a file that isn...
havoc [Sun, 12 Nov 2006 12:55:06 +0000 (12:55 +0000)]
patch from div0 to fix a segfault in curl support when canceling a file that isn't being downloaded

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

17 years agopatch from div0 that removes connect flood ban when a player disconnects (this preven...
havoc [Thu, 9 Nov 2006 10:16:16 +0000 (10:16 +0000)]
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)

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

17 years agofound MATRIX4x4_OPENGLORIENTATION to be a speed loss using gcc 4.1.0 with x86_64...
havoc [Mon, 6 Nov 2006 08:48:43 +0000 (08:48 +0000)]
found MATRIX4x4_OPENGLORIENTATION to be a speed loss using gcc 4.1.0 with x86_64 architecture, disabled it by default

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

17 years agoimplemented MATRIX4X4_OPENGLORIENTATION #define option, this is on by default and...
havoc [Mon, 6 Nov 2006 08:25:26 +0000 (08:25 +0000)]
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

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

17 years agochanged md3 tag storage to be the original float[12] OpenGL-orientation format rather...
havoc [Mon, 6 Nov 2006 08:23:43 +0000 (08:23 +0000)]
changed md3 tag storage to be the original float[12] OpenGL-orientation format rather than a matrix4x4 which was wasting some space

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

17 years agomore cleaning of matrix4x4_t struct access
havoc [Mon, 6 Nov 2006 07:31:00 +0000 (07:31 +0000)]
more cleaning of matrix4x4_t struct access

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

17 years agocleaned up almost all direct indexing of matrix4x4_t structures to go through proper...
havoc [Mon, 6 Nov 2006 06:13:54 +0000 (06:13 +0000)]
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

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

18 years agoimplemented connect flood blocking (100% effective on connect floods with an interval...
havoc [Mon, 23 Oct 2006 10:34:09 +0000 (10:34 +0000)]
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)

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

18 years agogot rid of cl.qw_spectator flag because it can be determined by cl.scores[cl.playeren...
havoc [Mon, 23 Oct 2006 10:22:07 +0000 (10:22 +0000)]
got rid of cl.qw_spectator flag because it can be determined by cl.scores[cl.playerentity].qw_spectator instead

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

18 years agoattempt to avoid some Mem_Free errors on NULL pointers if there are no surfaces in...
havoc [Fri, 20 Oct 2006 15:57:17 +0000 (15:57 +0000)]
attempt to avoid some Mem_Free errors on NULL pointers if there are no surfaces in the map

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

18 years agodon't crash in scoreboard code when connected to a qw server as a spectator
havoc [Fri, 20 Oct 2006 15:16:19 +0000 (15:16 +0000)]
don't crash in scoreboard code when connected to a qw server as a spectator

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

18 years agofix bug with autosprite shaders when deformvertexes is applied twice during render...
havoc [Wed, 18 Oct 2006 09:08:50 +0000 (09:08 +0000)]
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!)

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

18 years agoadded vid_stereobuffer cvar based on patch from syschuck on the alientrap forums
havoc [Wed, 18 Oct 2006 03:52:49 +0000 (03:52 +0000)]
added vid_stereobuffer cvar based on patch from syschuck on the alientrap forums

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

18 years agosome clean up of math used to generate trace start/end in prydon cursor code
havoc [Wed, 18 Oct 2006 03:45:23 +0000 (03:45 +0000)]
some clean up of math used to generate trace start/end in prydon cursor code

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

18 years agoadded cl_viewmodel_scale cvar which controls gun model size
havoc [Wed, 18 Oct 2006 03:34:34 +0000 (03:34 +0000)]
added cl_viewmodel_scale cvar which controls gun model size

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

18 years agoadded snd_soundradius cvar (default 1000 as before) to allow games (Nexuiz for instan...
havoc [Tue, 3 Oct 2006 20:22:58 +0000 (20:22 +0000)]
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

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

18 years agoimplemented condump command (I was told by [515] that he implemented this command...
havoc [Sat, 30 Sep 2006 20:52:54 +0000 (20:52 +0000)]
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)

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

18 years agofixed a (hopefully rare) bug affecting shalrath missiles which caused multiple missil...
havoc [Wed, 20 Sep 2006 06:37:04 +0000 (06:37 +0000)]
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

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

18 years agofix bug that often made enforcer laser bolts 'stick' in the air if a player is standi...
havoc [Tue, 19 Sep 2006 08:45:13 +0000 (08:45 +0000)]
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

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

18 years agoadded GAME_DARSANA and GAME_CONTAGIONTHEORY
havoc [Tue, 19 Sep 2006 05:12:07 +0000 (05:12 +0000)]
added GAME_DARSANA and GAME_CONTAGIONTHEORY

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

18 years agodisabled junk tag writer that I wrote for byte by byte comparisons to mencoder-proces...
havoc [Sat, 16 Sep 2006 10:42:44 +0000 (10:42 +0000)]
disabled junk tag writer that I wrote for byte by byte comparisons to mencoder-processed copies of my AVI files

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

18 years agoremoved some unused variables
havoc [Sat, 16 Sep 2006 10:40:17 +0000 (10:40 +0000)]
removed some unused variables

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

18 years agoremoved video capture formats other than AVI I420 as it is the only useful format...
havoc [Sat, 16 Sep 2006 10:25:05 +0000 (10:25 +0000)]
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)

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

18 years ago496
havoc [Sat, 16 Sep 2006 09:52:43 +0000 (09:52 +0000)]
496

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

18 years agoimplemented direct AVI video capture using the I420 colorspace (aka Intel(r) 4:2...
havoc [Sat, 16 Sep 2006 09:50:21 +0000 (09:50 +0000)]
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

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

18 years agochanged VM_fopen and VM_fclose announcements to require developer >= 100 like the...
havoc [Sat, 16 Sep 2006 08:40:15 +0000 (08:40 +0000)]
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)

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

18 years agohide warnings about missing gfx/crosshair* images
havoc [Fri, 15 Sep 2006 02:07:09 +0000 (02:07 +0000)]
hide warnings about missing gfx/crosshair* images

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

18 years agoTry to fix a dedicated server crash by moving the two csqc_ cvar initializations
black [Wed, 13 Sep 2006 21:07:04 +0000 (21:07 +0000)]
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).

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

18 years agochanged deluxemapping detection code to deal with odd bsp files produced by q3map2...
havoc [Tue, 12 Sep 2006 07:22:40 +0000 (07:22 +0000)]
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

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

18 years agomoved VM_FILES and VM_SEARCHLIST stuff to prvm_prog_t
havoc [Tue, 12 Sep 2006 06:17:54 +0000 (06:17 +0000)]
moved VM_FILES and VM_SEARCHLIST stuff to prvm_prog_t

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

18 years agoremove some unsafe optimizations in VM_Files_Init and VM_Files_CloseAll (using memset...
havoc [Tue, 12 Sep 2006 05:56:26 +0000 (05:56 +0000)]
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)

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

18 years agoincreased PRVM_MAX_STACK_DEPTH and PRVM_LOCALSTACK_SIZE at div0's request to reduce...
havoc [Tue, 12 Sep 2006 04:35:31 +0000 (04:35 +0000)]
increased PRVM_MAX_STACK_DEPTH and PRVM_LOCALSTACK_SIZE at div0's request to reduce qc crashes with recursive rocket explosions in Nexuiz

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

18 years agochanged description for gl_finish cvar according to esteel's suggestion
havoc [Fri, 1 Sep 2006 09:35:38 +0000 (09:35 +0000)]
changed description for gl_finish cvar according to esteel's suggestion

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

18 years agoanother patch from div0 to improve ping parsing behavior in the event that multiple...
havoc [Tue, 29 Aug 2006 12:58:45 +0000 (12:58 +0000)]
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)

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

18 years agoanother patch from div0 to fix ping report parsing
havoc [Tue, 29 Aug 2006 04:50:40 +0000 (04:50 +0000)]
another patch from div0 to fix ping report parsing

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

18 years agopatch from div0 to fix ping report parsing where the first player slots are empty
havoc [Sun, 27 Aug 2006 10:13:24 +0000 (10:13 +0000)]
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)

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

18 years agogreatly improved chances of connecting to a proquake server on the first try, by...
havoc [Sun, 27 Aug 2006 09:23:07 +0000 (09:23 +0000)]
greatly improved chances of connecting to a proquake server on the first try, by sending an svc_nop immediately upon connect

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

18 years agofix bug with gun bobbing in demo playback (where input packets are not sent, and...
havoc [Sun, 27 Aug 2006 08:53:29 +0000 (08:53 +0000)]
fix bug with gun bobbing in demo playback (where input packets are not sent, and thus the prediction replay was not occurring...)

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

18 years agofix a bug with the divide by zero warning in the QC VM, it was not updating the relev...
havoc [Sun, 27 Aug 2006 08:52:53 +0000 (08:52 +0000)]
fix a bug with the divide by zero warning in the QC VM, it was not updating the relevant xfunction/xstatement variables

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

18 years agochanged default timeformat (related to timestamps cvar for logging)
havoc [Sun, 27 Aug 2006 08:20:44 +0000 (08:20 +0000)]
changed default timeformat (related to timestamps cvar for logging)

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

18 years agoFix for people with proper compilers :)
sajt [Sat, 26 Aug 2006 08:41:31 +0000 (08:41 +0000)]
Fix for people with proper compilers :)

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

18 years agoCSQC fixes (less broken, still not spec compliant)
havoc [Sat, 26 Aug 2006 07:02:49 +0000 (07:02 +0000)]
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

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

18 years agoaccidentally removed -fno-strict-aliasing
havoc [Fri, 25 Aug 2006 15:33:33 +0000 (15:33 +0000)]
accidentally removed -fno-strict-aliasing

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

18 years agofix csqc support on dedicated servers (now CRC's the csqc_progname file at level...
havoc [Fri, 25 Aug 2006 12:48:54 +0000 (12:48 +0000)]
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)

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

18 years agofix the jittery gun bug related to onground changing rapidly
havoc [Fri, 25 Aug 2006 12:27:02 +0000 (12:27 +0000)]
fix the jittery gun bug related to onground changing rapidly

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

18 years agodisabled support for csqc entities in CL_SelectTraceLine
havoc [Fri, 25 Aug 2006 12:18:13 +0000 (12:18 +0000)]
disabled support for csqc entities in CL_SelectTraceLine

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

18 years agochanged release optimizations from -O2 -ffast-math -funroll-loops to simply -O2,...
havoc [Fri, 25 Aug 2006 08:53:39 +0000 (08:53 +0000)]
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)

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

18 years agoFix a stupid typo in the sbar's ctf flag icon filenames.
black [Mon, 21 Aug 2006 11:19:41 +0000 (11:19 +0000)]
Fix a stupid typo in the sbar's ctf flag icon filenames.

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

18 years agonexuiz hud change to show flag status in CTF
havoc [Mon, 21 Aug 2006 07:40:40 +0000 (07:40 +0000)]
nexuiz hud change to show flag status in CTF

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

18 years agopatch from div to fix icc warnings
havoc [Sat, 19 Aug 2006 04:25:06 +0000 (04:25 +0000)]
patch from div to fix icc warnings

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

18 years agochanged several '^' checks to STRING_COLOR_TAG as they should be
havoc [Wed, 16 Aug 2006 07:17:21 +0000 (07:17 +0000)]
changed several '^' checks to STRING_COLOR_TAG as they should be

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

18 years agoreorganized Host_Init a bit, merged away a few functions (such as COM_CheckRegistered...
havoc [Wed, 16 Aug 2006 07:13:29 +0000 (07:13 +0000)]
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)

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

18 years agono longer has time or team columns in non-QW games
havoc [Mon, 14 Aug 2006 23:46:30 +0000 (23:46 +0000)]
no longer has time or team columns in non-QW games

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

18 years agopatch from div0: clamp "ping" reply valies in 0..9999 to prevent misparsing in case...
havoc [Mon, 14 Aug 2006 22:55:34 +0000 (22:55 +0000)]
patch from div0: clamp "ping" reply valies in 0..9999 to prevent misparsing in case of uninitialized ping values

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

18 years agopatch from div0: Send download requirements at an earlier time to cause less message...
havoc [Mon, 14 Aug 2006 22:54:32 +0000 (22:54 +0000)]
patch from div0: Send download requirements at an earlier time to cause less message spam with the disconnect-and-reconnect download method

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

18 years agooops forgot this from the cd loop/play named tracks patch
havoc [Mon, 14 Aug 2006 22:54:01 +0000 (22:54 +0000)]
oops forgot this from the cd loop/play named tracks patch

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

18 years agopatch from div0:
havoc [Mon, 14 Aug 2006 22:53:15 +0000 (22:53 +0000)]
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

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

18 years agopatch from div0:
havoc [Mon, 14 Aug 2006 22:51:43 +0000 (22:51 +0000)]
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

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

18 years agopatch from div0: cd loop and cd play commands now support named tracks (explicitly...
havoc [Mon, 14 Aug 2006 22:49:49 +0000 (22:49 +0000)]
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)

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

18 years agoreenabled the quake 'fall out of level' bug, to make the scorpion near the start...
havoc [Mon, 14 Aug 2006 05:14:24 +0000 (05:14 +0000)]
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)

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

18 years ago494
havoc [Thu, 10 Aug 2006 09:35:30 +0000 (09:35 +0000)]
494

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

18 years agohush warnings about strcat and other redefinitions by undefining them first
havoc [Sat, 5 Aug 2006 20:03:21 +0000 (20:03 +0000)]
hush warnings about strcat and other redefinitions by undefining them first

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

18 years agoRemoved all calls to strcpy; most of them are now calls to strlcpy or memcpy.
molivier [Sat, 5 Aug 2006 12:31:03 +0000 (12:31 +0000)]
Removed all calls to strcpy; most of them are now calls to strlcpy or memcpy.

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

18 years agoThe inclusion of pthread.h was missing
molivier [Sat, 5 Aug 2006 12:30:03 +0000 (12:30 +0000)]
The inclusion of pthread.h was missing

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

18 years agoReplaced all calls to str[n]cat and strncpy by calls to strlcat and strlcpy respectively
molivier [Fri, 4 Aug 2006 11:37:32 +0000 (11:37 +0000)]
Replaced all calls to str[n]cat and strncpy by calls to strlcat and strlcpy respectively

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

18 years agofix memory alignment issue when saving odd-width screenshots (set GL_PACK_ALIGNMENT...
havoc [Thu, 3 Aug 2006 15:25:42 +0000 (15:25 +0000)]
fix memory alignment issue when saving odd-width screenshots (set GL_PACK_ALIGNMENT to 1), thanks div0

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

18 years agomore tweaks trying to improve precision on q3map2-compiled terrain models in q3bsp
havoc [Mon, 31 Jul 2006 18:39:19 +0000 (18:39 +0000)]
more tweaks trying to improve precision on q3map2-compiled terrain models in q3bsp

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

18 years agotrying to improve terrain collision brush issues in q3bsp
havoc [Mon, 31 Jul 2006 13:57:42 +0000 (13:57 +0000)]
trying to improve terrain collision brush issues in q3bsp

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

18 years agoadded gamepad/joystick support to the SDL client, this uses completely different...
havoc [Mon, 31 Jul 2006 10:00:45 +0000 (10:00 +0000)]
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 :)

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

18 years agoimproved plane distance epsilon checking and improved precision when converting brush...
havoc [Mon, 31 Jul 2006 09:59:14 +0000 (09:59 +0000)]
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

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

18 years ago491
havoc [Wed, 26 Jul 2006 13:57:58 +0000 (13:57 +0000)]
491

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

18 years agofixed an improperly filed change request
havoc [Wed, 26 Jul 2006 13:51:03 +0000 (13:51 +0000)]
fixed an improperly filed change request

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