18 years agono more warping meshs of any kind
havoc [Wed, 21 Aug 2002 00:10:30 +0000 (00:10 +0000)]
no more warping meshs of any kind
sky is always of the masked variety if enabled at all
water does not move
R_Mesh_Draw is no longer used by gl_rsurf at all

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

18 years agocorrected spelling of alorgithm
havoc [Tue, 20 Aug 2002 22:47:31 +0000 (22:47 +0000)]
corrected spelling of alorgithm

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

18 years agofixed menu player colormapping
havoc [Tue, 20 Aug 2002 20:24:31 +0000 (20:24 +0000)]
fixed menu player colormapping

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

18 years agochanged color command description to mention it is 0-15 range, not 0-13
havoc [Tue, 20 Aug 2002 19:54:39 +0000 (19:54 +0000)]
changed color command description to mention it is 0-15 range, not 0-13

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

18 years agogot rid of host_parms
havoc [Tue, 20 Aug 2002 08:28:01 +0000 (08:28 +0000)]
got rid of host_parms
added com_basedir
cleaned up gamedir related code

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

18 years agogot rid of host_parms.argc and argv, now uses com_argc and com_argv directly
havoc [Tue, 20 Aug 2002 07:08:40 +0000 (07:08 +0000)]
got rid of host_parms.argc and argv, now uses com_argc and com_argv directly

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

18 years agocleaned up and merged a lot of sys_*.c code into sys_shared.c
havoc [Tue, 20 Aug 2002 03:13:02 +0000 (03:13 +0000)]
cleaned up and merged a lot of sys_*.c code into sys_shared.c

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

18 years agocentered Sbar_IntermissionOverlay
havoc [Tue, 20 Aug 2002 02:57:12 +0000 (02:57 +0000)]
centered Sbar_IntermissionOverlay

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

18 years agosys_usetimegettime is now initialized at a place where it shouldn't crash anymore...
havoc [Tue, 20 Aug 2002 02:50:38 +0000 (02:50 +0000)]
sys_usetimegettime is now initialized at a place where it shouldn't crash anymore (this should make win32 run again)

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

18 years agoremoved fxmesa support (3dfx svgalib) because no one used it to my knowledge, and...
havoc [Sat, 17 Aug 2002 23:19:47 +0000 (23:19 +0000)]
removed fxmesa support (3dfx svgalib) because no one used it to my knowledge, and it probably did not even work due to poor maintenance
and cleaned up makefile a bit

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

18 years agoupdate client color values when new values are recieved from server
havoc [Fri, 16 Aug 2002 05:59:27 +0000 (05:59 +0000)]
update client color values when new values are recieved from server

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

18 years agoSV_ChangeTeam now actually gets called with the right value
havoc [Fri, 16 Aug 2002 05:57:27 +0000 (05:57 +0000)]
SV_ChangeTeam now actually gets called with the right value

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

18 years agoreformatted and updated extensions list
havoc [Fri, 16 Aug 2002 05:56:27 +0000 (05:56 +0000)]
reformatted and updated extensions list

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

18 years agofix alignment of frag list, it is now centered
havoc [Fri, 16 Aug 2002 05:55:25 +0000 (05:55 +0000)]
fix alignment of frag list, it is now centered

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

18 years agochanged GL_MATRIX_MODE check to GL_PROJECTION, and removed GL_MATRIX_MODE define...
havoc [Fri, 16 Aug 2002 05:53:28 +0000 (05:53 +0000)]
changed GL_MATRIX_MODE check to GL_PROJECTION, and removed GL_MATRIX_MODE define, this should be more compatible in identifying odd gl.h's

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

18 years agoonly warn about time stepping backwards if it's more than 10ms
havoc [Thu, 15 Aug 2002 19:00:31 +0000 (19:00 +0000)]
only warn about time stepping backwards if it's more than 10ms

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

