]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
18 years agofix EF_SELECTABLE flickering bug with prydon cursor
havoc [Thu, 23 Mar 2006 12:33:46 +0000 (12:33 +0000)]
fix EF_SELECTABLE flickering bug with prydon cursor

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

18 years agoand a GL_DepthMask call
havoc [Thu, 23 Mar 2006 12:04:10 +0000 (12:04 +0000)]
and a GL_DepthMask call

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

18 years agochanged several DPrint's and developer cvar checks to higher developer cvar levels...
havoc [Thu, 23 Mar 2006 11:53:11 +0000 (11:53 +0000)]
changed several DPrint's and developer cvar checks to higher developer cvar levels (>= 10 and >= 100 for example), this makes developer 1 much more pleasant to use, also changed the memory clearing on free to depend on developer_memorydebug (which is already quite slow) rather than developer (which shouldn't slow things down much)

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

18 years agoa GL_DepthTest call I forgot in the last commit
havoc [Thu, 23 Mar 2006 11:49:22 +0000 (11:49 +0000)]
a GL_DepthTest call I forgot in the last commit

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

18 years agofixed bug that made light filter cubemaps not work in GLSL mode (was binding a cubema...
havoc [Thu, 23 Mar 2006 11:47:11 +0000 (11:47 +0000)]
fixed bug that made light filter cubemaps not work in GLSL mode (was binding a cubemap as a 2D texture...  oops)
fixed bug that made sky brush entities not appear when not looking at sky brushes in the world (GL_DepthTest/GL_DepthMask were messed up)

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

18 years agocorrected PFLAGS_FULLDYNAMIC pitch angle handling
havoc [Thu, 23 Mar 2006 11:44:47 +0000 (11:44 +0000)]
corrected PFLAGS_FULLDYNAMIC pitch angle handling

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

18 years agofix bugs with bbox vs bbox traces (the collision box's planes didn't have correct...
havoc [Thu, 23 Mar 2006 11:43:46 +0000 (11:43 +0000)]
fix bugs with bbox vs bbox traces (the collision box's planes didn't have correct contents/surfaceflags/texture information)

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

18 years agofixed really stupid bug in Matrix4x4_Normalize - it was transposing the matrix (a...
havoc [Thu, 23 Mar 2006 11:41:34 +0000 (11:41 +0000)]
fixed really stupid bug in Matrix4x4_Normalize - it was transposing the matrix (a legacy of the fact it was based on Invert_Simple)

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

18 years agoadd back a cls.signon = 0 in the SpawnServer code that is necessary to prevent crashe...
havoc [Thu, 23 Mar 2006 02:34:51 +0000 (02:34 +0000)]
add back a cls.signon = 0 in the SpawnServer code that is necessary to prevent crashes on level change in singleplayer and listen servers

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

18 years agoadded more validation of clipnodes loaded from a q1bsp file
havoc [Thu, 23 Mar 2006 02:34:16 +0000 (02:34 +0000)]
added more validation of clipnodes loaded from a q1bsp file

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

18 years agoanother WIN32_LEAN_AND_MEAN patch from Willis, this one for non-SDL client and dedica...
havoc [Wed, 22 Mar 2006 09:18:03 +0000 (09:18 +0000)]
another WIN32_LEAN_AND_MEAN patch from Willis, this one for non-SDL client and dedicated server

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

18 years agoimplemented DP_TRACE_HITCONTENTSMASK_SURFACEINFO extension, this allows QC to find...
havoc [Wed, 22 Mar 2006 08:51:35 +0000 (08:51 +0000)]
implemented DP_TRACE_HITCONTENTSMASK_SURFACEINFO extension, this allows QC to find out if a projectile hit sky, among other capabilities

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

18 years agochanged collision code to report supercontents, surfaceflags, and texture that was...
havoc [Wed, 22 Mar 2006 05:22:21 +0000 (05:22 +0000)]
changed collision code to report supercontents, surfaceflags, and texture that was hit in a trace (even if it has to fake the information for q1bsp)
decals no longer stick to sky (except in stock id1 q1bsp maps which have CONTENTS_SOLID sky)

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

18 years ago448
havoc [Tue, 21 Mar 2006 10:36:25 +0000 (10:36 +0000)]
448

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

18 years agofixed bug that made deluxemapping gloss appear even with rtworld on
havoc [Tue, 21 Mar 2006 10:31:54 +0000 (10:31 +0000)]
fixed bug that made deluxemapping gloss appear even with rtworld on

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

18 years agofix alpha blended textures in GLSL lighting path
havoc [Tue, 21 Mar 2006 10:28:43 +0000 (10:28 +0000)]
fix alpha blended textures in GLSL lighting path

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

18 years agochanged all Draw_CachePic calls to precache the pic except for two calls in the menu...
havoc [Tue, 21 Mar 2006 09:56:14 +0000 (09:56 +0000)]
changed all Draw_CachePic calls to precache the pic except for two calls in the menu qc vm

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

18 years agofix a crash that could occur if resizing the resize buffer twice in one upload call...
havoc [Tue, 21 Mar 2006 09:55:27 +0000 (09:55 +0000)]
fix a crash that could occur if resizing the resize buffer twice in one upload call, and also fix a bug where the player setup menu's translated player pic was being treated as a subimage update which doesn't work because that image is scaled up, not a natural power of 2

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

18 years agoslight readability improvement to PointInfrontOfTriangle
havoc [Tue, 21 Mar 2006 09:07:34 +0000 (09:07 +0000)]
slight readability improvement to PointInfrontOfTriangle

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

18 years agoremoved detection of GL_NV_texture_shader extension which was previously used for...
havoc [Tue, 21 Mar 2006 09:06:02 +0000 (09:06 +0000)]
removed detection of GL_NV_texture_shader extension which was previously used for the geforce3 water shader that was removed a long time ago
removed support for GL_DSDT_NV textures (which were only used for the geforce3 water shader)
removed code pertaining to GL_NV_vertex_array_range (which hasn't been supported for a very long time)

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

18 years agoremoved TEXF_FRAGMENT support from texture manager and merged gltextureimage_t into...
havoc [Tue, 21 Mar 2006 08:49:42 +0000 (08:49 +0000)]
removed TEXF_FRAGMENT support from texture manager and merged gltextureimage_t into gltexture_t to save some memory and reduce code complexity

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

18 years agoMinor changes to get rid of functions deprecated in Mac OS X 10.4
molivier [Tue, 21 Mar 2006 06:52:58 +0000 (06:52 +0000)]
Minor changes to get rid of functions deprecated in Mac OS X 10.4

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

18 years agomodified Q1BSP loader to generate lightmap fragments on its own, rather than relying...
havoc [Tue, 21 Mar 2006 06:49:25 +0000 (06:49 +0000)]
modified Q1BSP loader to generate lightmap fragments on its own, rather than relying on the texture manager, this greatly shortens r_texturestats reports and reduces memory usage a bit (less gltexture_t structures), and modified R_UpdateTexture to be able to update fragments

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

18 years agorenamed varray_ arrays to rsurface_array_, and they are no longer used outside the...
havoc [Tue, 21 Mar 2006 05:49:29 +0000 (05:49 +0000)]
renamed varray_ arrays to rsurface_array_, and they are no longer used outside the surface rendering code, additionally they are now dynamically resized (saves a little memory)
audited a lot of memory allocations and fixed a few significant leaks
removed Host_ClearMemory as it was causing several memory leaks, and split cls.mempool into cls.levelmempool and cls.permanentmempool, cls.levelmempool is now emptied each level load (this also fixes those same leaks)
merged r_shadow_mempool into r_main_mempool

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

18 years agoremoved the USETEXMATRIX define (now always on), reduced varray_texcoord3f to only...
havoc [Tue, 21 Mar 2006 03:03:26 +0000 (03:03 +0000)]
removed the USETEXMATRIX define (now always on), reduced varray_texcoord3f to only have one array rather than 4 (as the others are no longer needed with USETEXMATRIX), removed varray_texcoord2f, removed earray_element3i
changed many simple uses of varray_* arrays to use stack arrays instead
this reduces memory usage by 1MB

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

18 years agoremoved unused R_Mesh_CacheArray stuff
havoc [Tue, 21 Mar 2006 02:27:02 +0000 (02:27 +0000)]
removed unused R_Mesh_CacheArray stuff

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

18 years agomoved SCR_UpdateScreen and SCR_DrawScreen code to cl_screen.c and rearranged them...
havoc [Tue, 21 Mar 2006 02:23:27 +0000 (02:23 +0000)]
moved SCR_UpdateScreen and SCR_DrawScreen code to cl_screen.c and rearranged them somewhat
moved DrawQ_ functions to gl_draw.c and eliminated r_refdef.drawqueue (this saves some memory and makes all the 2D code more efficient)
disabled unused R_Mesh_CacheArray stuff in gl_backend.c

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

18 years agofixed one more cvar declaration that was missing a comma
havoc [Tue, 21 Mar 2006 01:18:34 +0000 (01:18 +0000)]
fixed one more cvar declaration that was missing a comma

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

18 years agofixed value/description of r_textshadow
havoc [Tue, 21 Mar 2006 01:15:43 +0000 (01:15 +0000)]
fixed value/description of r_textshadow

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

18 years agofixed stuck entity warnings when they should not have been occurring, by adding trace...
havoc [Mon, 20 Mar 2006 23:09:24 +0000 (23:09 +0000)]
fixed stuck entity warnings when they should not have been occurring, by adding trace.bmodelstartsolid as a separate thing to check

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

18 years agoenabled fullbrights on liquid textures in q1bsp loading, this fixes the black lava bug
havoc [Mon, 20 Mar 2006 22:31:10 +0000 (22:31 +0000)]
enabled fullbrights on liquid textures in q1bsp loading, this fixes the black lava bug

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

18 years agofix crash when using r_editlights mode
havoc [Mon, 20 Mar 2006 06:13:30 +0000 (06:13 +0000)]
fix crash when using r_editlights mode

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

18 years agofix nail and explosion sound defaults
havoc [Mon, 20 Mar 2006 06:08:51 +0000 (06:08 +0000)]
fix nail and explosion sound defaults

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

18 years agocl_movement 0 should no longer be causing an input replay (which was slow and pointle...
havoc [Mon, 20 Mar 2006 05:51:30 +0000 (05:51 +0000)]
cl_movement 0 should no longer be causing an input replay (which was slow and pointless), though I don't know how it was doing so before...
added code to prevent pogostick jumping in the cl_movement prediction (since the qc prevents pogostick jumping, it was inaccurate to simulate it clientside)
changed view/gun bobbing to use cl.movement_velocity for the xyspeed math, this greatly improves the clientside prediction

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

18 years agoWIN32_LEAN_AND_MEAN patch from Willis to speed up MSVC compilation
havoc [Mon, 20 Mar 2006 04:01:50 +0000 (04:01 +0000)]
WIN32_LEAN_AND_MEAN patch from Willis to speed up MSVC compilation

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

18 years agoadded reliefmapping (behaves exactly like offsetmapping, but a slightly different...
havoc [Mon, 20 Mar 2006 04:01:09 +0000 (04:01 +0000)]
added reliefmapping (behaves exactly like offsetmapping, but a slightly different look), removed r_glsl_offsetmapping_bias setting

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

18 years agofixed deluxemapping
havoc [Sun, 19 Mar 2006 21:15:02 +0000 (21:15 +0000)]
fixed deluxemapping
added r_glsl_deluxemapping cvar (2 forces fake deluxemapping on any level, kind of interesting to see)
added modelspace deluxemapping (automatically detects whether deluxemaps are modelspace or tangentspace at load time)
changed offsetmapping shader to be more perspective correct

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

18 years agoadded one more r_speeds 2 report item, to ensure that "clear" is really measuring...
havoc [Sun, 19 Mar 2006 21:12:26 +0000 (21:12 +0000)]
added one more r_speeds 2 report item, to ensure that "clear" is really measuring only the clearing process

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

18 years agoThis made the cvar completion so much more readable
sajt [Sat, 18 Mar 2006 12:17:01 +0000 (12:17 +0000)]
This made the cvar completion so much more readable

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

18 years agoI was just joking
sajt [Sat, 18 Mar 2006 12:12:57 +0000 (12:12 +0000)]
I was just joking

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

18 years agonitpicky
sajt [Sat, 18 Mar 2006 12:11:13 +0000 (12:11 +0000)]
nitpicky

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

18 years agoadded r_glsl_restart command, and modified shaderstring loading back to the old way...
havoc [Sat, 18 Mar 2006 10:08:09 +0000 (10:08 +0000)]
added r_glsl_restart command, and modified shaderstring loading back to the old way (reload the file on every permutation compile) for simplicity

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

18 years agoone more correction
havoc [Sat, 18 Mar 2006 05:20:17 +0000 (05:20 +0000)]
one more correction

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

18 years agofix stupid but non-harmful bug in RSurf_DrawLightmap code
havoc [Sat, 18 Mar 2006 05:18:27 +0000 (05:18 +0000)]
fix stupid but non-harmful bug in RSurf_DrawLightmap code

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

18 years agofixed an uninitialized variable warning (which was true)
havoc [Sat, 18 Mar 2006 05:08:48 +0000 (05:08 +0000)]
fixed an uninitialized variable warning (which was true)

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

18 years agoreduced number of image extensions checked by doing more intelligent path examination...
havoc [Sat, 18 Mar 2006 04:28:17 +0000 (04:28 +0000)]
reduced number of image extensions checked by doing more intelligent path examination, and changing q1bsp loader to prepend textures/, this allows it to not check any prefixes in the image loader itself (except in a few cases in nexuiz)
changed image loader to not check override/ unless running GAME_TENEBRAE
removed several unused image functions

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

18 years agoupdated default.glsl
havoc [Fri, 17 Mar 2006 07:50:50 +0000 (07:50 +0000)]
updated default.glsl

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

18 years agoadded deluxemapping (per pixel lighting using lightmaps in specially compiled q3bsp...
havoc [Fri, 17 Mar 2006 07:49:01 +0000 (07:49 +0000)]
added deluxemapping (per pixel lighting using lightmaps in specially compiled q3bsp maps)

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

18 years agoupdated default glsl shader
havoc [Fri, 17 Mar 2006 06:34:13 +0000 (06:34 +0000)]
updated default glsl shader

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

18 years agoadded GLSL shader path for normal rendering stage, reworked a lot of things to do...
havoc [Fri, 17 Mar 2006 06:33:11 +0000 (06:33 +0000)]
added GLSL shader path for normal rendering stage, reworked a lot of things to do this
removed .lights file loading and the corresponding directional model shading (these were only produced by hlight for q1bsp, very rare files) so that the GLSL normal rendering stage would not have to deal with .lights files
changed R_CompleteLightPoint to properly match rtlight shading, not the old dlights, this allowed removal of the old lightmap_* rtlight fields

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

18 years ago446
havoc [Fri, 17 Mar 2006 06:29:12 +0000 (06:29 +0000)]
446

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

18 years agomodified R_GetTexture to return the texnum of r_texture_white if given NULL
havoc [Fri, 17 Mar 2006 06:27:07 +0000 (06:27 +0000)]
modified R_GetTexture to return the texnum of r_texture_white if given NULL

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

18 years agoremove fullbright flag on lava and teleport textures
havoc [Fri, 17 Mar 2006 03:59:23 +0000 (03:59 +0000)]
remove fullbright flag on lava and teleport textures

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

18 years agoYes, that was a rather silly typo!
sajt [Fri, 17 Mar 2006 01:28:42 +0000 (01:28 +0000)]
Yes, that was a rather silly typo!

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

18 years agoadded v_deathtiltangle cvar to allow changing of the roll angle used while dead,...
havoc [Thu, 16 Mar 2006 22:58:21 +0000 (22:58 +0000)]
added v_deathtiltangle cvar to allow changing of the roll angle used while dead, at RenegadeC's request

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

18 years agocleaning up GLSL code
havoc [Wed, 15 Mar 2006 13:19:36 +0000 (13:19 +0000)]
cleaning up GLSL code
moved GLSL shader setup to gl_rmain.c and made it more general, not specifically lighting shaders
cache locations of GLSL shader variables for faster access (instead of looking them up every time it renders something)
GLSL shader reworked to support deluxemap rendering and lightmap rendering, to be used in the future
merged glsl/light.frag and glsl/light.vert into glsl/default.glsl using VERTEX_SHADER and FRAGMENT_SHADER defines to differentiate parts of it

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

18 years agochanged skybox string from size 64 to MAX_QPATH (which is 64)
havoc [Wed, 15 Mar 2006 13:16:19 +0000 (13:16 +0000)]
changed skybox string from size 64 to MAX_QPATH (which is 64)

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

18 years agoRemoved cgame.c, cgamevm.c, ui.c, cg_math.h, cgame_api.h, cgamevm.h, and ui.h from...
molivier [Wed, 15 Mar 2006 10:54:27 +0000 (10:54 +0000)]
Removed cgame.c, cgamevm.c, ui.c, cg_math.h, cgame_api.h, cgamevm.h, and ui.h from the MSVC projects

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

18 years agoslight optimization of model purging and the like, and a failed attempt to make mod_k...
havoc [Wed, 15 Mar 2006 08:02:43 +0000 (08:02 +0000)]
slight optimization of model purging and the like, and a failed attempt to make mod_known be a dynamic array

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

18 years agomoved many cl_ prefixed variables into cl. or cls.
havoc [Wed, 15 Mar 2006 07:02:56 +0000 (07:02 +0000)]
moved many cl_ prefixed variables into cl. or cls.
made most menu functions static
removed WORKINGLQUAKE support from cl_particles.c and moved particle allocation to cl_main.c (where all the other arrays are allocated)
renamed cl_activevideos to cl_num_videos and videoarray to cl_videos (did not move these into cls. however)

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

18 years agodon't set qc impulse more than once per packet
havoc [Wed, 15 Mar 2006 06:08:15 +0000 (06:08 +0000)]
don't set qc impulse more than once per packet

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

18 years agoremoved cgame and ui code (both unused), this reduces memory use a bit
havoc [Wed, 15 Mar 2006 01:01:53 +0000 (01:01 +0000)]
removed cgame and ui code (both unused), this reduces memory use a bit

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

18 years agoadded LAN search for quakeworld servers
havoc [Wed, 15 Mar 2006 00:42:48 +0000 (00:42 +0000)]
added LAN search for quakeworld servers

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

18 years agosplit up net_slist into net_slist and net_slistqw, and modified menu accordingly...
havoc [Wed, 15 Mar 2006 00:35:08 +0000 (00:35 +0000)]
split up net_slist into net_slist and net_slistqw, and modified menu accordingly to have two search options

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

18 years agofix crosshair 6, and allow custom crosshairs up to 32
havoc [Tue, 14 Mar 2006 04:39:14 +0000 (04:39 +0000)]
fix crosshair 6, and allow custom crosshairs up to 32

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

18 years agoFix in Nexuiz's fallback menu to avoid ending up with a blank screen
sajt [Sun, 12 Mar 2006 02:36:58 +0000 (02:36 +0000)]
Fix in Nexuiz's fallback menu to avoid ending up with a blank screen

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

18 years agor_nearclip cvar
sajt [Sun, 12 Mar 2006 01:04:12 +0000 (01:04 +0000)]
r_nearclip cvar

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

18 years agoAdded some non-crucial header files to the VC++6 projects. The .dev files need them...
sajt [Sun, 12 Mar 2006 00:23:44 +0000 (00:23 +0000)]
Added some non-crucial header files to the VC++6 projects. The .dev files need them too, not sure what compiler those files are for though.

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

18 years agofix typo
havoc [Sat, 11 Mar 2006 20:17:23 +0000 (20:17 +0000)]
fix typo

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

18 years agouse hash lookups in Cvar_FindVar, this gives a ~40% increase in fps with high numbers...
havoc [Sat, 11 Mar 2006 19:01:54 +0000 (19:01 +0000)]
use hash lookups in Cvar_FindVar, this gives a ~40% increase in fps with high numbers of bots in nexuiz

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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

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

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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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