]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
21 years agomerged makefile, makefile.mingw (outdated) and makefile.mingwcross into one makefile
havoc [Sun, 25 May 2003 22:37:49 +0000 (22:37 +0000)]
merged makefile, makefile.mingw (outdated) and makefile.mingwcross into one makefile

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

21 years agoremoved rick.cube-sol.net from master server list because it's not resolving and...
havoc [Sun, 25 May 2003 22:35:07 +0000 (22:35 +0000)]
removed rick.cube-sol.net from master server list because it's not resolving and was really delaying server lists

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

21 years agomerged dll handling code into sys_shared.c because the code in sys_linux.c was for...
havoc [Sun, 25 May 2003 22:33:03 +0000 (22:33 +0000)]
merged dll handling code into sys_shared.c because the code in sys_linux.c was for both windows and linux, no real point in separating them

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

21 years agofix darkplaces-dedicated.exe building to open a console
havoc [Sun, 25 May 2003 16:26:02 +0000 (16:26 +0000)]
fix darkplaces-dedicated.exe building to open a console

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

21 years agoSys_Print added to handle the output of text to the terminal (since this varies from...
havoc [Sun, 25 May 2003 16:17:37 +0000 (16:17 +0000)]
Sys_Print added to handle the output of text to the terminal (since this varies from platform to platform and may depend on whether it is dedicated)

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

21 years agodarkplaces-dedicated.exe now builds
havoc [Sun, 25 May 2003 15:48:00 +0000 (15:48 +0000)]
darkplaces-dedicated.exe now builds
sys_linux.c (needs new name badly!) modified to support windows for purposes of darkplaces-dedicated.exe
Sys_Printf probably no longer works properly with darkplaces.exe (but we'll see)
darkplaces.exe should now be a proper windows app again (how I got --mwindows in there I don't know), so -dedicated may work

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

21 years agoalias model fake shadows can now be cached
havoc [Sun, 25 May 2003 11:59:58 +0000 (11:59 +0000)]
alias model fake shadows can now be cached

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

21 years agofixed a severe bug with pointer_color state tracking (no longer checks .colorarray...
havoc [Sun, 25 May 2003 11:44:31 +0000 (11:44 +0000)]
fixed a severe bug with pointer_color state tracking (no longer checks .colorarray, so you don't have to do the GL_Color/GL_UseColorArray call before R_Mesh_State anymore), this fixes explosion coloring when using pointer_color for other stuff rendered immediately before it
fixed a crash when entire sequentialchain is emptied while trying to get space for a new cache item (this happened!  I can't guess why though)

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

21 years agosimplified explosion rendering a little (probably a very minor slowdown, but more...
havoc [Sun, 25 May 2003 11:40:34 +0000 (11:40 +0000)]
simplified explosion rendering a little (probably a very minor slowdown, but more maintainable)

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

21 years agoalias model (q1/q2/q3) rendering now supports gl_mesh_copyarrays 0 (even caches light...
havoc [Sat, 24 May 2003 14:53:30 +0000 (14:53 +0000)]
alias model (q1/q2/q3) rendering now supports gl_mesh_copyarrays 0 (even caches lighting!) for a speed boost (enough to compensate for the current loss on world rendering), note that only normal rendering uses this so far (more rendering functions to upgrade)

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

21 years agomade id_pointer fields of rcachearrayrequest_t const (because they'll never be used...
havoc [Sat, 24 May 2003 14:48:33 +0000 (14:48 +0000)]
made id_pointer fields of rcachearrayrequest_t const (because they'll never be used as pointers anyway)

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

21 years agodisabled various testing code in R_Mesh_CacheArray
havoc [Sat, 24 May 2003 14:47:32 +0000 (14:47 +0000)]
disabled various testing code in R_Mesh_CacheArray
fixed a bug with pointer_color if gl_mesh_floatcolors is false (it was incorrectly comparing p to varray_buf_color4f, it should have compared it to NULL)

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

21 years agopossible stability improvement in VID_Shutdown - moved ChangeDisplaySettings call...
havoc [Sat, 24 May 2003 07:18:47 +0000 (07:18 +0000)]
possible stability improvement in VID_Shutdown - moved ChangeDisplaySettings call after DestroyWindow

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

21 years agoaliasvertex_t no longer exists, models are now stored as arrays of vertex3f, svector3...
havoc [Fri, 23 May 2003 18:38:34 +0000 (18:38 +0000)]
aliasvertex_t no longer exists, models are now stored as arrays of vertex3f, svector3f, tvector3f, normal3f
cleaned up loaders somewhat (they're still nasty as always)
now validates elements in mdl model files

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

21 years agoadded R_Mesh_CacheArray (not yet used by anything, but has been tested with some...
havoc [Fri, 23 May 2003 18:36:28 +0000 (18:36 +0000)]
added R_Mesh_CacheArray (not yet used by anything, but has been tested with some code in gl_rsurf.c), a generic dynamic data caching system intended for vertex arrays

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

21 years agoadded gl_mesh_batching (default on) which merges several meshes in a row to reduce...
havoc [Fri, 23 May 2003 07:43:26 +0000 (07:43 +0000)]
added gl_mesh_batching (default on) which merges several meshes in a row to reduce overhead of array locking and drawing
added MESH_VAR and MESH_BATCH defines to allow relevant code to be disabled (MESH_VAR is currently disabled because it's somewhat broken last I checked)
added custom array pointer support in R_Mesh_State (MainState and TextureState), this is experimental but works fine
added gl_mesh_copyarrays (default off) which tells renderer code that it should use custom array pointer support instead of copying (currently testable on surface rendering - not a good use, too many Pointer calls for very little geometry)
some other cleanups

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

21 years agoconsole logging (-condebug) now starts earlier in the startup process (just after...
havoc [Fri, 23 May 2003 07:38:25 +0000 (07:38 +0000)]
console logging (-condebug) now starts earlier in the startup process (just after the filesystem)

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

21 years agomore preparation for quake2 bsp support
havoc [Fri, 23 May 2003 06:58:34 +0000 (06:58 +0000)]
more preparation for quake2 bsp support

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

21 years agomerged SV_Physics_Client into SV_Physics (not difficult)
havoc [Fri, 23 May 2003 06:30:36 +0000 (06:30 +0000)]
merged SV_Physics_Client into SV_Physics (not difficult)

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

21 years agocleaned up/simplified Sys_Error, now should never get in a recursive crash loop,...
havoc [Fri, 23 May 2003 06:28:05 +0000 (06:28 +0000)]
cleaned up/simplified Sys_Error, now should never get in a recursive crash loop, but also lost the timeout on dedicated server errors as a result (if engine crashes, the server will leave up a dialog eternally until someone closes it)

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

21 years agorenamed "precache" cvar to "snd_precache" because it's name was very confusing
havoc [Wed, 21 May 2003 12:15:06 +0000 (12:15 +0000)]
renamed "precache" cvar to "snd_precache" because it's name was very confusing

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

21 years agoadded support for q2 .wal images (not yet tested but suspected as working)
havoc [Wed, 21 May 2003 11:24:20 +0000 (11:24 +0000)]
added support for q2 .wal images (not yet tested but suspected as working)
cleaned up multiple format loader hub, now parses a list of formats things to try
cleaned up invalid image size detection (now all format loaders check for >4096 and <=0 in each axis)

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

21 years agobeginning to add Q2 bsp support (Q3 bsp support coming later)
havoc [Wed, 21 May 2003 09:08:15 +0000 (09:08 +0000)]
beginning to add Q2 bsp support (Q3 bsp support coming later)

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

21 years agoadded a note about an id bug with triggers and ignoring .owner (the fact they don't)
havoc [Wed, 21 May 2003 09:05:15 +0000 (09:05 +0000)]
added a note about an id bug with triggers and ignoring .owner (the fact they don't)

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

21 years agoFix Transfusion bug 030429-01 (If you go to the console from the options menu, then...
molivier [Mon, 19 May 2003 07:11:22 +0000 (07:11 +0000)]
Fix Transfusion bug 030429-01 (If you go to the console from the options menu, then exit the console, you can't get back to the menu)

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

21 years agofixed a bug with Host_Startdemos_f that caused it to never shorten the list of demos...
havoc [Sat, 17 May 2003 10:29:35 +0000 (10:29 +0000)]
fixed a bug with Host_Startdemos_f that caused it to never shorten the list of demos (it forgot to clear the remaining slots)

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

21 years agocorrected call to Image_HasAlpha to be Image_CheckAlpha
havoc [Fri, 16 May 2003 11:34:56 +0000 (11:34 +0000)]
corrected call to Image_HasAlpha to be Image_CheckAlpha

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

21 years agoreplaced a loop that checked for alpha pixels with a call to Image_HasAlpha
havoc [Fri, 16 May 2003 11:10:32 +0000 (11:10 +0000)]
replaced a loop that checked for alpha pixels with a call to Image_HasAlpha
fixed a memory leak on s->maskpixels (due to memory pools this leak was probably not too bad)

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

21 years agoadded DP_GFX_SKYBOX and DP_CL_LOADSKY extensions
havoc [Fri, 16 May 2003 11:09:23 +0000 (11:09 +0000)]
added DP_GFX_SKYBOX and DP_CL_LOADSKY extensions

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

21 years agonew entity protocol has been canceled due to a fatal design flaw only detected today...
havoc [Tue, 29 Apr 2003 16:04:40 +0000 (16:04 +0000)]
new entity protocol has been canceled due to a fatal design flaw only detected today (insufficient data on history of entities)
added explanation of old entity protocol and how it will be revised to use partial entity updates (without breaking compatibility with old clients!)

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

21 years agoreverted dynamic allocation of sv.edicts because there are FAR too many broken pointe...
havoc [Sat, 26 Apr 2003 10:21:02 +0000 (10:21 +0000)]
reverted dynamic allocation of sv.edicts because there are FAR too many broken pointer cases, however shrinking the edict_t to just a couple pointers and dynamically allocating the data they point to, keeps memory usage way down

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

21 years agoincreased default gl_mesh_maxverts to 65536, and also increased the limit to that
havoc [Sat, 26 Apr 2003 10:19:21 +0000 (10:19 +0000)]
increased default gl_mesh_maxverts to 65536, and also increased the limit to that

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

21 years agocleaned up UDP_Init a bit
havoc [Sat, 26 Apr 2003 10:03:42 +0000 (10:03 +0000)]
cleaned up UDP_Init a bit

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

21 years agosv.edicts (and related things) are now dynamically reallocated as more edicts are...
havoc [Fri, 25 Apr 2003 14:43:10 +0000 (14:43 +0000)]
sv.edicts (and related things) are now dynamically reallocated as more edicts are used
no edict_t *'s exist in any persistent structures anymore, using edict numbers in all such cases (as it turns out the only such structs were client_t in server.h and link_t in progs.h)
edicts are unlinked before reallocation and relinked after reallocation to keep the link_t pointers valid

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

21 years agoUDP_Init now tries to bind to INADDR_ANY and various others in sequence
havoc [Fri, 25 Apr 2003 14:39:22 +0000 (14:39 +0000)]
UDP_Init now tries to bind to INADDR_ANY and various others in sequence

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

21 years agopk3 is now case insensitive to match quake3 behavior (however pak is still case sensi...
havoc [Fri, 25 Apr 2003 12:44:22 +0000 (12:44 +0000)]
pk3 is now case insensitive to match quake3 behavior (however pak is still case sensitive)
FS_FileExtension has been basically rewritten, it was taking the first . in the filename (which might even be part of a directory name)

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

21 years agoincreased runaway loop counter 10x (now 10 million opcodes before runaway error
havoc [Wed, 23 Apr 2003 11:48:05 +0000 (11:48 +0000)]
increased runaway loop counter 10x (now 10 million opcodes before runaway error

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

21 years agoalways do r_shadow_realtime_dlight if r_shadow_realtime_world is on
havoc [Mon, 21 Apr 2003 11:27:09 +0000 (11:27 +0000)]
always do r_shadow_realtime_dlight if r_shadow_realtime_world is on

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

21 years agonudge dlights out of walls if they're too close
havoc [Mon, 21 Apr 2003 11:26:22 +0000 (11:26 +0000)]
nudge dlights out of walls if they're too close

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

21 years agoadded TEXF_CLAMP flag on model and sprite textures (software quake did not support...
havoc [Mon, 21 Apr 2003 10:05:18 +0000 (10:05 +0000)]
added TEXF_CLAMP flag on model and sprite textures (software quake did not support out of bounds texcoords, so repeat is clearly unnecessary and even undesirable)

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

21 years agothanks to "backslash" for submitting a patch to support Intellimouse Explorer's two...
havoc [Sun, 20 Apr 2003 05:48:03 +0000 (05:48 +0000)]
thanks to "backslash" for submitting a patch to support Intellimouse Explorer's two extra buttons (side buttons), I expanded the patch to support up to 10 mouse buttons (plus mwheelup/mwheeldown) in both GLX and WGL ports.

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

21 years agofix flipped sprites
havoc [Sun, 20 Apr 2003 05:39:54 +0000 (05:39 +0000)]
fix flipped sprites

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

21 years agoreorganized aliaslayer_t handling to fix a few bugs
havoc [Fri, 18 Apr 2003 12:11:30 +0000 (12:11 +0000)]
reorganized aliaslayer_t handling to fix a few bugs
fixed md2 models
fixed skinless models

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

21 years agovery minor correction to a comment
havoc [Fri, 18 Apr 2003 12:03:57 +0000 (12:03 +0000)]
very minor correction to a comment

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

21 years agoinlined the only call of R_ModelLightPoint (in R_LightModel)
havoc [Fri, 18 Apr 2003 12:03:09 +0000 (12:03 +0000)]
inlined the only call of R_ModelLightPoint (in R_LightModel)

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

21 years agogreatly improved pointfile command, it now shows a huge beam crosshair at the site...
havoc [Fri, 18 Apr 2003 12:01:12 +0000 (12:01 +0000)]
greatly improved pointfile command, it now shows a huge beam crosshair at the site of the leak entity

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

21 years agoparser can now handle recursive commands (although this still doesn't work with the...
havoc [Fri, 18 Apr 2003 11:59:16 +0000 (11:59 +0000)]
parser can now handle recursive commands (although this still doesn't work with the whole Cmd_Argv/Cmd_Argc stuff)

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

21 years agoFixed bug in record command (it was running a map command before getting the demo...
havoc [Fri, 18 Apr 2003 11:58:05 +0000 (11:58 +0000)]
Fixed bug in record command (it was running a map command before getting the demo name, which gets replaced by the map command parameter, causing the demo to always be named the same as the map)

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

21 years agofix model lighting (pitch was backwards)
havoc [Fri, 18 Apr 2003 11:53:26 +0000 (11:53 +0000)]
fix model lighting (pitch was backwards)

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

21 years agoadded some extensions I forgot to put in the list before
havoc [Mon, 14 Apr 2003 22:23:12 +0000 (22:23 +0000)]
added some extensions I forgot to put in the list before

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

21 years agoremoved special cases for transfusion in server search messages (now prints gamename)
havoc [Mon, 14 Apr 2003 12:18:45 +0000 (12:18 +0000)]
removed special cases for transfusion in server search messages (now prints gamename)

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

21 years agoexpanded stats reporting (when in developer mode) of how many entities were processed...
havoc [Mon, 14 Apr 2003 03:04:10 +0000 (03:04 +0000)]
expanded stats reporting (when in developer mode) of how many entities were processed during loading (now displays parsed/inhibited/spawned/died)

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

21 years agoexpanded UDP_Read and UDP_Write error messages to include the function parameters
havoc [Sun, 13 Apr 2003 10:45:08 +0000 (10:45 +0000)]
expanded UDP_Read and UDP_Write error messages to include the function parameters

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

21 years agoMod_FindNonSolidLocation fixed for no map case (again)
havoc [Thu, 10 Apr 2003 04:03:59 +0000 (04:03 +0000)]
Mod_FindNonSolidLocation fixed for no map case (again)

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

21 years agofix two more fs_gamedir mixups (loading saved games should now work, as well as video...
havoc [Tue, 8 Apr 2003 08:11:45 +0000 (08:11 +0000)]
fix two more fs_gamedir mixups (loading saved games should now work, as well as video playback)

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

21 years agoadded DP_QUAKE3_MODEL extension (thanks to Elric for pointing out the need for this)
havoc [Tue, 8 Apr 2003 08:02:01 +0000 (08:02 +0000)]
added DP_QUAKE3_MODEL extension (thanks to Elric for pointing out the need for this)

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

21 years agodisable use of scissor when stencil is not available (sure seems like a driver bug...
havoc [Mon, 7 Apr 2003 06:40:44 +0000 (06:40 +0000)]
disable use of scissor when stencil is not available (sure seems like a driver bug, scissor should work)

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

21 years agosome more minor cleanups
havoc [Mon, 7 Apr 2003 05:31:37 +0000 (05:31 +0000)]
some more minor cleanups
bug with dlights when not using stencil has not been found yet

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

21 years agofixed M_ScanSaves to use FS_Open properly
havoc [Mon, 7 Apr 2003 01:45:34 +0000 (01:45 +0000)]
fixed M_ScanSaves to use FS_Open properly

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

21 years agofixed name of dpavi.wav file to work correctly with FS_Open (this is in commented...
havoc [Mon, 7 Apr 2003 01:44:56 +0000 (01:44 +0000)]
fixed name of dpavi.wav file to work correctly with FS_Open (this is in commented out code though so it doesn't matter)

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

21 years agoforgot to make a couple changes before committing this
havoc [Mon, 7 Apr 2003 01:43:11 +0000 (01:43 +0000)]
forgot to make a couple changes before committing this

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

21 years agosplit r_shadow_realtime into r_shadow_realtime_world (which requires stencil) and...
havoc [Mon, 7 Apr 2003 01:28:47 +0000 (01:28 +0000)]
split r_shadow_realtime into r_shadow_realtime_world (which requires stencil) and r_shadow_realtime_dlight (which works without stencil)
one bug remains with scissoring dlights without stencil, I'll try to figure out this problem soon

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

21 years agoredesigned surfmesh allocation in brush model loader, in preparation for some more...
havoc [Sun, 6 Apr 2003 19:24:33 +0000 (19:24 +0000)]
redesigned surfmesh allocation in brush model loader, in preparation for some more drastic changes

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

21 years agorelease build optimizations changed - removed -funroll-loops, added -O9
havoc [Sun, 6 Apr 2003 19:23:34 +0000 (19:23 +0000)]
release build optimizations changed - removed -funroll-loops, added -O9

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

21 years agorevised EntityFrame4 function prototypes (no I still haven't coded this)
havoc [Sun, 6 Apr 2003 00:23:21 +0000 (00:23 +0000)]
revised EntityFrame4 function prototypes (no I still haven't coded this)

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

21 years agooptimized shadow volume generation a bit (only projects vertices that are necessary)
havoc [Sat, 5 Apr 2003 16:53:14 +0000 (16:53 +0000)]
optimized shadow volume generation a bit (only projects vertices that are necessary)

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

21 years agopreparation for a new protocol upgrade to use partial frame updates
havoc [Thu, 3 Apr 2003 20:56:05 +0000 (20:56 +0000)]
preparation for a new protocol upgrade to use partial frame updates

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

21 years agogot rid of use of eye in entity database
havoc [Thu, 3 Apr 2003 20:55:08 +0000 (20:55 +0000)]
got rid of use of eye in entity database

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

21 years agoadded MAX_NETRELIABLE define (currently same as MAX_DATAGRAM, but will change someday)
havoc [Thu, 3 Apr 2003 20:49:31 +0000 (20:49 +0000)]
added MAX_NETRELIABLE define (currently same as MAX_DATAGRAM, but will change someday)

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

21 years agoAdded support for JPEG screenshots. You can toggle that with the cvar "scr_screenshot...
molivier [Thu, 3 Apr 2003 08:02:14 +0000 (08:02 +0000)]
Added support for JPEG screenshots. You can toggle that with the cvar "scr_screenshot_jpeg" or the option menu. Note that you'll need the libjpeg library DLL.

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

21 years agofix for server dying when someone times out
havoc [Thu, 3 Apr 2003 00:11:08 +0000 (00:11 +0000)]
fix for server dying when someone times out
some other cleanups (some Sys_Printf calls turned into Con_Printf, some comments added about DropClient calls)

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

21 years agofix for incorrect rounding of vertex locations when using RENDER_LOWPRECISION (now...
havoc [Wed, 2 Apr 2003 18:51:59 +0000 (18:51 +0000)]
fix for incorrect rounding of vertex locations when using RENDER_LOWPRECISION (now it always rounds to nearest)

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

21 years agocleaned up pr_builtins array (now uses NULL instead of PF_fixme) and now reports...
havoc [Wed, 2 Apr 2003 00:22:15 +0000 (00:22 +0000)]
cleaned up pr_builtins array (now uses NULL instead of PF_fixme) and now reports builtin number if an unknown builtin is called
fixed name of PF_setcolor (was setcolors)

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

21 years agofixed NET_SendToAll
havoc [Wed, 2 Apr 2003 00:20:10 +0000 (00:20 +0000)]
fixed NET_SendToAll

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

21 years agoadded some commented out code to Image_HeightmapToNormalmap explaining how to do...
havoc [Mon, 31 Mar 2003 21:46:06 +0000 (21:46 +0000)]
added some commented out code to Image_HeightmapToNormalmap explaining how to do heightmap to normalmap conversion a little bit differently (very insignificant difference, purely code for those who care)

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

21 years agoQSG_FILE removed because some mods use the old builtin numbers and think that QSG_FIL...
havoc [Mon, 31 Mar 2003 21:43:50 +0000 (21:43 +0000)]
QSG_FILE removed because some mods use the old builtin numbers and think that QSG_FILE would provide them (FRIK_FILE remains, which uses the new numbers already)

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

21 years agodlights now cast shadows in realtime lighting mode again (actually they already did...
havoc [Sun, 30 Mar 2003 19:19:06 +0000 (19:19 +0000)]
dlights now cast shadows in realtime lighting mode again (actually they already did, but it wasn't working for world, because world didn't have the shadow flag set)

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

21 years agono longer complains about missing ambient liquid sounds in nexuiz
havoc [Sun, 30 Mar 2003 19:18:05 +0000 (19:18 +0000)]
no longer complains about missing ambient liquid sounds in nexuiz

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

21 years agoremoved a couple unused hz_bitstream_read functions
havoc [Sun, 30 Mar 2003 08:40:28 +0000 (08:40 +0000)]
removed a couple unused hz_bitstream_read functions

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

21 years agofix zym model rendering (wrong vertex padding)
havoc [Sat, 29 Mar 2003 20:02:11 +0000 (20:02 +0000)]
fix zym model rendering (wrong vertex padding)

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

21 years agoElric added deflated file support for pk3 archives (in other words: compressed pk3...
havoc [Sat, 29 Mar 2003 18:58:11 +0000 (18:58 +0000)]
Elric added deflated file support for pk3 archives (in other words: compressed pk3 now work), even with FS_Seek support, I'm amazed, thanks Elric! :)

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

21 years agocorrected the misspelled name GAME_NEXIUZ (and related things) to GAME_NEXUIZ (and...
havoc [Fri, 28 Mar 2003 16:45:23 +0000 (16:45 +0000)]
corrected the misspelled name GAME_NEXIUZ (and related things) to GAME_NEXUIZ (and related things)

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

21 years agoUDP_StringToAddr did not work with less than full x.x.x.x:x specifications, now it...
havoc [Fri, 28 Mar 2003 15:47:33 +0000 (15:47 +0000)]
UDP_StringToAddr did not work with less than full x.x.x.x:x specifications, now it supports all the stuff PartialIPAddress supported (filling in most significant components with myAddr, etc)
UDP_Read and UDP_Write now log entire packets to console if developer_networking is on

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

21 years agoadd support for NAT fix in the client (by no longer checking the port a connection...
havoc [Fri, 28 Mar 2003 15:45:20 +0000 (15:45 +0000)]
add support for NAT fix in the client (by no longer checking the port a connection accepted came from)

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

21 years agoadded developer_networking cvar
havoc [Fri, 28 Mar 2003 15:43:52 +0000 (15:43 +0000)]
added developer_networking cvar

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

21 years agoThanks to faded (of the tenebrae team) for provoking me to recite a lengthy explanati...
havoc [Fri, 28 Mar 2003 13:27:15 +0000 (13:27 +0000)]
Thanks to faded (of the tenebrae team) for provoking me to recite a lengthy explanation of NAT nightmares, and realize this very simple fix for NQ server support of clients behind NAT routers (send first message from the player socket instead of the accept socket)

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

21 years agochanged behavior of SV_DropClient a bit (now calls ClientDisconnect QC function even...
havoc [Fri, 28 Mar 2003 13:24:11 +0000 (13:24 +0000)]
changed behavior of SV_DropClient a bit (now calls ClientDisconnect QC function even if crash is true, as it's the client being harshly dropped, not the server dying), and made the final svc_disconnect an unreliable message

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

21 years agorefactored NET_SendToAll, it is debatable whether it is more readable or not, but...
havoc [Fri, 28 Mar 2003 13:22:06 +0000 (13:22 +0000)]
refactored NET_SendToAll, it is debatable whether it is more readable or not, but it works the same, and is shorter, and I think it is slightly more understandable than the mess it used to be

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

21 years agonet_inetslist (and the corresponding menu as well) now work without being an active...
havoc [Fri, 28 Mar 2003 10:31:28 +0000 (10:31 +0000)]
net_inetslist (and the corresponding menu as well) now work without being an active server (dfunc.controlSock is now used for all transactions involved, and since there is always one of those...)

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

21 years agoMSG_ReadFloat now checks if the message has enough bytes for a float before trying...
havoc [Fri, 28 Mar 2003 10:29:42 +0000 (10:29 +0000)]
MSG_ReadFloat now checks if the message has enough bytes for a float before trying to decode it (why id forgot this I don't know)
added MSG_ReadBigShort, MSG_ReadBigLong, MSG_ReadBigFloat, MSG_ReadBytes
renamed MSG_ReadShort to MSG_ReadLittleShort, MSG_ReadLong to MSG_ReadLittleLong, and MSG_ReadFloat to MSG_ReadLittleFloat
added #defines for MSG_ReadShort, MSG_ReadLong, and MSG_ReadFloat to use their Little versions
optimized/cleaned up MSG_Read functions (some are now significantly shorter)

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

21 years agonet_wins.c is gone, winsock support merged into net_udp.c
havoc [Fri, 28 Mar 2003 08:37:13 +0000 (08:37 +0000)]
net_wins.c is gone, winsock support merged into net_udp.c
numerous other cleanups/changes also done to net_udp.c (to try to simplify it, hopefully work better, that kind of stuff)
support for partial IP addresses has been removed (that is you say you can't simply type 'connect 1.123' and have it expand to xxx.xxx.1.123 where xxx.xxx came from your own IP address, however hostnames still work fine)
also the automatic changing of the hostname cvar according to internet hostname has been removed, so servers will be called "UNNAMED" if they don't set it, rather than using their internet hostname

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

21 years agorenamed all net_wins.c functions to UDP instead of WINS, this allows use of net_bsd...
havoc [Fri, 28 Mar 2003 03:33:18 +0000 (03:33 +0000)]
renamed all net_wins.c functions to UDP instead of WINS, this allows use of net_bsd.c and net_udp.h instead of net_win.c and net_wins.h

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

21 years agoremoved winsock_initialized counter as there are no longer two things initializing...
havoc [Fri, 28 Mar 2003 03:23:13 +0000 (03:23 +0000)]
removed winsock_initialized counter as there are no longer two things initializing winsock (wins and wipx), only one

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

21 years agono longer dynamically loads portions of wsock32.dll (because it required static linki...
havoc [Fri, 28 Mar 2003 03:21:12 +0000 (03:21 +0000)]
no longer dynamically loads portions of wsock32.dll (because it required static linking anyway for other parts, no point)

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

21 years agoforgot to remove #include "net_wipx.h"
havoc [Fri, 28 Mar 2003 03:18:57 +0000 (03:18 +0000)]
forgot to remove #include "net_wipx.h"

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

21 years agoremoved winsock ipx support
havoc [Fri, 28 Mar 2003 03:04:44 +0000 (03:04 +0000)]
removed winsock ipx support

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

21 years agoFix for win32 dedicated servers (oh it still doesn't compile, other problems remain...
havoc [Thu, 27 Mar 2003 12:25:32 +0000 (12:25 +0000)]
Fix for win32 dedicated servers (oh it still doesn't compile, other problems remain with sys_win.c, but this one thing has been annoying me long enough)

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

21 years agoElric's pk3 support (no support for compressed files yet, that's still to come)
havoc [Thu, 27 Mar 2003 08:58:58 +0000 (08:58 +0000)]
Elric's pk3 support (no support for compressed files yet, that's still to come)

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

21 years agoElric added BuffBigLong, BuffBigShort, BuffLittleLong, and BuffLittleShort functions...
havoc [Thu, 27 Mar 2003 08:58:07 +0000 (08:58 +0000)]
Elric added BuffBigLong, BuffBigShort, BuffLittleLong, and BuffLittleShort functions intended for reading from misaligned locations in file memory buffers (these read as bytes rather than entire numbers, so memory misalignments are not a problem on Sparc and certain other CPUs)

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

21 years agoadded FRIK_FILE (aka QSG_FILE) extension, this brings string handling and text file...
havoc [Thu, 27 Mar 2003 08:04:27 +0000 (08:04 +0000)]
added FRIK_FILE (aka QSG_FILE) extension, this brings string handling and text file access to the QuakeC support (note: files go in gamedir/data/)

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