15 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

15 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

15 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

15 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

15 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

15 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

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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 years agoeliminated surf->poly_* fields and cleaned up Mod_LoadFaces a great deal
havoc [Sun, 6 Mar 2005 20:37:14 +0000 (20:37 +0000)]
eliminated surf->poly_* fields and cleaned up Mod_LoadFaces a great deal

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

15 years agomerged q3mtexture_t into texture_t, note that only the name and skin fields are share...
havoc [Sun, 6 Mar 2005 19:47:29 +0000 (19:47 +0000)]
merged q3mtexture_t into texture_t, note that only the name and skin fields are shared, merging the rest is more difficult

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

15 years agoremoved texture_t->number and q3mtexture_t->number
havoc [Sun, 6 Mar 2005 19:20:31 +0000 (19:20 +0000)]
removed texture_t->number and q3mtexture_t->number

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

15 years agomoved brushq3.submodel to brush, removed brushq3.data_thismodel (instead looking...
havoc [Sun, 6 Mar 2005 19:16:51 +0000 (19:16 +0000)]
moved brushq3.submodel to brush, removed brushq3.data_thismodel (instead looking it up using submodel), other minor cleanups

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

15 years agomoved brushq1 nodes/leafs/leaffaces/planes/portals fields to brush, along with brushq...
havoc [Sun, 6 Mar 2005 19:00:09 +0000 (19:00 +0000)]
moved brushq1 nodes/leafs/leaffaces/planes/portals fields to brush, along with brushq3 leafbrushes to make things even more consistent

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

15 years agorenamed q1bsp marksurfaces to leaffaces for consistency with q2bsp and q3bsp naming
havoc [Sun, 6 Mar 2005 17:09:47 +0000 (17:09 +0000)]
renamed q1bsp marksurfaces to leaffaces for consistency with q2bsp and q3bsp naming
replaced q3mnode_t and q3mleaf_t with mnode_t and mleaf_t (which now contain supersets of the fields between the two bsp versions)

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

15 years agochanged leafbrushes from pointers to ints to be consistent with leaffaces
havoc [Sun, 6 Mar 2005 16:22:26 +0000 (16:22 +0000)]
changed leafbrushes from pointers to ints to be consistent with leaffaces
moved q3m* structs and stuff to model_brush.h

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

15 years agomoved pvs handling from R_Q3BSP_DrawFaces to R_WorldVisibility (now handles q1bsp...
havoc [Sun, 6 Mar 2005 16:12:14 +0000 (16:12 +0000)]
moved pvs handling from R_Q3BSP_DrawFaces to R_WorldVisibility (now handles q1bsp and q3bsp), made R_Q3BSP_DrawFaces more similar to R_DrawSurfaces

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

15 years agochanged leafface references to ints (making leaffacenum obslete) for more consistency...
havoc [Sun, 6 Mar 2005 15:31:34 +0000 (15:31 +0000)]
changed leafface references to ints (making leaffacenum obslete) for more consistency between q1bsp and q3bsp leaf structures

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

15 years agogot rid of node->contents, leaf->contents kept (only needed temporarily during loadin...
havoc [Sun, 6 Mar 2005 14:58:54 +0000 (14:58 +0000)]
got rid of node->contents, leaf->contents kept (only needed temporarily during loading to generate collision hull 0), now checks node->plane to know if it is a node (leaf has a NULL plane pointer)
fixed the very messed up contents translation in Q3BSP
various other cleanups

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

15 years agochanged waterlevel checking to use SUPERCONTENTS instead of CONTENTS, this might...
havoc [Sun, 6 Mar 2005 14:56:44 +0000 (14:56 +0000)]
changed waterlevel checking to use SUPERCONTENTS instead of CONTENTS, this might be a slight speedup (hasn't completely gotten rid of use of CONTENTS though, because that still must be reported to the QC)

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

15 years agoremoved the commented out RecursiveHullCheckPoint function
havoc [Sun, 6 Mar 2005 14:50:43 +0000 (14:50 +0000)]
removed the commented out RecursiveHullCheckPoint function

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

15 years agochanged all uses of CL_PointQ1Contents to CL_PointSuperContents in particle system...
havoc [Sun, 6 Mar 2005 14:49:48 +0000 (14:49 +0000)]
changed all uses of CL_PointQ1Contents to CL_PointSuperContents in particle system (except with WORKINGLQUAKE defined)

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

15 years agoadded SUPERCONTENTS_NODROP
havoc [Sun, 6 Mar 2005 14:48:51 +0000 (14:48 +0000)]

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

15 years agolazy variable declarations strike again
havoc [Sun, 6 Mar 2005 11:42:40 +0000 (11:42 +0000)]
lazy variable declarations strike again

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

15 years agovariable declaration after function call... oops
havoc [Sun, 6 Mar 2005 11:35:38 +0000 (11:35 +0000)]
variable declaration after function call...  oops

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

15 years agotweaked the order of checks in an if, and removed the previously mentioned pvs textur...
havoc [Sat, 5 Mar 2005 16:13:40 +0000 (16:13 +0000)]
tweaked the order of checks in an if, and removed the previously mentioned pvs texture chain stuff from the header (forgot to commit this before)

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

15 years agoeliminated brushq1.pvs* variables, pvstexture surface chain stuff, and cleaned up...
havoc [Sat, 5 Mar 2005 15:18:13 +0000 (15:18 +0000)]
eliminated brushq1.pvs* variables, pvstexture surface chain stuff, and cleaned up related code

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

15 years agomore refactoring of q1bsp rendering
havoc [Sat, 5 Mar 2005 10:40:45 +0000 (10:40 +0000)]
more refactoring of q1bsp rendering

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

15 years agofixed Mod_AllocSurfMesh (doesn't crash now)
havoc [Thu, 3 Mar 2005 14:21:31 +0000 (14:21 +0000)]
fixed Mod_AllocSurfMesh (doesn't crash now)

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

15 years agocleaned up q1bsp surface rendering a bit more
havoc [Thu, 3 Mar 2005 14:20:07 +0000 (14:20 +0000)]
cleaned up q1bsp surface rendering a bit more

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

15 years ago- Toggled "strip executable" in the Dev-C++ project file and updated the version...
molivier [Thu, 3 Mar 2005 14:11:58 +0000 (14:11 +0000)]
- Toggled "strip executable" in the Dev-C++ project file and updated the version info
- Added a Dev-C++ project file for the dedicated server
- In Makefile.inc, some libs were listed twice in the command line while compiling a dedicated server on Win32
- A few very minor changes in snd_ogg.c

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

15 years agocleaned surface drawing in q1bsp and q3bsp a bit
havoc [Thu, 3 Mar 2005 13:45:12 +0000 (13:45 +0000)]
cleaned surface drawing in q1bsp and q3bsp a bit

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

15 years agosome optimizations to q3bsp surface rendering
havoc [Thu, 3 Mar 2005 12:50:25 +0000 (12:50 +0000)]
some optimizations to q3bsp surface rendering

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

15 years agoWillis improved the Transfusion menu to support singleplayer
havoc [Thu, 3 Mar 2005 09:23:48 +0000 (09:23 +0000)]
Willis improved the Transfusion menu to support singleplayer

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

15 years agoq1bsp and q3bsp loaders now use model->meshlist for storing all the geometry of the...
havoc [Thu, 3 Mar 2005 06:02:21 +0000 (06:02 +0000)]
q1bsp and q3bsp loaders now use model->meshlist for storing all the geometry of the surfaces (q1bsp loader does not yet enforce the 65536 vertex limit however)

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

15 years agomodified q3msurface_t to use a surfmesh (although not cleanly)
havoc [Wed, 2 Mar 2005 11:24:29 +0000 (11:24 +0000)]
modified q3msurface_t to use a surfmesh (although not cleanly)

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

15 years agoimproved/modified q1bsp surfmesh stuff for more general use (to make q3bsp able to...
havoc [Wed, 2 Mar 2005 11:03:46 +0000 (11:03 +0000)]
improved/modified q1bsp surfmesh stuff for more general use (to make q3bsp able to use it)

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

15 years agoimproved r_texturestats output (now gives a total for each pool) and merged some...
havoc [Wed, 2 Mar 2005 05:44:33 +0000 (05:44 +0000)]
improved r_texturestats output (now gives a total for each pool) and merged some similar code in it

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

15 years agodefault sv_public to 1
havoc [Wed, 2 Mar 2005 05:36:23 +0000 (05:36 +0000)]
default sv_public to 1

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

15 years agochanged color prefix character to ^ (@ is not acceptable)
havoc [Fri, 11 Feb 2005 22:22:35 +0000 (22:22 +0000)]
changed color prefix character to ^ (@ is not acceptable)

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

15 years agoremoved key-below-escape forced toggleconsole, so that german keyboards can type ^
havoc [Fri, 11 Feb 2005 22:20:42 +0000 (22:20 +0000)]
removed key-below-escape forced toggleconsole, so that german keyboards can type ^

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

15 years agoslight safety improvement in frameblend generation, may fix a crash Willis reported...
havoc [Fri, 11 Feb 2005 05:38:37 +0000 (05:38 +0000)]
slight safety improvement in frameblend generation, may fix a crash Willis reported in Nexuiz

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

15 years agonow does a togglemenu if there were no demos started and not connecting to a server...
havoc [Mon, 7 Feb 2005 17:46:55 +0000 (17:46 +0000)]
now does a togglemenu if there were no demos started and not connecting to a server and not starting a server

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

15 years ago342
havoc [Sun, 6 Feb 2005 16:52:13 +0000 (16:52 +0000)]

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

15 years agorain drops now make rain splashes
havoc [Sun, 6 Feb 2005 16:47:06 +0000 (16:47 +0000)]
rain drops now make rain splashes

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

15 years agoadded Venim's dpmaster server (now up to 3 masters)
havoc [Sun, 6 Feb 2005 10:21:21 +0000 (10:21 +0000)]
added Venim's dpmaster server (now up to 3 masters)

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

15 years ago-Only print queried servers once to the console.
black [Sat, 5 Feb 2005 20:39:45 +0000 (20:39 +0000)]
-Only print queried servers once to the console.

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

15 years agoimplemented DP_CON_STARTMAP extension which defines two configurable aliases to choos...
havoc [Fri, 4 Feb 2005 13:48:17 +0000 (13:48 +0000)]
implemented DP_CON_STARTMAP extension which defines two configurable aliases to choose a start map

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

15 years agonow lerps punchangle and punchvector
havoc [Fri, 4 Feb 2005 11:50:50 +0000 (11:50 +0000)]
now lerps punchangle and punchvector

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

15 years agoenable key repeat
havoc [Fri, 4 Feb 2005 11:04:06 +0000 (11:04 +0000)]
enable key repeat

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

15 years agorealtime dlights are now overridden by gl_flashblend (as was intended)
havoc [Fri, 4 Feb 2005 10:30:36 +0000 (10:30 +0000)]
realtime dlights are now overridden by gl_flashblend (as was intended)

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

15 years agofixed r_editlights_edit cubemap (it was calling strlcpy with the wrong length limit)
havoc [Fri, 4 Feb 2005 10:19:50 +0000 (10:19 +0000)]
fixed r_editlights_edit cubemap (it was calling strlcpy with the wrong length limit)

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

15 years agocl_particles_size works again
havoc [Fri, 4 Feb 2005 09:54:52 +0000 (09:54 +0000)]
cl_particles_size works again

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

15 years agochanged 3 clamp calls in the GLSL fragment shader to max calls instead, for a small...
havoc [Fri, 4 Feb 2005 09:23:01 +0000 (09:23 +0000)]
changed 3 clamp calls in the GLSL fragment shader to max calls instead, for a small speed gain (at least on ATI)

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

15 years agovid_vsync 0 now causes a warning due to the fact GLX_SGI_swap_control has no way...
havoc [Fri, 4 Feb 2005 09:15:10 +0000 (09:15 +0000)]
vid_vsync 0 now causes a warning due to the fact GLX_SGI_swap_control has no way to turn off vsync, and suggests vid_restart

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

15 years agovid_usingvsync now set to false after a vid_restart (so that vsync will be set again...
havoc [Fri, 4 Feb 2005 07:29:02 +0000 (07:29 +0000)]
vid_usingvsync now set to false after a vid_restart (so that vsync will be set again if it's on)

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

15 years agono longer hits triangles of your own player model when tracing the prydoncursor from...
havoc [Fri, 4 Feb 2005 07:19:58 +0000 (07:19 +0000)]
no longer hits triangles of your own player model when tracing the prydoncursor from first person view

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

15 years agoremoved unused variable font_size
havoc [Fri, 4 Feb 2005 07:18:53 +0000 (07:18 +0000)]
removed unused variable font_size

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

15 years agoReplaced snprintf and vnsprintf calls by dpsnprintf and dpvsnprintf calls, to ensure...
molivier [Thu, 3 Feb 2005 12:17:10 +0000 (12:17 +0000)]
Replaced snprintf and vnsprintf calls by dpsnprintf and dpvsnprintf calls, to ensure coherence among the various platforms (the Win32 versions of those functions aren't C99 compatible). dp(v)snprintf functions return -1 when the buffer is too small to contain all the data, and insure null termination.

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

15 years agoCommented out the printing of the weapon number in the weapon selection.
black [Wed, 2 Feb 2005 21:14:52 +0000 (21:14 +0000)]
Commented out the printing of the weapon number in the weapon selection.

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

15 years agoFCVS: ----------------------------------------------------------------------
black [Wed, 2 Feb 2005 20:54:45 +0000 (20:54 +0000)]
FCVS: ----------------------------------------------------------------------
-Changed the scoreboard for nexuiz (only).
-Fixed a bug in the old quake menu.

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

15 years agoFixed a bug and also added support color support to the chat messages.
black [Wed, 2 Feb 2005 20:25:07 +0000 (20:25 +0000)]
Fixed a bug and also added support color support to the chat messages.

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

15 years agoAdded support for color tags to the console. Use the @ char followed by a
black [Wed, 2 Feb 2005 19:30:16 +0000 (19:30 +0000)]
Added support for color tags to the console. Use the @ char followed by a
number to switch the color. Currently I have only the color indices 0-7 are

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

15 years agoFixed Win32 wav sound driver (thanks to fuh for the bug report). Cleaned up some...
molivier [Wed, 2 Feb 2005 09:12:02 +0000 (09:12 +0000)]
Fixed Win32 wav sound driver (thanks to fuh for the bug report). Cleaned up some code in the process

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

15 years agoreduced offsetmapping from 4 sample to 3 sample to make it work within Radeon 9500...
havoc [Sat, 29 Jan 2005 02:21:52 +0000 (02:21 +0000)]
reduced offsetmapping from 4 sample to 3 sample to make it work within Radeon 9500-9800/X300 limits

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

15 years agodisabled snapping of render patch vertices (collision patch vertices are still snapped)
havoc [Thu, 27 Jan 2005 22:15:44 +0000 (22:15 +0000)]
disabled snapping of render patch vertices (collision patch vertices are still snapped)

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

15 years agoadded support for skill values outside the range 0-3
havoc [Wed, 26 Jan 2005 22:15:34 +0000 (22:15 +0000)]
added support for skill values outside the range 0-3
GAME_TRANSFUSION now uses skill range 0-4

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