]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
21 years agoSbar_UpdateScoreboard was totally unused in quake, it's history (as are the arrays...
havoc [Mon, 9 Jun 2003 04:19:09 +0000 (04:19 +0000)]
Sbar_UpdateScoreboard was totally unused in quake, it's history (as are the arrays it used)

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

21 years agofix a couple EDICT_NUM errors that often happened when loading savegames with more...
havoc [Sun, 8 Jun 2003 05:47:20 +0000 (05:47 +0000)]
fix a couple EDICT_NUM errors that often happened when loading savegames with more than 256 entities

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

21 years agocleaned up Host_Error a bit
havoc [Sun, 8 Jun 2003 05:43:44 +0000 (05:43 +0000)]
cleaned up Host_Error a bit

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

21 years agofix SOLID_BSP with non-BSP model error that can occur after a Host_Error (fixed by...
havoc [Sun, 8 Jun 2003 05:42:58 +0000 (05:42 +0000)]
fix SOLID_BSP with non-BSP model error that can occur after a Host_Error (fixed by using Mod_CheckLoaded)

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

21 years agoKRIMZON_SV_PARSECLIENTCOMMAND extension (untested currently!)
havoc [Sat, 7 Jun 2003 19:21:07 +0000 (19:21 +0000)]
KRIMZON_SV_PARSECLIENTCOMMAND extension (untested currently!)

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

21 years agono longer uses -Werror on exe builds
havoc [Sat, 7 Jun 2003 19:20:06 +0000 (19:20 +0000)]
no longer uses -Werror on exe builds

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

21 years agofix an uninitialized variable warning in win32
havoc [Sat, 7 Jun 2003 19:19:16 +0000 (19:19 +0000)]
fix an uninitialized variable warning in win32

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

21 years agofixed forged packet identification to only care about address (not port) and do so...
havoc [Wed, 4 Jun 2003 19:26:35 +0000 (19:26 +0000)]
fixed forged packet identification to only care about address (not port) and do so in a cleaner way than before

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

21 years agoadded support for gl_mesh_copyarrays 0 mode in most shaders
havoc [Wed, 4 Jun 2003 19:24:41 +0000 (19:24 +0000)]
added support for gl_mesh_copyarrays 0 mode in most shaders

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

21 years agofixed a bunch of signed/unsigned mismatch warnings in newer gcc versions (mostly...
havoc [Wed, 4 Jun 2003 19:22:31 +0000 (19:22 +0000)]
fixed a bunch of signed/unsigned mismatch warnings in newer gcc versions (mostly related to size_t being unsigned)

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

21 years agofixed bug that used bmodel collision geometry on non-SOLID_BSP entities (thanks to...
havoc [Tue, 3 Jun 2003 05:18:04 +0000 (05:18 +0000)]
fixed bug that used bmodel collision geometry on non-SOLID_BSP entities (thanks to FrikaC for reporting this bug)

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

21 years agogot rid of my attempts to delay sending the ServerInfo packet until the first message...
havoc [Wed, 28 May 2003 13:57:47 +0000 (13:57 +0000)]
got rid of my attempts to delay sending the ServerInfo packet until the first message from the client, because the ServerInfo packet is already handled by the quake reliable message system and thus will be re-sent multiple times...  back to the drawing board on my attempts to fix quake through NAT routers

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

21 years agoapparently -Werr isn't valid in gcc3.2, so switch to -Werror
havoc [Wed, 28 May 2003 02:00:46 +0000 (02:00 +0000)]
apparently -Werr isn't valid in gcc3.2, so switch to -Werror

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

21 years ago2D art can now be drawn using vertex pointers
havoc [Mon, 26 May 2003 18:58:16 +0000 (18:58 +0000)]
2D art can now be drawn using vertex pointers

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

21 years agoadded back -Werr so warnings are errors
havoc [Mon, 26 May 2003 18:57:25 +0000 (18:57 +0000)]
added back -Werr so warnings are errors

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

21 years agofix some warnings I kept forgetting
havoc [Mon, 26 May 2003 18:52:04 +0000 (18:52 +0000)]
fix some warnings I kept forgetting

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

21 years agoremoved directional shading on explosions because it was a nuisance to maintain ...
havoc [Mon, 26 May 2003 18:20:52 +0000 (18:20 +0000)]
removed directional shading on explosions because it was a nuisance to maintain (and strangely they seem to look better now)
explosion rendering now supports gl_mesh_copyarrays 0

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

21 years agofix a warning caused by the fact vertex pointers are now const
havoc [Mon, 26 May 2003 18:18:59 +0000 (18:18 +0000)]
fix a warning caused by the fact vertex pointers are now const

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

21 years agovertex pointers are now const
havoc [Mon, 26 May 2003 18:17:48 +0000 (18:17 +0000)]
vertex pointers are now const

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

21 years agoadded R_ScrollTexCoord2f (copies while texture coordinates with an offset)
havoc [Mon, 26 May 2003 16:35:14 +0000 (16:35 +0000)]
added R_ScrollTexCoord2f (copies while texture coordinates with an offset)
added multitexture path to skysphere rendering (10% speed gain) and modified combine setup in gl_backend to support GL_INTERPOLATE_ARB behaving like GL_DECAL
added support for gl_mesh_copyarrays 0 mode in skysphere rendering (1% speed gain)

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

21 years agofixed realtime lighting bugs with gl_mesh_batching 1 (... by not using batching while...
havoc [Mon, 26 May 2003 13:25:59 +0000 (13:25 +0000)]
fixed realtime lighting bugs with gl_mesh_batching 1 (... by not using batching while rendering realtime lighting - I was unable to figure out what was causing the problem)
some cleanups to realtime lighting code (mostly fixing some bugs with incorrect counting of meshes/triangles (for r_speeds reports), and optimized out unnecessary vertex copying in the final lighting application pass)

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

21 years agono longer uses R_Shadow_VertexBuffer, instead uses aliasvert_vertex3f
havoc [Mon, 26 May 2003 13:23:27 +0000 (13:23 +0000)]
no longer uses R_Shadow_VertexBuffer, instead uses aliasvert_vertex3f

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

21 years agofixed connection process again
havoc [Mon, 26 May 2003 01:01:36 +0000 (01:01 +0000)]
fixed connection process again
added developer prints for changes to sendserverinfo

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

21 years agofix an unused variable warning
havoc [Sun, 25 May 2003 22:47:36 +0000 (22:47 +0000)]
fix an unused variable warning

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

21 years agosome cleanups to hostcache (got rid of driver/address stuff and expanded the strings...
havoc [Sun, 25 May 2003 22:46:31 +0000 (22:46 +0000)]
some cleanups to hostcache (got rid of driver/address stuff and expanded the strings, also increased number of cache slots)
connecting to a server is now much more direct (does not use hostcache)
now ignores the address string received in server info packets because it's often bogus in dp (sorry...  but not really avoidable)
slist reports now include the address of the server (useful!!) and are much wider (79 characters) to give more room for info
the NOROUTINGFIX option has been kind of merged away, whether the server uses it or not is still optional (search for routing fix)

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

21 years agono longer needed (makefile does it all now)
havoc [Sun, 25 May 2003 22:38:29 +0000 (22:38 +0000)]
no longer needed (makefile does it all now)

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

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