18 years agoadded support for .colormap values >= 1024 in QC to mean direct color specification...
havoc [Thu, 15 Aug 2002 18:53:25 +0000 (18:53 +0000)]
added support for .colormap values >= 1024 in QC to mean direct color specification (two 0-15 values, just like SV_ChangeTeam and setcolor use)

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

18 years agocvar_vars is no longer known by files other than cvar.c, this meant adding a Cvar_Fin...
havoc [Thu, 15 Aug 2002 18:51:33 +0000 (18:51 +0000)]
cvar_vars is no longer known by files other than cvar.c, this meant adding a Cvar_FindVarAfter function to keep the server queries working correctly

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

18 years agoturned #define WIN32_USETIMEGETTIME into a cvar named sys_usetimegettime, default...
havoc [Thu, 15 Aug 2002 18:49:43 +0000 (18:49 +0000)]
turned #define WIN32_USETIMEGETTIME into a cvar named sys_usetimegettime, default on (used to be off by default), can be changed at any time

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

18 years agoreset stack position when new progs loaded, or error occurs
havoc [Wed, 14 Aug 2002 23:48:14 +0000 (23:48 +0000)]
reset stack position when new progs loaded, or error occurs

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

18 years agochanged fps counter behavior to be more 'traditional' (count how many frames go by...
havoc [Wed, 14 Aug 2002 23:29:34 +0000 (23:29 +0000)]
changed fps counter behavior to be more 'traditional' (count how many frames go by in a given amount of time), this means 3 modes are now available for showfps...
showfps 1 - count frames
showfps 2 - average of recent frame times
showfps 3 - most recent frame time only

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

18 years ago(patch from Elric) BloodBath renamed to Transfusion
havoc [Sat, 10 Aug 2002 16:51:30 +0000 (16:51 +0000)]
(patch from Elric) BloodBath renamed to Transfusion

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

18 years agoconverted particle rendering to use R_Mesh_Draw_GetBuffer
havoc [Sat, 10 Aug 2002 16:29:27 +0000 (16:29 +0000)]
converted particle rendering to use R_Mesh_Draw_GetBuffer

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

18 years agonow uses R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 23:20:25 +0000 (23:20 +0000)]
now uses R_Mesh_Draw_GetBuffer

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

18 years agochanged viewblend to use R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 23:13:48 +0000 (23:13 +0000)]
changed viewblend to use R_Mesh_Draw_GetBuffer

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

18 years agoconverted coronas to R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 22:45:03 +0000 (22:45 +0000)]
converted coronas to R_Mesh_Draw_GetBuffer

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

18 years agoconverted skysphere to R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 22:19:54 +0000 (22:19 +0000)]
converted skysphere to R_Mesh_Draw_GetBuffer

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

18 years agochanged a bunch of #if 1's to #if USEMESHBUFFER (which is 1)
havoc [Fri, 9 Aug 2002 22:03:28 +0000 (22:03 +0000)]
changed a bunch of #if 1's to #if USEMESHBUFFER (which is 1)

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

18 years agoskybox now uses R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 22:02:06 +0000 (22:02 +0000)]
skybox now uses R_Mesh_Draw_GetBuffer

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

18 years agore-enable optimizations by default
havoc [Fri, 9 Aug 2002 22:01:25 +0000 (22:01 +0000)]
re-enable optimizations by default

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

18 years agoconverted code to use R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 21:48:19 +0000 (21:48 +0000)]
converted code to use R_Mesh_Draw_GetBuffer

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

18 years agoconverted drawing code from R_Mesh_Draw to R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 21:47:11 +0000 (21:47 +0000)]
converted drawing code from R_Mesh_Draw to R_Mesh_Draw_GetBuffer

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

18 years agorewrote most of the RSurfShader_ functions to use R_Mesh_Draw_GetBuffer instead of...
havoc [Fri, 9 Aug 2002 21:14:12 +0000 (21:14 +0000)]
rewrote most of the RSurfShader_ functions to use R_Mesh_Draw_GetBuffer instead of R_Mesh_Draw

