]> de.git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
19 years agonow supports Mac and Windows newlines everywhere
havoc [Tue, 25 Jan 2005 20:05:18 +0000 (20:05 +0000)]
now supports Mac and Windows newlines everywhere
all text files are now saved in UNIX format
removed FS_Gets and FS_Getline (they were only used by the loadgame code along with sscanf...  bad)
added FS_UnGetc (needed for Windows newline support in FRIK_FILE fgets)

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

19 years agofix stupid typo in GLSL shader
havoc [Tue, 25 Jan 2005 01:32:40 +0000 (01:32 +0000)]
fix stupid typo in GLSL shader

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

19 years agomade GLSL lighting work on ATI (NVIDIA was letting me use sloppier code)
havoc [Mon, 24 Jan 2005 23:36:00 +0000 (23:36 +0000)]
made GLSL lighting work on ATI (NVIDIA was letting me use sloppier code)
added more CHECKGLERROR calls during GLSL lighting rendering

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

19 years agochanged offsetmapping bias to -0.04 so that it never samples off the model skins
havoc [Mon, 24 Jan 2005 22:05:51 +0000 (22:05 +0000)]
changed offsetmapping bias to -0.04 so that it never samples off the model skins

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

19 years agoadded hacky workaround for nvidia GLSL bug (state screwups after switching back to...
havoc [Mon, 24 Jan 2005 21:51:16 +0000 (21:51 +0000)]
added hacky workaround for nvidia GLSL bug (state screwups after switching back to program 0 which go away if I draw something (even an empty Begin...End) after the switch)

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

19 years agoadded surfaceparm pointlight to known surfaceparm list
havoc [Mon, 24 Jan 2005 21:49:41 +0000 (21:49 +0000)]
added surfaceparm pointlight to known surfaceparm list

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

19 years agochanged the flat bump texture (for no bumpmap textures) to have a 128 height instead...
havoc [Mon, 24 Jan 2005 20:27:42 +0000 (20:27 +0000)]
changed the flat bump texture (for no bumpmap textures) to have a 128 height instead of 255 so it's not affected by offset mapping

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

19 years agoswitch back to program 0 when done setting up GLSL shaders
havoc [Mon, 24 Jan 2005 18:32:05 +0000 (18:32 +0000)]
switch back to program 0 when done setting up GLSL shaders

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

19 years agoadded documentation on glsl cvars to r_shadow_help
havoc [Sun, 23 Jan 2005 22:19:22 +0000 (22:19 +0000)]
added documentation on glsl cvars to r_shadow_help

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

19 years agoGLSL shader per pixel lighting implemented (with optimized permutations)
havoc [Sun, 23 Jan 2005 22:16:33 +0000 (22:16 +0000)]
GLSL shader per pixel lighting implemented (with optimized permutations)
offset mapping implemented in GLSL lighting shader (looks really cool if a little slow, enabled by default)
cleaned up some internal handling ambientscale/diffusescale/specularscale/gloss mode design issues in R_Shadow_RenderLighting

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

19 years agorearchitected renderer backend to have support for independent number of texture...
havoc [Sun, 23 Jan 2005 22:12:22 +0000 (22:12 +0000)]
rearchitected renderer backend to have support for independent number of texture image units, texture coord array units, and texture env blend units
added GL_Backend_CompileProgram and GL_Backend_FreeProgram for GLSL support

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

19 years agofixed backwards normalmaps generated from bumpmaps (... weird!), and now stores bumpm...
havoc [Sun, 23 Jan 2005 22:10:02 +0000 (22:10 +0000)]
fixed backwards normalmaps generated from bumpmaps (... weird!), and now stores bumpmap into alpha channel of normalmap for use by shaders

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

19 years agofixed blendfunc issues with single pass lighting (such as ambient pass) which were...
havoc [Sun, 23 Jan 2005 06:39:07 +0000 (06:39 +0000)]
fixed blendfunc issues with single pass lighting (such as ambient pass) which were using GL_DST_ALPHA when they shouldn't have been (fixes the 'bright shadows' issue which occurred from multiple lights in some cases)
added a usestencil variable in rtlight rendering just to make it a little more clear in the code

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

19 years agofixed scaling of cl_netlocalping cvar (it was multiplying by 1000 instead of dividing)
havoc [Sun, 23 Jan 2005 06:36:14 +0000 (06:36 +0000)]
fixed scaling of cl_netlocalping cvar (it was multiplying by 1000 instead of dividing)

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

19 years agodisable vid_vsync by default
havoc [Fri, 21 Jan 2005 07:30:09 +0000 (07:30 +0000)]
disable vid_vsync by default

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

19 years agoif hardware gamma setting fails, try to restore system gamma anyway (Windows stupidity)
havoc [Fri, 21 Jan 2005 03:34:22 +0000 (03:34 +0000)]
if hardware gamma setting fails, try to restore system gamma anyway (Windows stupidity)

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

19 years agochanged GAME_ init data to have a separate user config directory for each game type...
havoc [Fri, 21 Jan 2005 03:22:11 +0000 (03:22 +0000)]
changed GAME_ init data to have a separate user config directory for each game type (~/.darkplaces for most), and two game dirs rather than an implied id1 (so now nexuiz doesn't look for id1 for example)

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

19 years ago- Got rid of all the FILE* stuff in the FS code, relying on low-level
molivier [Wed, 19 Jan 2005 09:09:20 +0000 (09:09 +0000)]
- Got rid of all the FILE* stuff in the FS code, relying on low-level
functions exclusively. It now manages its own per-file 2KB read buffers.
Writes are no longer buffered.
- Removed function "FS_Flush" and cvar "log_sync", since they're no
longer relevant
- Package's file descriptors are now duplicated when opening a new file
inside a package, to make package substitution at run time impossible on
non-Win32 systems. Added a couple of "lseek" when necessary (before
"read" calls in "FS_Read").
- Removed unused functions "FS_Eof", "Log_Print" and "S_ClearBuffer"
- Several other minor changes and fixes in the FS code
- Changed log open mode to "a" from "at" since 't' seems a Win32-only
extension

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

19 years agoDSP files must be treated as binary files
molivier [Tue, 18 Jan 2005 10:02:18 +0000 (10:02 +0000)]
DSP files must be treated as binary files

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

19 years agodisabled HostCache_Test code because it's wrecking the server browser in each release...
havoc [Tue, 18 Jan 2005 01:38:44 +0000 (01:38 +0000)]
disabled HostCache_Test code because it's wrecking the server browser in each release build

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

19 years agonow adapts sv.num_edicts according to how many edicts are found by SV_Physics, so...
havoc [Mon, 17 Jan 2005 23:30:20 +0000 (23:30 +0000)]
now adapts sv.num_edicts according to how many edicts are found by SV_Physics, so if a lot of temporary stuff spawns and removes itself it will knock the num_edicts back down

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

19 years agoimplemented the 'don't move projectiles on first frame' hack a different way
havoc [Mon, 17 Jan 2005 23:17:31 +0000 (23:17 +0000)]
implemented the 'don't move projectiles on first frame' hack a different way

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

19 years agoreverted back to per-entity prethink-think-move-postthink process to fix mods
havoc [Mon, 17 Jan 2005 22:52:16 +0000 (22:52 +0000)]
reverted back to per-entity prethink-think-move-postthink process to fix mods

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

19 years agonow supports nextthink < 0 again... sigh
havoc [Mon, 17 Jan 2005 22:11:16 +0000 (22:11 +0000)]
now supports nextthink < 0 again... sigh

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

19 years agohush fraction out of bounds warnings in CL_SelectTraceline
havoc [Mon, 17 Jan 2005 05:35:55 +0000 (05:35 +0000)]
hush fraction out of bounds warnings in CL_SelectTraceline

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

19 years agoadded saving of particles/nexbeam.tga (commented out like the particles/particlefont...
havoc [Sat, 15 Jan 2005 02:23:51 +0000 (02:23 +0000)]
added saving of particles/nexbeam.tga (commented out like the particles/particlefont.tga saver is)

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

19 years agofixed a bug in texture generator that made all the particles too large in the particl...
havoc [Sat, 15 Jan 2005 02:11:53 +0000 (02:11 +0000)]
fixed a bug in texture generator that made all the particles too large in the particle font by one pixel (now they're smaller than their frame, like they were supposed to be), this fixes all the sharp edges on particles
changed nexbeam to be quite a bit brighter in the center than the sides (as I really wanted it all along)
nexbeam no longer scrolls its texture (looked odd)

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

19 years agonexbeam is now white and 8 units wide (rather than two beams, one 12 units and one...
havoc [Sat, 15 Jan 2005 02:09:46 +0000 (02:09 +0000)]
nexbeam is now white and 8 units wide (rather than two beams, one 12 units and one 5 units and each a different color)

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

19 years agonormalize after the CrossProduct
havoc [Sat, 15 Jan 2005 02:08:45 +0000 (02:08 +0000)]
normalize after the CrossProduct

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

19 years agofix the odd distortion on beam polygons that tends to make their end kind of vanish...
havoc [Sat, 15 Jan 2005 01:53:55 +0000 (01:53 +0000)]
fix the odd distortion on beam polygons that tends to make their end kind of vanish to a point

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

19 years agofixed a crash with lights that have no clusters (a light outside the level) by alloca...
havoc [Fri, 14 Jan 2005 23:39:47 +0000 (23:39 +0000)]
fixed a crash with lights that have no clusters (a light outside the level) by allocating the clusterpvs even if there are no clusters

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

19 years agonow skips entire rtlight rendering process if light is too dark or does not emit...
havoc [Thu, 13 Jan 2005 18:26:26 +0000 (18:26 +0000)]
now skips entire rtlight rendering process if light is too dark or does not emit any surface light - another 30% speed gain

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

19 years agomigrated push thinks back to SV_Physics_Pusher to fix a qc crash when touching a...
havoc [Thu, 13 Jan 2005 08:14:54 +0000 (08:14 +0000)]
migrated push thinks back to SV_Physics_Pusher to fix a qc crash when touching a door

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

19 years agoadded Ludwig Nussel to Thanks to section
havoc [Thu, 13 Jan 2005 07:06:19 +0000 (07:06 +0000)]
added Ludwig Nussel to Thanks to section

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

19 years agocloned and rewrote Collision_TraceLineTriangleFloat to optimize it slightly
havoc [Thu, 13 Jan 2005 07:02:00 +0000 (07:02 +0000)]
cloned and rewrote Collision_TraceLineTriangleFloat to optimize it slightly

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

19 years agoforgot a parameter to S_FreeSfx
havoc [Thu, 13 Jan 2005 06:45:34 +0000 (06:45 +0000)]
forgot a parameter to S_FreeSfx

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

19 years agono longer calls S_StopAllSounds when sound system restarts, and cleaned up a sound...
havoc [Thu, 13 Jan 2005 06:40:07 +0000 (06:40 +0000)]
no longer calls S_StopAllSounds when sound system restarts, and cleaned up a sound freeing loop (just nicer code)

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

19 years agoshuffled around some SCR_BeginLoadingPlaque calls so now SV_SpawnServer causes a...
havoc [Thu, 13 Jan 2005 06:36:57 +0000 (06:36 +0000)]
shuffled around some SCR_BeginLoadingPlaque calls so now SV_SpawnServer causes a loading plaque and ParseServerinfo only draws a loading plaque if there's no local server (which already did one), this cleans up the loading plaque management a great deal

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

19 years agobound fractions after trace code
havoc [Thu, 13 Jan 2005 06:32:29 +0000 (06:32 +0000)]
bound fractions after trace code

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

19 years agoadded S_ClearBuffer to sound.h and snd_null.c
havoc [Thu, 13 Jan 2005 06:31:30 +0000 (06:31 +0000)]
added S_ClearBuffer to sound.h and snd_null.c

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

19 years agoNetConn_Read no longer runs cl_packetloss rejection code if there is no packet (sligh...
havoc [Thu, 13 Jan 2005 06:29:28 +0000 (06:29 +0000)]
NetConn_Read no longer runs cl_packetloss rejection code if there is no packet (slight optimization/sanity improvement)
removed another SCR_BeginLoadingPlaque call

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

19 years agochanged scr_conlines to be a local variable named conlines
havoc [Thu, 13 Jan 2005 06:23:32 +0000 (06:23 +0000)]
changed scr_conlines to be a local variable named conlines
now draws fullscreen console (between levels) without altering scr_con_current

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

19 years agoremoved a SCR_BeginLoadingPlaque when starting to play a demo
havoc [Thu, 13 Jan 2005 06:21:17 +0000 (06:21 +0000)]
removed a SCR_BeginLoadingPlaque when starting to play a demo
removed clearing of scr_conlines (useless)

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

19 years agouse vid.conheight instead of scr_conlines in history scrolling
havoc [Thu, 13 Jan 2005 06:17:26 +0000 (06:17 +0000)]
use vid.conheight instead of scr_conlines in history scrolling
don't call SCR_UpdateScreen twice

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

19 years agoremove a silly scr_conlines check
havoc [Thu, 13 Jan 2005 06:13:57 +0000 (06:13 +0000)]
remove a silly scr_conlines check

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

19 years agobound the fractions in CL_TraceLine instead of posting a warning, as out of bounds...
havoc [Thu, 13 Jan 2005 06:11:38 +0000 (06:11 +0000)]
bound the fractions in CL_TraceLine instead of posting a warning, as out of bounds fractions have no harmful effects during a trace (to allow the bounds in the trace code to be removed)

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

19 years agorearranged entire SV_Physics process (which may break mods but I hope not!):
havoc [Thu, 13 Jan 2005 06:07:23 +0000 (06:07 +0000)]
rearranged entire SV_Physics process (which may break mods but I hope not!):
each operation (move, prethink, think, postthink) is now a separate stage (as an optimization mainly)
moves are now done before prethinks, thinks, and postthinks so that think-spawned entities do not move on their first frame (this fixes the issue that all projectiles appeared some distance from the player, dependent on server framerate, so rocket trails and other things look correct)
added a relink of any entity that moves for any reason (just an origin compare), not sure if this is a good idea but it is more consistent

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

19 years agochanged numskins to 1 on q1bsp and q3bsp and numframes to 2 on q3bsp, to suppress...
havoc [Thu, 13 Jan 2005 06:01:58 +0000 (06:01 +0000)]
changed numskins to 1 on q1bsp and q3bsp and numframes to 2 on q3bsp, to suppress some network warnings about non-existent frames/skins

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

19 years agono longer kicks off client if it got signon 1 twice during a reconnect (not sure...
havoc [Thu, 13 Jan 2005 06:00:45 +0000 (06:00 +0000)]
no longer kicks off client if it got signon 1 twice during a reconnect (not sure why this happens occasionally though)

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

19 years agoslight optimization to CL_RelinkNetworkEntities to scan entities faster
havoc [Thu, 13 Jan 2005 05:58:56 +0000 (05:58 +0000)]
slight optimization to CL_RelinkNetworkEntities to scan entities faster

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

19 years agooptimizations to CL_SelectTraceLine to scan entity list faster
havoc [Thu, 13 Jan 2005 05:57:41 +0000 (05:57 +0000)]
optimizations to CL_SelectTraceLine to scan entity list faster

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

19 years agodon't generate vertex/normal/tangents until they are needed by lighting passes, this...
havoc [Thu, 13 Jan 2005 05:55:46 +0000 (05:55 +0000)]
don't generate vertex/normal/tangents until they are needed by lighting passes, this greatly improved framerates in nexuiz because a lot of models were having nothing to draw (apparently), perhaps their light color was black (odd...)

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

19 years ago-Now the Nex weapon list works correctly again.
black [Tue, 11 Jan 2005 14:47:49 +0000 (14:47 +0000)]
-Now the Nex weapon list works correctly again.

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

19 years ago-The NEXUIZ_PLAYERMODEL is not game specific anymore.
black [Tue, 11 Jan 2005 14:33:39 +0000 (14:33 +0000)]
-The NEXUIZ_PLAYERMODEL is not game specific anymore.
-A small cosmetic change to the Nex weapon list code.

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

19 years ago- Sys_LoadLibrary now accepts several possible names for a DLL (it fixes
molivier [Sun, 9 Jan 2005 09:07:08 +0000 (09:07 +0000)]
- Sys_LoadLibrary now accepts several possible names for a DLL (it fixes
the PK3 and Vorbis supports on NetBSD)
- Added a check for absolute paths in FS_CheckNastyPath
- Moved "COM_Shutdown" after "Log_Close" in the shutdown process to make
sure the FS code is still active when we close the log file
- Factorized some code in the FS module
- Made the "listdirectory" parameter "const"
- Fixed a warning in "prvm_cmds.c" when compiling with GCC

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

19 years agoadded #include "snd_main.h" to make this compile again (thanks to Ludwig Nussel for...
havoc [Fri, 7 Jan 2005 12:20:58 +0000 (12:20 +0000)]
added #include "snd_main.h" to make this compile again (thanks to Ludwig Nussel for the patch)

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

19 years agochanged libz.so to libz.so.1, libvorbis.so to libvorbis.so.0, and libvorbisfile.so...
havoc [Fri, 7 Jan 2005 12:19:03 +0000 (12:19 +0000)]
changed libz.so to libz.so.1, libvorbis.so to libvorbis.so.0, and libvorbisfile.so to libvorbisfile.so.3 (thanks to Ludwig Nussel for the patch)

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

19 years agothanks to Ludwig Nussel for this patch to add ~/.darkplaces support for non-Windows...
havoc [Fri, 7 Jan 2005 11:52:43 +0000 (11:52 +0000)]
thanks to Ludwig Nussel for this patch to add ~/.darkplaces support for non-Windows users

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

19 years agoswapped order of incr/decr renders for static shadow volumes (for some reason I had...
havoc [Thu, 6 Jan 2005 13:31:31 +0000 (13:31 +0000)]
swapped order of incr/decr renders for static shadow volumes (for some reason I had decr first, then incr, doesn't matter since they don't clamp but looks odd in the code)
remove quotes on cubemap names in .rtlights file loader (forgot to commit this previously)

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

19 years agoCleaned up alot more memory leaks. (still get 720 leaks just running demo1.dem)
tomaz [Mon, 3 Jan 2005 15:47:00 +0000 (15:47 +0000)]
Cleaned up alot more memory leaks. (still get 720 leaks just running demo1.dem)

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

19 years agoFixed a warning about an uninitialized variable
molivier [Mon, 3 Jan 2005 14:22:35 +0000 (14:22 +0000)]
Fixed a warning about an uninitialized variable

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

19 years agoAdded S_Terminate to free all sound resources at shutdown
molivier [Mon, 3 Jan 2005 14:20:56 +0000 (14:20 +0000)]
Added S_Terminate to free all sound resources at shutdown

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

19 years agoAdded CL_Shutdown which took care of 14 memory leaks totaling over 30mb. (needs more...
tomaz [Sat, 1 Jan 2005 21:52:27 +0000 (21:52 +0000)]
Added CL_Shutdown which took care of 14 memory leaks totaling over 30mb. (needs more added to it)

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

19 years ago-Added 2 builtins to make the hostcache stuff easier extensible.
black [Sat, 1 Jan 2005 19:00:33 +0000 (19:00 +0000)]
-Added 2 builtins to make the hostcache stuff easier extensible.
 More to follow soon.
-Cmd now has a shutdown function so it doesnt leak anything (hopefully).

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

19 years ago-Changed the name of PingTest to Test (it now also adds a name to the entry)
black [Tue, 28 Dec 2004 22:29:45 +0000 (22:29 +0000)]
-Changed the name of PingTest to Test (it now also adds a name to the entry)
-Now the test function is enabled by default (just so Vermeulen can play around
 with it) - there shouldnt be any conflicts with real servers since I shift the
 ping of all emulated servers by 250 ms.

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

19 years ago-Fixed a minor bug in ResetMasks.
black [Tue, 28 Dec 2004 16:27:50 +0000 (16:27 +0000)]
-Fixed a minor bug in ResetMasks.

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

19 years ago-Added support for 10 hostcache masks, which will be at the same time.
black [Mon, 27 Dec 2004 16:54:32 +0000 (16:54 +0000)]
-Added support for 10 hostcache masks, which will be at the same time.
 5 will be concatenated with AND and the other 5 with OR, so you'll have
 plenty of possibilities to mask whatever you want.
-Changed the mask structure and function to be a bit more generic.
-Added 3 new comparison operators (NOTEQUAL, CONTAINS and NOTCONTAIN - the
 latter two for strings)
-Adapted the builtins to work with multiple masks.

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

19 years ago-Added a couple of VM builtins.
black [Sun, 26 Dec 2004 15:39:47 +0000 (15:39 +0000)]
-Added a couple of VM builtins.

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

19 years agoUpdated email address in readme. (thanks to zarquon for pointing out that it was...
havoc [Sat, 25 Dec 2004 23:53:10 +0000 (23:53 +0000)]
Updated email address in readme. (thanks to zarquon for pointing out that it was outdated)

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

19 years agochanged r_bloom_resolution behavior to have a non-square texture to match the view...
havoc [Thu, 23 Dec 2004 00:18:03 +0000 (00:18 +0000)]
changed r_bloom_resolution behavior to have a non-square texture to match the view width/height aspect
changed default r_bloom_resolution from 256 to 320
changed r_bloom_blur to adapt to resolutions (using 320 as a base value - blur 8 is 8 pixel blur at resolution 320, 16 pixel blur at 640, etc)

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

19 years ago-Fixed a wrong parameter type in netconn.
black [Wed, 22 Dec 2004 23:10:20 +0000 (23:10 +0000)]
-Fixed a wrong parameter type in netconn.
-Made hostcache_cachecount public again.
-Added altstr_set to the new VM.
-Started work on the new hostcache interface for the menu qc.

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

19 years agodon't send a bunch of svc_precache messages in the serverinfo packet (no longer produ...
havoc [Wed, 22 Dec 2004 18:19:59 +0000 (18:19 +0000)]
don't send a bunch of svc_precache messages in the serverinfo packet (no longer produces svc_precache messages if server state is ss_loading)

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

19 years ago-Fixed the binary insert in the hostcache.
black [Wed, 22 Dec 2004 15:43:39 +0000 (15:43 +0000)]
-Fixed the binary insert in the hostcache.
-Fixed a bug in the old menu's serverlist.

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

19 years agosome cleaning of the hostcache code
havoc [Wed, 22 Dec 2004 00:12:47 +0000 (00:12 +0000)]
some cleaning of the hostcache code
made the binary search insert loop actually do something

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

19 years ago334
havoc [Tue, 21 Dec 2004 22:26:26 +0000 (22:26 +0000)]
334

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

19 years ago-Fixed a minor bug in the mask function
black [Tue, 21 Dec 2004 21:53:22 +0000 (21:53 +0000)]
-Fixed a minor bug in the mask function

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

19 years ago-Added a new hostcache interface:
black [Tue, 21 Dec 2004 21:41:58 +0000 (21:41 +0000)]
-Added a new hostcache interface:
 * Ascending und descending sorting by various fields is supported.
 * Its possible to mask entries (substrings or comparisons for numbers).

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

19 years agofixed up a number of nudging bugs in Collision_TraceLineTriangleFloat
havoc [Tue, 21 Dec 2004 16:51:43 +0000 (16:51 +0000)]
fixed up a number of nudging bugs in Collision_TraceLineTriangleFloat

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

19 years agosome cleanup and hopefully improved accuracy
havoc [Tue, 21 Dec 2004 16:48:37 +0000 (16:48 +0000)]
some cleanup and hopefully improved accuracy

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

19 years agocolormod now works
havoc [Mon, 20 Dec 2004 20:50:41 +0000 (20:50 +0000)]
colormod now works

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

19 years agosave seta cvars with the seta command, and normal ones without it
havoc [Mon, 20 Dec 2004 20:00:46 +0000 (20:00 +0000)]
save seta cvars with the seta command, and normal ones without it

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

19 years ago- Fixed JPEG support on Mac OS X
molivier [Mon, 20 Dec 2004 09:58:41 +0000 (09:58 +0000)]
- Fixed JPEG support on Mac OS X
- Fixed Ogg Vorbis support on Mac OS X (the vorbis DLL is now also loaded manually since some OSes don't do that for us)
- Fixed loading of MD3 models on big-endian CPUs

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

19 years ago-Fixed a "bug" in PRVM_iscachedpic - it always returned true and thus no
black [Sun, 19 Dec 2004 22:55:00 +0000 (22:55 +0000)]
-Fixed a "bug" in PRVM_iscachedpic - it always returned true and thus no
 images were precached (now it always returns false and the menu halts for
 ~4 seconds after starting)

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

19 years ago-Added the cvar sv_progs, which allows you to set the name of the server
black [Sun, 19 Dec 2004 14:40:34 +0000 (14:40 +0000)]
-Added the cvar sv_progs, which allows you to set the name of the server
 progs file.

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

19 years ago332
tomaz [Sun, 19 Dec 2004 02:12:08 +0000 (02:12 +0000)]
332

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

19 years ago334
havoc [Sun, 19 Dec 2004 02:10:00 +0000 (02:10 +0000)]
334

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

19 years agoProjects for win32 dedicated and win32 SDL builds.
tomaz [Sun, 19 Dec 2004 02:03:49 +0000 (02:03 +0000)]
Projects for win32 dedicated and win32 SDL builds.

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

19 years agoRemove this file
tomaz [Sun, 19 Dec 2004 01:27:50 +0000 (01:27 +0000)]
Remove this file

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

19 years agoGLX mode now supports GLX_SGI_swap_control for vid_vsync
havoc [Sun, 19 Dec 2004 01:09:34 +0000 (01:09 +0000)]
GLX mode now supports GLX_SGI_swap_control for vid_vsync

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

19 years agoAdding a MSVC6 project file to build the win32 darkplaces-dedicated.
tomaz [Sun, 19 Dec 2004 01:08:32 +0000 (01:08 +0000)]
Adding a MSVC6 project file to build the win32 darkplaces-dedicated.

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

19 years agofixed misnamed variables
havoc [Sun, 19 Dec 2004 01:02:07 +0000 (01:02 +0000)]
fixed misnamed variables

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

19 years agoremoved videosync code from timedemo
havoc [Sun, 19 Dec 2004 00:48:33 +0000 (00:48 +0000)]
removed videosync code from timedemo

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

19 years agoVID_Finish in WGL now turns off videosync during timedemos
havoc [Sun, 19 Dec 2004 00:47:26 +0000 (00:47 +0000)]
VID_Finish in WGL now turns off videosync during timedemos

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

19 years ago-CL_Video now allows multiple streams again. It is registered as a r_module
black [Sat, 18 Dec 2004 23:59:46 +0000 (23:59 +0000)]
-CL_Video now allows multiple streams again. It is registered as a r_module
 now and automatically restores the textures on r_restart.

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

19 years ago338
tomaz [Sat, 18 Dec 2004 21:31:29 +0000 (21:31 +0000)]
338

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

19 years ago338
tomaz [Sat, 18 Dec 2004 21:20:51 +0000 (21:20 +0000)]
338

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

19 years agoFixed the sys_ticrate bounds checking, it was constantly setting it to 0.1 when it...
tomaz [Sat, 18 Dec 2004 21:17:47 +0000 (21:17 +0000)]
Fixed the sys_ticrate bounds checking, it was constantly setting it to 0.1 when it is already 0.1

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

19 years agoDisabled vsync when doing a timedemo.
tomaz [Sat, 18 Dec 2004 20:18:27 +0000 (20:18 +0000)]
Disabled vsync when doing a timedemo.

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

19 years ago-Castrated the new CL_Video subsystem. It doesnt allow more than 1 video
black [Sat, 18 Dec 2004 11:22:10 +0000 (11:22 +0000)]
-Castrated the new CL_Video subsystem. It doesnt allow more than 1 video
 stream at a time again. I've moved the texture pool stuff into OpenVideo
 and CloseVideo, so it should work exactly like the old code.

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

19 years ago- Fixed PK3 support for Mac OS X
molivier [Sat, 18 Dec 2004 08:12:38 +0000 (08:12 +0000)]
- Fixed PK3 support for Mac OS X
- DP no longer considers empty PK3s as invalid

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