xonotic/darkplaces.git
14 years agoreduced client memory usage by 29MB by making cl_max_entities dynamic (starts out...
havoc [Tue, 5 Apr 2005 11:15:45 +0000 (11:15 +0000)]
reduced client memory usage by 29MB by making cl_max_entities dynamic (starts out at 256)
cleaned up cl_num_entities to be more generally useful, it is only increased by network entities, this should speed up some code (by using cl_num_entities instead of MAX_EDICTS or cl_max_entities)

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

14 years agofixed a unintended-water-scroll bug on transparent fullbright surfaces
havoc [Mon, 4 Apr 2005 19:33:09 +0000 (19:33 +0000)]
fixed a unintended-water-scroll bug on transparent fullbright surfaces

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

14 years agofix gl_combine 0 crashes (it was indexing the color vector as if it was a vertex...
havoc [Mon, 4 Apr 2005 18:46:20 +0000 (18:46 +0000)]
fix gl_combine 0 crashes (it was indexing the color vector as if it was a vertex property... wrong!)

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

14 years agooptimized surface rendering to surface->groupmesh->data_* array pointers directly...
havoc [Mon, 4 Apr 2005 16:01:17 +0000 (16:01 +0000)]
optimized surface rendering to surface->groupmesh->data_* array pointers directly instead of indexing them with surface->num_firstvertex, this allows fewer pointer changes (a small speed gain)
fixed stupid bug in q1bsp texture loading which was making all missing textures invisible
changed portal generation to not break when a portal is clipped away, this fixes a crash at render time with bogus portals
changed r_drawportals to only draw portals surrounding the visible leafs (speed gain, but also useful for debugging vis glitches)

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

14 years agoFixed getserversResponse parsing:
molivier [Mon, 4 Apr 2005 14:51:56 +0000 (14:51 +0000)]
Fixed getserversResponse parsing:
* serverquerycount was incremented even when it didn't query this server
* if the list contained a server that was already queried, the remaining servers were ignored

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

14 years ago-ServerList: Changed some if-else-chains to switch constructs.
black [Mon, 4 Apr 2005 13:03:54 +0000 (13:03 +0000)]
-ServerList: Changed some if-else-chains to switch constructs.
-Added a pointer check (!= NULL) to VM_strunzone.

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

14 years agoRemoved LoadLMPAs8Bit; the menu now uses LoadLMP directly
molivier [Mon, 4 Apr 2005 08:26:46 +0000 (08:26 +0000)]
Removed LoadLMPAs8Bit; the menu now uses LoadLMP directly

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

14 years agoFactorized LoadLMP and LoadLMPAs8Bit. Made a bunch of buffers const
molivier [Mon, 4 Apr 2005 05:40:51 +0000 (05:40 +0000)]
Factorized LoadLMP and LoadLMPAs8Bit. Made a bunch of buffers const

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

14 years ago-Changed HostCache to ServerList (and a few other pure name changes)
black [Sun, 3 Apr 2005 10:12:18 +0000 (10:12 +0000)]
-Changed HostCache to ServerList (and a few other pure name changes)

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

14 years agoAdded Quake 2 sprite support (.sp2 files). Added the corresponding QC extension ...
molivier [Sun, 3 Apr 2005 08:26:14 +0000 (08:26 +0000)]
Added Quake 2 sprite support (.sp2 files). Added the corresponding QC extension (DP_QUAKE2_SPRITE)

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

14 years agorewrote parts of Host_ServerFrame to make host_framerate cvar work again for The...
havoc [Sat, 2 Apr 2005 18:25:26 +0000 (18:25 +0000)]
rewrote parts of Host_ServerFrame to make host_framerate cvar work again for The Ascension Of Vigil

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

14 years agofix hl sprite types again
havoc [Sat, 2 Apr 2005 17:38:45 +0000 (17:38 +0000)]
fix hl sprite types again

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

14 years agofixed hl sprite types to properly handle the palette in each mode
havoc [Sat, 2 Apr 2005 16:49:28 +0000 (16:49 +0000)]
fixed hl sprite types to properly handle the palette in each mode

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

14 years agofixed hl sprite additive mode
havoc [Sat, 2 Apr 2005 16:20:34 +0000 (16:20 +0000)]
fixed hl sprite additive mode

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

14 years agofix hl sprite loading (stupid typo in handling sprite types)
havoc [Sat, 2 Apr 2005 16:04:10 +0000 (16:04 +0000)]
fix hl sprite loading (stupid typo in handling sprite types)

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

14 years ago-Now a server is never pinged more than once.
black [Sat, 2 Apr 2005 12:05:05 +0000 (12:05 +0000)]
-Now a server is never pinged more than once.
-Fixed the color code function.

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

14 years agoUpdated a few entries in the todo file
molivier [Thu, 31 Mar 2005 16:08:23 +0000 (16:08 +0000)]
Updated a few entries in the todo file

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

14 years agofix incompatible types warnings (and change pointer_* fields back to void *)
havoc [Thu, 31 Mar 2005 09:50:43 +0000 (09:50 +0000)]
fix incompatible types warnings (and change pointer_* fields back to void *)

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

14 years agoRemoved GL_OpenLibrary and GL_CloseLibrary from "vid.h" and "vid_null.c"
molivier [Thu, 31 Mar 2005 05:41:44 +0000 (05:41 +0000)]
Removed GL_OpenLibrary and GL_CloseLibrary from "vid.h" and "vid_null.c"

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

14 years agochanged array pointer state to const float * instead of const void *
havoc [Wed, 30 Mar 2005 23:23:14 +0000 (23:23 +0000)]
changed array pointer state to const float * instead of const void *

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

14 years agoadded a firstvertex parameter to R_Mesh_DrawMesh
havoc [Mon, 28 Mar 2005 12:33:25 +0000 (12:33 +0000)]
added a firstvertex parameter to R_Mesh_DrawMesh

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

14 years agosave some memory by not allocating neighbors for q1bsp and q3bsp meshlists
havoc [Mon, 28 Mar 2005 12:16:48 +0000 (12:16 +0000)]
save some memory by not allocating neighbors for q1bsp and q3bsp meshlists

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

14 years agochanged surface->mesh to surface->groupmesh and added num_firsttriangle and num_first...
havoc [Mon, 28 Mar 2005 11:32:47 +0000 (11:32 +0000)]
changed surface->mesh to surface->groupmesh and added num_firsttriangle and num_firstvertex fields to msurface_t, this cuts the msurface_t size from 120 bytes to 88 bytes, causing a 3.5% speed gain in a 37000 surface benchmark scene

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

14 years agomoved a number of msurface_t fields to a separate msurface_lightmapinfo_t structure...
havoc [Mon, 28 Mar 2005 06:54:34 +0000 (06:54 +0000)]
moved a number of msurface_t fields to a separate msurface_lightmapinfo_t structure which is allocated only for q1bsp maps, to save some memory and save some memory bandwidth (as these fields are not often accessed)
moved collision triangles/vertices information out of surfmesh_t and into msurface_t

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

14 years agoslight optimizations to bsp renderer
havoc [Mon, 28 Mar 2005 01:46:58 +0000 (01:46 +0000)]
slight optimizations to bsp renderer

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

14 years agoremoved an unneeded CHECKGLERROR
havoc [Mon, 28 Mar 2005 01:43:43 +0000 (01:43 +0000)]
removed an unneeded CHECKGLERROR

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

14 years agofixed backwards bumps in r_shadow_glsl 1 mode
havoc [Sun, 27 Mar 2005 09:15:59 +0000 (09:15 +0000)]
fixed backwards bumps in r_shadow_glsl 1 mode

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

14 years agoimplemented tag attachments on skeletal .zym models and centralized the code dealing...
havoc [Sun, 27 Mar 2005 08:22:05 +0000 (08:22 +0000)]
implemented tag attachments on skeletal .zym models and centralized the code dealing with tags in model_alias.c

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

14 years agoadded comments to the bloom code in R_BlendView to try to explain how it works
havoc [Fri, 25 Mar 2005 11:35:48 +0000 (11:35 +0000)]
added comments to the bloom code in R_BlendView to try to explain how it works

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

14 years agorearranged stale worldmodel removal a bit so that trying to load a level that doesn...
havoc [Thu, 24 Mar 2005 14:49:39 +0000 (14:49 +0000)]
rearranged stale worldmodel removal a bit so that trying to load a level that doesn't exist doesn't mess up things on a server due to a partial reload

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

14 years agofixed skybox texture leak on level changes
havoc [Thu, 24 Mar 2005 14:48:06 +0000 (14:48 +0000)]
fixed skybox texture leak on level changes

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

14 years agodisabled item bobbing by default
havoc [Wed, 23 Mar 2005 07:10:17 +0000 (07:10 +0000)]
disabled item bobbing by default

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

14 years agoview_ofs now affects intermission cameras, mods usually set view_ofs to '0 0 0' when...
havoc [Wed, 23 Mar 2005 00:16:28 +0000 (00:16 +0000)]
view_ofs now affects intermission cameras, mods usually set view_ofs to '0 0 0' when going to intermission so this won't break anything, but allows Nexuiz to freeze frame the final moment with players still standing where they were

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

14 years agofix decal fading so they really DO disappear eventually now, rather than hogging...
havoc [Wed, 23 Mar 2005 00:15:03 +0000 (00:15 +0000)]
fix decal fading so they really DO disappear eventually now, rather than hogging particle slots for all time

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

14 years agofixed two more signed/unsigned mismatches
havoc [Mon, 21 Mar 2005 20:47:01 +0000 (20:47 +0000)]
fixed two more signed/unsigned mismatches

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

14 years agofix 3 NULL vertex pointer crashes (caused by R_Mesh_State lingering where it shouldn't)
havoc [Mon, 21 Mar 2005 09:58:21 +0000 (09:58 +0000)]
fix 3 NULL vertex pointer crashes (caused by R_Mesh_State lingering where it shouldn't)

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

14 years agofix a bug in R_Mesh_Finish introduced by the unsigned int i fix
havoc [Mon, 21 Mar 2005 09:57:52 +0000 (09:57 +0000)]
fix a bug in R_Mesh_Finish introduced by the unsigned int i fix

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

14 years agofix two runaway loops caused by unsigned int i
havoc [Mon, 21 Mar 2005 09:14:57 +0000 (09:14 +0000)]
fix two runaway loops caused by unsigned int i

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

14 years agoAdded Mac OS X support to the makefiles. Note that the client doesn't compile yet...
molivier [Mon, 21 Mar 2005 08:44:35 +0000 (08:44 +0000)]
Added Mac OS X support to the makefiles. Note that the client doesn't compile yet since some files are still missing (vid_agl.c mainly)

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

14 years agoMoved some particles texture initialization loops in a separate function to work...
molivier [Mon, 21 Mar 2005 08:42:59 +0000 (08:42 +0000)]
Moved some particles texture initialization loops in a separate function to work around an optimization bug in Mac OS X's GCC

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

14 years agomore unsigned (i/j/size variables)
havoc [Mon, 21 Mar 2005 04:23:14 +0000 (04:23 +0000)]
more unsigned (i/j/size variables)

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

14 years agoless unsigned
havoc [Mon, 21 Mar 2005 04:21:08 +0000 (04:21 +0000)]
less unsigned

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

14 years agomore unsigned
havoc [Mon, 21 Mar 2005 04:18:57 +0000 (04:18 +0000)]
more unsigned

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

14 years agochanged ActiveTexture and ClientActiveTexture to take unsigned
havoc [Mon, 21 Mar 2005 04:17:27 +0000 (04:17 +0000)]
changed ActiveTexture and ClientActiveTexture to take unsigned

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

14 years agochanged a few things to unsigned
havoc [Mon, 21 Mar 2005 04:12:59 +0000 (04:12 +0000)]
changed a few things to unsigned

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

14 years agosurface renderer now does less R_Mesh_State calls, opting instead to change only...
havoc [Mon, 21 Mar 2005 02:05:08 +0000 (02:05 +0000)]
surface renderer now does less R_Mesh_State calls, opting instead to change only individual pieces of state

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

14 years agoadded R_Mesh_ functions for setting individual parts of state, to allow faster state...
havoc [Mon, 21 Mar 2005 02:03:44 +0000 (02:03 +0000)]
added R_Mesh_ functions for setting individual parts of state, to allow faster state changes in surface renderer

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

14 years agoadded 1f and 4f glTexCoord/glMultiTexCoord function declarations
havoc [Mon, 21 Mar 2005 02:02:05 +0000 (02:02 +0000)]
added 1f and 4f glTexCoord/glMultiTexCoord function declarations

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

14 years agofix PBLEND_MOD in fog
havoc [Mon, 21 Mar 2005 00:52:57 +0000 (00:52 +0000)]
fix PBLEND_MOD in fog

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

14 years agoreduced particle struct size (now 32768 particles is 3MB instead of about 3.8MB)...
havoc [Sat, 19 Mar 2005 05:45:24 +0000 (05:45 +0000)]
reduced particle struct size (now 32768 particles is 3MB instead of about 3.8MB) by merging/removing some fields (and adding type structs to define rendering properties based on type to save a little space)
removed 11 parameters to particle() function

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

14 years agofix a warning
havoc [Sat, 19 Mar 2005 02:14:11 +0000 (02:14 +0000)]
fix a warning

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

14 years agomade detailtextures check r_detailtextures again
havoc [Sat, 19 Mar 2005 02:11:44 +0000 (02:11 +0000)]
made detailtextures check r_detailtextures again

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

14 years agoadded GAME_THEHUNTED
havoc [Sat, 19 Mar 2005 02:10:54 +0000 (02:10 +0000)]
added GAME_THEHUNTED

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

14 years agoremoved r_floatbuildlightmaps cvar and related code (since it was only useful to...
havoc [Fri, 18 Mar 2005 02:04:25 +0000 (02:04 +0000)]
removed r_floatbuildlightmaps cvar and related code (since it was only useful to dlights)

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

14 years agogot rid of aliasskin/aliaslayer system for rendering models, now uses texture_t like...
havoc [Fri, 18 Mar 2005 01:58:31 +0000 (01:58 +0000)]
got rid of aliasskin/aliaslayer system for rendering models, now uses texture_t like maps do

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

14 years agoWell, you might not like this change, but I dont like it the way it is, so
black [Thu, 17 Mar 2005 18:57:45 +0000 (18:57 +0000)]
Well, you might not like this change, but I dont like it the way it is, so
it's up to you to fix it in a convenient way.
I certainly dont want to have my config files and qconsole.log (and possibly
all other files DP creates) in some linux-style .darkplaces folder(!) somewhere
hidden in my CVS home directory.

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

14 years agoq3 shader parsing now sets more materialflags (such as transparency)
havoc [Thu, 17 Mar 2005 10:17:07 +0000 (10:17 +0000)]
q3 shader parsing now sets more materialflags (such as transparency)

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

14 years agoremoved a lot of renderer cruft (such as 48% of gl_rsurf.c) as a result of the previo...
havoc [Thu, 17 Mar 2005 07:21:18 +0000 (07:21 +0000)]
removed a lot of renderer cruft (such as 48% of gl_rsurf.c) as a result of the previous commit

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

14 years agomerged q1bsp and q3bsp surface rendering
havoc [Thu, 17 Mar 2005 07:11:41 +0000 (07:11 +0000)]
merged q1bsp and q3bsp surface rendering
disabled MarkLights based dlights (lightmap dlights, etc) because they're just too hard to maintain (broken AGAIN), and the code for them will be removed soon
renamed r_shadow_whitetexture and related textures to r_texture_white and such, and moved them to gl_rmain for more general use

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

14 years agoHost_SaveConfig_f now refuses to save if Host_Frame hasn't completed the first frame...
havoc [Tue, 15 Mar 2005 18:42:23 +0000 (18:42 +0000)]
Host_SaveConfig_f now refuses to save if Host_Frame hasn't completed the first frame yet (this means if it crashes during the first frame it won't save a config)

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

14 years agoWillis updated map list in GAME_TRANSFUSION menus
havoc [Tue, 15 Mar 2005 18:12:44 +0000 (18:12 +0000)]
Willis updated map list in GAME_TRANSFUSION menus

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

14 years agonow searchs LAN for servers (using a broadcast message to port 26000) like Quake did
havoc [Tue, 15 Mar 2005 00:12:19 +0000 (00:12 +0000)]
now searchs LAN for servers (using a broadcast message to port 26000) like Quake did

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

14 years agoLHNET now enables broadcast send/receive on any UDP ports it opens
havoc [Tue, 15 Mar 2005 00:09:07 +0000 (00:09 +0000)]
LHNET now enables broadcast send/receive on any UDP ports it opens

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

14 years ago-Beautified a function just for fun (better variable names).
black [Mon, 14 Mar 2005 21:16:13 +0000 (21:16 +0000)]
-Beautified a function just for fun (better variable names).
-Added the prvm builtin altstr_ins which inserts a new item into an
 altstring.

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

14 years agoWillis disabled entity filtering based on skill/deathmatch in GAME_TRANSFUSION becaus...
havoc [Sat, 12 Mar 2005 00:48:36 +0000 (00:48 +0000)]
Willis disabled entity filtering based on skill/deathmatch in GAME_TRANSFUSION because it does the filtering in qc

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

14 years agoWillis changed skill level numbers in GAME_TRANSFUSION menus
havoc [Sat, 12 Mar 2005 00:47:53 +0000 (00:47 +0000)]
Willis changed skill level numbers in GAME_TRANSFUSION menus

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

14 years agoSeveral fixes related to files opened in write or append mode, and to the ungetc...
molivier [Fri, 11 Mar 2005 13:13:01 +0000 (13:13 +0000)]
Several fixes related to files opened in write or append mode, and to the ungetc character. Added FS_Purge (discard all buffered data, including the ungetc character)

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

14 years agoadded basematerialflags/currentmaterialflags to texture_t which completely replace...
havoc [Thu, 10 Mar 2005 22:11:19 +0000 (22:11 +0000)]
added basematerialflags/currentmaterialflags to texture_t which completely replace the SURF_* flags and SURFRENDER_* flags
eliminated the flags and plane fields from q1bsp surfaces
q1bsp texture_t generation now sets supercontents (eliminating need for the SURF_SOLIDCLIP surface flag)
split R_UpdateTextureInfo into two versions for updating a single texture and updating a whole entity's textures respectively, so transparency rendering can now call R_UpdateTextureInfo instead of having duplicate code

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

14 years agodisabled O_NONBLOCKING flag on win32
havoc [Thu, 10 Mar 2005 03:15:27 +0000 (03:15 +0000)]
disabled O_NONBLOCKING flag on win32

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

14 years agoslight code reduction to DrawShadowVolume functions
havoc [Wed, 9 Mar 2005 23:42:16 +0000 (23:42 +0000)]
slight code reduction to DrawShadowVolume functions

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

14 years agoremoved some unused code
havoc [Wed, 9 Mar 2005 23:41:01 +0000 (23:41 +0000)]
removed some unused code

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

14 years agomerged some more q3bsp functions, now only loading and LightPoint/TraceBox differ
havoc [Wed, 9 Mar 2005 23:04:15 +0000 (23:04 +0000)]
merged some more q3bsp functions, now only loading and LightPoint/TraceBox differ

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

14 years agocorrected an error message
havoc [Wed, 9 Mar 2005 23:01:19 +0000 (23:01 +0000)]
corrected an error message

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

14 years agocl_capturevideo_raw* modes now use O_NONBLOCKING file access for more performance
havoc [Wed, 9 Mar 2005 17:36:50 +0000 (17:36 +0000)]
cl_capturevideo_raw* modes now use O_NONBLOCKING file access for more performance

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

14 years agoMoved audio CD initialization / finalization out of the video code so the CD music...
molivier [Wed, 9 Mar 2005 13:09:35 +0000 (13:09 +0000)]
Moved audio CD initialization / finalization out of the video code so the CD music doesn't stop playing when doing a vid_restart.

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

14 years agoWe didn't exit the "Reset to defaults" menu when answering "yes". Moved the "vertical...
molivier [Wed, 9 Mar 2005 13:05:29 +0000 (13:05 +0000)]
We didn't exit the "Reset to defaults" menu when answering "yes". Moved the "vertical sync" line a bit lower in the video options menu

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

14 years agoFixed and updated a few error messages
molivier [Wed, 9 Mar 2005 13:03:30 +0000 (13:03 +0000)]
Fixed and updated a few error messages

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

14 years agofixed bugs in q1bsp multitexture surface rendering (and singletexture detail renderin...
havoc [Wed, 9 Mar 2005 00:35:02 +0000 (00:35 +0000)]
fixed bugs in q1bsp multitexture surface rendering (and singletexture detail rendering as well)

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

14 years agoremoved R_BoxVisible and added model->brush.BoxTouchingVisibleLeafs for more flexibility
havoc [Wed, 9 Mar 2005 00:24:59 +0000 (00:24 +0000)]
removed R_BoxVisible and added model->brush.BoxTouchingVisibleLeafs for more flexibility

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

14 years agofixed gamma support in video saving (don't know why it was disabled before)
havoc [Wed, 9 Mar 2005 00:22:46 +0000 (00:22 +0000)]
fixed gamma support in video saving (don't know why it was disabled before)

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

14 years agoremoved the 1/4th volume scaledown on video capture
havoc [Wed, 9 Mar 2005 00:22:22 +0000 (00:22 +0000)]
removed the 1/4th volume scaledown on video capture

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

14 years agomade FS_Tell and FS_Seek work when writing files
havoc [Tue, 8 Mar 2005 17:56:22 +0000 (17:56 +0000)]
made FS_Tell and FS_Seek work when writing files

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

14 years agoadded R_BoxVisible (used instead of VIS_CullBox)
havoc [Tue, 8 Mar 2005 15:20:07 +0000 (15:20 +0000)]
added R_BoxVisible (used instead of VIS_CullBox)
rewrote portions of R_MarkEntities to be more efficient and more sane (and to use R_BoxVisible obviously)

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

14 years agofixed a mistake regarding clusterlist
havoc [Tue, 8 Mar 2005 15:18:19 +0000 (15:18 +0000)]
fixed a mistake regarding clusterlist

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

14 years agorenamed Mod_Q1BSP_BoxTouchingPVS to Mod_Brush_BoxTouchingPVS and removed the Q3BSP...
havoc [Tue, 8 Mar 2005 14:09:34 +0000 (14:09 +0000)]
renamed Mod_Q1BSP_BoxTouchingPVS to Mod_Brush_BoxTouchingPVS and removed the Q3BSP version (which is no longer different)

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

14 years agoadded r_worldleafvisible flags array for more exact visibility checking (VIS_CullBox...
havoc [Tue, 8 Mar 2005 14:02:21 +0000 (14:02 +0000)]
added r_worldleafvisible flags array for more exact visibility checking (VIS_CullBox does not use this yet however, only rtlights do)
moved r_pvsbits, r_worldsurfacevisible, r_worldleafvisible to gl_rsurf.c
migrated r_pvsbits FatPVS call from just above R_WorldVisibility to inside it

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

14 years agofurther cleaning of R_WorldVisibility, which now works the same on q1bsp and q3bsp...
havoc [Tue, 8 Mar 2005 13:49:25 +0000 (13:49 +0000)]
further cleaning of R_WorldVisibility, which now works the same on q1bsp and q3bsp (except that q3bsp always uses the pvs method since the loader doesn't generate portals yet, and doesn't provide a PointInLeaf function)

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

14 years agoremoved/changed a few mod_brushq1 checks
havoc [Tue, 8 Mar 2005 13:48:27 +0000 (13:48 +0000)]
removed/changed a few mod_brushq1 checks

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

14 years agoeliminated q3meffect_t (now uses q3deffect_t)
havoc [Tue, 8 Mar 2005 13:16:06 +0000 (13:16 +0000)]
eliminated q3meffect_t (now uses q3deffect_t)

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

14 years agochanged uses of q3mmodel_t to q3dmodel_t because there are no actual differences...
havoc [Tue, 8 Mar 2005 13:10:30 +0000 (13:10 +0000)]
changed uses of q3mmodel_t to q3dmodel_t because there are no actual differences anymore

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

14 years agochanged brushq3 submodel firstsurface and firstbrush from pointers to integers
havoc [Tue, 8 Mar 2005 13:05:11 +0000 (13:05 +0000)]
changed brushq3 submodel firstsurface and firstbrush from pointers to integers

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

14 years agoreenabled CL_TeleportSplash (and removed a bogus parameter), reduced teleport light...
havoc [Tue, 8 Mar 2005 12:51:27 +0000 (12:51 +0000)]
reenabled CL_TeleportSplash (and removed a bogus parameter), reduced teleport light radius to improve performance

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

14 years agofix continual setting of sys_ticrate to 0.01 due to float rounding errors (now has...
havoc [Tue, 8 Mar 2005 02:48:26 +0000 (02:48 +0000)]
fix continual setting of sys_ticrate to 0.01 due to float rounding errors (now has a slight error tolerance)

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

14 years agoslight optimization to q1bsp rtlight surface visibility checking, added surface visib...
havoc [Tue, 8 Mar 2005 01:50:47 +0000 (01:50 +0000)]
slight optimization to q1bsp rtlight surface visibility checking, added surface visibility checking to q3bsp rtlight rendering (should now be on par with q1bsp rtlight rendering speed)

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

14 years agoadded firstmodelbrush/nummodelbrushes fields to model struct, and moved brushes from...
havoc [Tue, 8 Mar 2005 01:39:42 +0000 (01:39 +0000)]
added firstmodelbrush/nummodelbrushes fields to model struct, and moved brushes from brushq3 to brush, this eliminated all uses of the submodel structures in q3bsp (except during loading)

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

14 years agoanother C99 lazy variable fixed
havoc [Tue, 8 Mar 2005 01:27:27 +0000 (01:27 +0000)]
another C99 lazy variable fixed

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

14 years agomerged q3msurface_t into msurface_t
havoc [Mon, 7 Mar 2005 23:28:42 +0000 (23:28 +0000)]
merged q3msurface_t into msurface_t
renamed brushq1./brushq3. surface stuff to brush.
surface->texinfo->texture is now also copied into surface->texture for convenient access (and consistency with q3bsp)
the qc surface info extension has been made q3bsp friendly (however querying a surface's points won't give very sane results on q3bsp surfaces!)
a little cruft removal in some structures

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

14 years agofixed q3bsp bug where firstmodelsurface was not being set (caused bmodels to render...
havoc [Mon, 7 Mar 2005 20:55:59 +0000 (20:55 +0000)]
fixed q3bsp bug where firstmodelsurface was not being set (caused bmodels to render world surfaces instead of their own)

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

14 years agoRemoved a couple of warnings when compiling with MSVC6
molivier [Mon, 7 Mar 2005 13:07:09 +0000 (13:07 +0000)]
Removed a couple of warnings when compiling with MSVC6

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

14 years agoa major rename - instead of q1bsp code having surf, and q3bsp code having face, both...
havoc [Sun, 6 Mar 2005 21:26:33 +0000 (21:26 +0000)]
a major rename - instead of q1bsp code having surf, and q3bsp code having face, both now use surface

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