r_modellights replaced r_lightmodels, r_modellights sets limit on how many directional lights will be shaded onto the model (only the brightest are chosen)

cleaned up lighting code a lot, it is now consistent between static and dynamic light sources, and the light radius has been reduced

unfortunately this commit seems to have slowed down the engine a bit, and I don't know why, it should be a speed gain

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

18 years agofixed r_drawentities 0 which was forgetting to enlarge the farclip based on the world...
havoc [Wed, 7 Aug 2002 20:31:56 +0000 (20:31 +0000)]
fixed r_drawentities 0 which was forgetting to enlarge the farclip based on the world bounding box

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

18 years agosupport for top to bottom TGA, thanks Elric.
havoc [Wed, 7 Aug 2002 20:09:46 +0000 (20:09 +0000)]
support for top to bottom TGA, thanks Elric.

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

18 years agoadded r_sortsurfaces cvar, default off, sorting them seems to be a very minor slowdow...
havoc [Tue, 6 Aug 2002 16:35:51 +0000 (16:35 +0000)]
added r_sortsurfaces cvar, default off, sorting them seems to be a very minor slowdown ingame for me

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

18 years agofix for the effects menu input code, thanks Elric
havoc [Tue, 6 Aug 2002 16:04:57 +0000 (16:04 +0000)]
fix for the effects menu input code, thanks Elric

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

18 years agofix for 'falling' in a corner bug, thanks to Elric for finding the fix for this.
havoc [Tue, 6 Aug 2002 16:01:46 +0000 (16:01 +0000)]
fix for 'falling' in a corner bug, thanks to Elric for finding the fix for this.
also removed a SOLID_BSP check that shouldn't be there anymore.

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

18 years agospawned entities were often not appearing in quake protocol (demos), oops
havoc [Mon, 5 Aug 2002 23:23:53 +0000 (23:23 +0000)]
spawned entities were often not appearing in quake protocol (demos), oops

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

18 years agothe -I and -L weren't necessary (and didn't work anyway)
havoc [Mon, 5 Aug 2002 19:57:04 +0000 (19:57 +0000)]
the -I and -L  weren't necessary (and didn't work anyway)

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

18 years agofix for double to float warning in MSVC
havoc [Mon, 5 Aug 2002 19:18:15 +0000 (19:18 +0000)]
fix for double to float warning in MSVC

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

18 years agoconsistency fix for GL_EXT_draw_range_elements - don't be silent about missing functi...
havoc [Mon, 5 Aug 2002 19:17:28 +0000 (19:17 +0000)]
consistency fix for GL_EXT_draw_range_elements - don't be silent about missing functions if the extension is reported

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

18 years agoa rather hefty 6% speed gain by getting rid of the R_Mesh_UpdateFarClip function...
havoc [Mon, 5 Aug 2002 13:28:26 +0000 (13:28 +0000)]
a rather hefty 6% speed gain by getting rid of the R_Mesh_UpdateFarClip function, and reorganizing it to use bounding boxes instead (outside of gl_backend even)

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

18 years agoR_GetTexture is now named R_RealGetTexture, R_GetTexture is a macro which hardly...
havoc [Mon, 5 Aug 2002 12:16:44 +0000 (12:16 +0000)]
R_GetTexture is now named R_RealGetTexture, R_GetTexture is a macro which hardly ever calls R_RealGetTexture - this is a nice speed gain, cutting out about 2.3 million calls during timedemo bigass1

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

18 years agoremoved procedural texture support because it was inefficient where it was implemente...
havoc [Mon, 5 Aug 2002 11:54:28 +0000 (11:54 +0000)]
removed procedural texture support because it was inefficient where it was implemented - it can be implemented more efficiently in renderer code than in R_GetTexture

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

18 years agolightmaps shouldn't be procedural, because they have no generate function anyway...
havoc [Mon, 5 Aug 2002 11:40:14 +0000 (11:40 +0000)]
lightmaps shouldn't be procedural, because they have no generate function anyway (and are therefore not self-animating)

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

18 years agoattempt to optimize SND_PaintChannelFrom8 a little bit
havoc [Mon, 5 Aug 2002 11:39:08 +0000 (11:39 +0000)]
attempt to optimize SND_PaintChannelFrom8 a little bit

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

18 years agofix view_ofs when dead (negative viewheight)
havoc [Mon, 5 Aug 2002 11:11:52 +0000 (11:11 +0000)]
fix view_ofs when dead (negative viewheight)

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

18 years agoremoved support for r_ser (also known as R_Clip or "Hidden Surface Removal") as it...
havoc [Mon, 5 Aug 2002 10:58:27 +0000 (10:58 +0000)]
removed support for r_ser (also known as R_Clip or "Hidden Surface Removal") as it was a slowdown for everyone I know of

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

18 years agoan optimization to CL_RelinkNetworkEntities (and related code) which increases perfor...
havoc [Mon, 5 Aug 2002 10:20:25 +0000 (10:20 +0000)]
an optimization to CL_RelinkNetworkEntities (and related code) which increases performance by 5%
(store the ent->state_current.active flags in a separate array to use less memory bandwidth)

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

18 years agooptimized phys_moveentities (in cgame.c) so it doesn't waste so much time
havoc [Mon, 5 Aug 2002 09:47:21 +0000 (09:47 +0000)]
optimized phys_moveentities (in cgame.c) so it doesn't waste so much time

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

18 years agofix svc_setview
havoc [Sun, 4 Aug 2002 20:07:11 +0000 (20:07 +0000)]
fix svc_setview

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

18 years agomoved the GL_CloseLibrary call a bit
havoc [Sun, 4 Aug 2002 20:04:22 +0000 (20:04 +0000)]
moved the GL_CloseLibrary call a bit

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

18 years agofix mouse in win32, I had forgotten to update a lot of code
havoc [Sun, 4 Aug 2002 19:37:09 +0000 (19:37 +0000)]
fix mouse in win32, I had forgotten to update a lot of code

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

18 years agolimit gl_mesh_batchtriangles to never go below 1, because although < 1 works it calls...
havoc [Sun, 4 Aug 2002 15:06:53 +0000 (15:06 +0000)]
limit gl_mesh_batchtriangles to never go below 1, because although < 1 works it calls R_Mesh_Render twice per mesh rather than once

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

18 years agoremoved cl_light.h (which has already been merged into client.h)
havoc [Sat, 3 Aug 2002 21:02:02 +0000 (21:02 +0000)]
removed cl_light.h (which has already been merged into client.h)

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

18 years agonow entirely dynamic OpenGL binding
havoc [Sat, 3 Aug 2002 20:59:29 +0000 (20:59 +0000)]
now entirely dynamic OpenGL binding

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

18 years agoadded r_floatbuildlightmap, unfortunately using floats for the calculations is still...
havoc [Sat, 3 Aug 2002 20:51:07 +0000 (20:51 +0000)]
added r_floatbuildlightmap, unfortunately using floats for the calculations is still ever so slightly slower than integer

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

18 years agooptimized entity updates substantially (or rather, UpdateEnd), nice speedup
havoc [Sat, 3 Aug 2002 20:46:17 +0000 (20:46 +0000)]
optimized entity updates substantially (or rather, UpdateEnd), nice speedup

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

18 years agosome optimizations (notably sparks don't have air friction anymore, which is a signif...
havoc [Sat, 3 Aug 2002 20:44:31 +0000 (20:44 +0000)]
some optimizations (notably sparks don't have air friction anymore, which is a significant speedup to demos), a bit of reorganization

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

18 years agorearranged things a little, mostly related to particles created by EntityParticles...
havoc [Sat, 3 Aug 2002 20:41:12 +0000 (20:41 +0000)]
rearranged things a little, mostly related to particles created by EntityParticles, which should only live one frame

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

18 years agodefault gl_mesh_floatcolors on, and force it off on 3Dfx drivers (sure this is unnece...
havoc [Sat, 3 Aug 2002 20:39:43 +0000 (20:39 +0000)]
default gl_mesh_floatcolors on, and force it off on 3Dfx drivers (sure this is unnecessary unless it is specifically the windows 3Dfx drivers, as surely WickedGL and others work fine, but oh well, 3Dfx cards want byte colors anyway)

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

18 years agoLots of speedups and cleanups in client code, dynamically allocated cl_entities ...
havoc [Sat, 3 Aug 2002 20:34:59 +0000 (20:34 +0000)]
Lots of speedups and cleanups in client code, dynamically allocated cl_entities (and friends), rearranged some things  - sorry this commit is vague, but it's mostly just a lot of rearrangement, cleanup, etc...

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

18 years agocls.spawnparms isn't needed
havoc [Sat, 3 Aug 2002 20:27:54 +0000 (20:27 +0000)]
cls.spawnparms isn't needed

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

18 years agochanged linux/soundcard.h to sys/soundcard.h for more portability - doesn't work...
havoc [Sat, 3 Aug 2002 20:26:09 +0000 (20:26 +0000)]
changed linux/soundcard.h to sys/soundcard.h for more portability - doesn't work properly on FreeBSD yet, though

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

18 years agoprint edict responsible for "Trigger in clipping list" error
havoc [Sat, 3 Aug 2002 20:23:25 +0000 (20:23 +0000)]
print edict responsible for "Trigger in clipping list" error

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

18 years agoadded a mesh queue callback system (to allow mesh rendering things in different order...
havoc [Fri, 2 Aug 2002 18:11:23 +0000 (18:11 +0000)]
added a mesh queue callback system (to allow mesh rendering things in different orders, etc)

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

18 years agocleaned up vid_glx.c somewhat, it can now quit properly when the close button is...
havoc [Fri, 2 Aug 2002 15:12:19 +0000 (15:12 +0000)]
cleaned up vid_glx.c somewhat, it can now quit properly when the close button is pressed (what a mess talking to a window manager, sigh...)

added vid_hidden (iconified or otherwise disabled window - don't render anything) and vid_activewindow (not the active window, don't hog CPU power) to vid_* files

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

18 years agoadded alphafade and gravity fields to particle struct, which made most particle types...
havoc [Fri, 2 Aug 2002 15:08:44 +0000 (15:08 +0000)]
added alphafade and gravity fields to particle struct, which made most particle types redundent, now only a few remain

tweaked various effects (particularly underwater blood, bubbles, smoke effects, etc)

added effects options menu to control the many possible options

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

18 years agoadded cl_explosions and cl_stainmaps cvars, which will be used soon...
havoc [Fri, 2 Aug 2002 15:07:43 +0000 (15:07 +0000)]
added cl_explosions and cl_stainmaps cvars, which will be used soon...

renamed cl_draweffects to r_draweffects and made it actually work

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

18 years agofixed a lighting bug with overbright modes when using r_quickmodels which made most...
havoc [Fri, 2 Aug 2002 15:01:21 +0000 (15:01 +0000)]
fixed a lighting bug with overbright modes when using r_quickmodels which made most models far too bright

changed directional lighting to only light vertices facing the light source (this makes for a very dramatic look)

CompleteLightPoint is now twice as bright as it used to be when running a map that uses a .lights file - more closely matchs the lightmaps

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

18 years agomade liquid colors 50% thinner (it's still apparent you're in a liquid, but you can...
havoc [Fri, 2 Aug 2002 14:57:39 +0000 (14:57 +0000)]
made liquid colors 50% thinner (it's still apparent you're in a liquid, but you can see clearly now)

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

18 years ago'sock' local variable isn't needed anymore, cleaned up NET_Shutdown socket closing...
havoc [Fri, 2 Aug 2002 14:55:27 +0000 (14:55 +0000)]
'sock' local variable isn't needed anymore, cleaned up NET_Shutdown socket closing loop

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

18 years agofixed bug in NET_Shutdown related to freeing sockets
havoc [Fri, 2 Aug 2002 14:53:33 +0000 (14:53 +0000)]
fixed bug in NET_Shutdown related to freeing sockets

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

18 years agoremoved R_Mesh_Draw_NativeOnly (it was not used)
havoc [Fri, 2 Aug 2002 12:11:16 +0000 (12:11 +0000)]
removed R_Mesh_Draw_NativeOnly (it was not used)
cleaned up modulate detection (overbright decisions)

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

19 years agocleaned up glDrawRangeElements limit checking a bit (now done in gl_backend.c)
havoc [Thu, 1 Aug 2002 06:34:46 +0000 (06:34 +0000)]
cleaned up glDrawRangeElements limit checking a bit (now done in gl_backend.c)

no longer limits maxtriangles based on DrawRangeElements limits (since DrawRangeElements is required to work even if limits are exceeded, according to the OpenGL spec)

now posts startup/shutdown messages for gl_backend

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

19 years agocleaned up gl_mesh_drawmode related code, hopefully fixing various unknown bugs
havoc [Wed, 31 Jul 2002 14:04:06 +0000 (14:04 +0000)]
cleaned up gl_mesh_drawmode related code, hopefully fixing various unknown bugs

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

19 years agoexpanded sprint/centerprint buffer from 256 chars to 4096
havoc [Wed, 31 Jul 2002 13:46:25 +0000 (13:46 +0000)]
expanded sprint/centerprint buffer from 256 chars to 4096

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

19 years agodisabled 3DFX mesh size error (because it really only applies when gl_mesh_floatcolor...
havoc [Wed, 31 Jul 2002 12:11:17 +0000 (12:11 +0000)]
disabled 3DFX mesh size error (because it really only applies when gl_mesh_floatcolors is 1, which is not the default)
automatically grow mesh buffers based on size of meshs encountered

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

19 years agocleaned up behavior when an invalid replacement sky texture is found - now it will...
havoc [Wed, 31 Jul 2002 11:45:17 +0000 (11:45 +0000)]
cleaned up behavior when an invalid replacement sky texture is found - now it will fall back to the texture inside the map

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

19 years agoadded -fno-strict-aliasing (even though it isn't a problem with gcc 2.95.3 anyway)
havoc [Wed, 31 Jul 2002 09:57:51 +0000 (09:57 +0000)]
added -fno-strict-aliasing  (even though it isn't a problem with gcc 2.95.3 anyway)

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

19 years agoincreased name limit on engineversion string from 39 chars to 127, this fixed a bug...
havoc [Wed, 31 Jul 2002 09:43:23 +0000 (09:43 +0000)]
increased name limit on engineversion string from 39 chars to 127, this fixed a bug in windows builds where the string was too long for the buffer...

also shortened the string itself to no longer mention 'GL' or 'build'

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

19 years agoadded the readme file to cvs (... and it needs massive updates)
havoc [Wed, 31 Jul 2002 05:24:06 +0000 (05:24 +0000)]
added the readme file to cvs (... and it needs massive updates)

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

19 years agowin32 fixes and some MSVC warnings fixed
havoc [Wed, 31 Jul 2002 05:15:05 +0000 (05:15 +0000)]
win32 fixes and some MSVC warnings fixed

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

19 years agoFix for -particles specified wrongly on the cmdline..
knghtbrd [Wed, 31 Jul 2002 03:07:50 +0000 (03:07 +0000)]
Fix for -particles specified wrongly on the cmdline..

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

19 years agofix 'flashing' crosshair bug caused by negative colors (clamp them before drawing...
havoc [Tue, 30 Jul 2002 03:15:09 +0000 (03:15 +0000)]
fix 'flashing' crosshair bug caused by negative colors (clamp them before drawing the sprite)

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

19 years agoslight simplification/optimzation/readability enhancement/whatever to animating textures
havoc [Mon, 29 Jul 2002 13:23:05 +0000 (13:23 +0000)]
slight simplification/optimzation/readability enhancement/whatever to animating textures

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

19 years agofix animating textures
havoc [Mon, 29 Jul 2002 13:21:56 +0000 (13:21 +0000)]
fix animating textures

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

19 years agoWater transition splashes do not happen for lava anymore. This means
knghtbrd [Mon, 29 Jul 2002 11:20:46 +0000 (11:20 +0000)]
Water transition splashes do not happen for lava anymore.  This means
lavaballs do not drive one ABSOLUTELY INSANE anymore.  (Except when you
get hit by them and they knock you into said lava, but that's another
story entirely..)

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

19 years agoMake coronas look better (it looks good in Twilight, so...)
knghtbrd [Mon, 29 Jul 2002 11:11:59 +0000 (11:11 +0000)]
Make coronas look better (it looks good in Twilight, so...)

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

19 years agoSerious-Sam style crosshair (an actual sprite in the world, with slight variation...
havoc [Mon, 29 Jul 2002 10:33:39 +0000 (10:33 +0000)]
Serious-Sam style crosshair (an actual sprite in the world, with slight variation in size based on distance, and is based on actual quake gun position, not center of screen)

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

19 years agomuch nicer rocket and grenade trails
havoc [Mon, 29 Jul 2002 10:31:57 +0000 (10:31 +0000)]
much nicer rocket and grenade trails

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

19 years agocorrected fullbright map handling for the case when the fullbright bmodel is not...
havoc [Mon, 29 Jul 2002 10:09:45 +0000 (10:09 +0000)]
corrected fullbright map handling for the case when the fullbright bmodel is not the running map, but one of the imported bmodels instead, also corrected a comment about r_ambient

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

19 years agodisabled memory clumping, which surprisingly improves memory use, rather than hinders...
havoc [Mon, 29 Jul 2002 07:06:52 +0000 (07:06 +0000)]
disabled memory clumping, which surprisingly improves memory use, rather than hinders it (at least in Linux...  hopefully same in windows) and massively speeds up loading of complicated maps

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

19 years agoAlphabetized extensions and added TW_SV_STEPCONTROL..
knghtbrd [Sun, 28 Jul 2002 05:45:46 +0000 (05:45 +0000)]
Alphabetized extensions and added TW_SV_STEPCONTROL..

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

19 years agoFixed PCX file loading for images with an odd width
molivier [Fri, 26 Jul 2002 06:18:16 +0000 (06:18 +0000)]
Fixed PCX file loading for images with an odd width

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

19 years agonow uses a fragment texture for the video (massive speedup)
havoc [Thu, 25 Jul 2002 09:58:47 +0000 (09:58 +0000)]
now uses a fragment texture for the video (massive speedup)
clears audioqueue when video stops

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

19 years agofragment images made for fragment textures will now always be big enough for the...
havoc [Thu, 25 Jul 2002 09:57:41 +0000 (09:57 +0000)]
fragment images made for fragment textures will now always be big enough for the fragment texture that created them

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

19 years agofix fatal bugs in S_RawSamples_Enqueue and Dequeue relating to mis-detected buffer...
havoc [Thu, 25 Jul 2002 09:50:06 +0000 (09:50 +0000)]
fix fatal bugs in S_RawSamples_Enqueue and Dequeue relating to mis-detected buffer wraps

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

19 years ago.dpv video playback is now implemented. Slow though, because it's resizing textures...
havoc [Thu, 25 Jul 2002 09:14:48 +0000 (09:14 +0000)]
.dpv video playback is now implemented.  Slow though, because it's resizing textures, this needs to be fixed...

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