]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
20 years agocleaned up rtlight handling, merging most code between world rtlights and dlights...
havoc [Mon, 1 Mar 2004 01:58:02 +0000 (01:58 +0000)]
cleaned up rtlight handling, merging most code between world rtlights and dlights (which now could conceivably be compiled if static)
moved R_ShadowVolumeLighting to r_shadow.c
added RENDER_LIGHT flag to entity_render_t to make rtlighting optional per entity

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

20 years agoforgot to commit this as part of the SV_TouchAreaGrid fix
havoc [Mon, 1 Mar 2004 01:54:54 +0000 (01:54 +0000)]
forgot to commit this as part of the SV_TouchAreaGrid fix

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

20 years agofixed SV_TouchAreaGrid to not crash if SV_IncreaseEdicts is called during a touch...
havoc [Mon, 1 Mar 2004 01:46:35 +0000 (01:46 +0000)]
fixed SV_TouchAreaGrid to not crash if SV_IncreaseEdicts is called during a touch function, by making a list of edicts to touch and then running through the list afterward

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

20 years agosafety checked lightmap access in Mod_Q1BSP_RecursiveLightPoint as one map Sajt uses...
havoc [Mon, 1 Mar 2004 01:29:43 +0000 (01:29 +0000)]
safety checked lightmap access in Mod_Q1BSP_RecursiveLightPoint as one map Sajt uses was crashing, it now rounds off coords to be inside the lightmap

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

20 years agodefault a few cvars accordingly for GAME_TENEBRAE mode
havoc [Sat, 28 Feb 2004 15:41:43 +0000 (15:41 +0000)]
default a few cvars accordingly for GAME_TENEBRAE mode

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

20 years agosupport angles on light entities
havoc [Sat, 28 Feb 2004 15:18:21 +0000 (15:18 +0000)]
support angles on light entities

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

20 years agosupport skin and pflags in light entity loader
havoc [Sat, 28 Feb 2004 15:15:55 +0000 (15:15 +0000)]
support skin and pflags in light entity loader

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

20 years agoPF_traceline/PF_tracebox can now use world as the edict
havoc [Thu, 26 Feb 2004 19:28:15 +0000 (19:28 +0000)]
PF_traceline/PF_tracebox can now use world as the edict

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

20 years agomade the static light built message a dprint
havoc [Thu, 26 Feb 2004 19:25:38 +0000 (19:25 +0000)]
made the static light built message a dprint

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

20 years agoTEU uses teu.rc, not quake.rc
havoc [Thu, 26 Feb 2004 02:06:11 +0000 (02:06 +0000)]
TEU uses teu.rc, not quake.rc

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

20 years agorenamed brush model pvs stuff to be in brush struct instead of brushq1 and brushq3...
havoc [Wed, 25 Feb 2004 18:42:31 +0000 (18:42 +0000)]
renamed brush model pvs stuff to be in brush struct instead of brushq1 and brushq3 structs

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

20 years agoMOVETYPE_BOUNCE change: an explosion above gibs will now cause them to bounce into...
havoc [Wed, 25 Feb 2004 18:41:19 +0000 (18:41 +0000)]
MOVETYPE_BOUNCE change: an explosion above gibs will now cause them to bounce into the air, rather than skidding to a halt immediately like they were doing

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

20 years agoenable MOVE_ values on PF_tracebox (already enabled on PF_traceline)
havoc [Wed, 25 Feb 2004 12:42:41 +0000 (12:42 +0000)]
enable MOVE_ values on PF_tracebox (already enabled on PF_traceline)

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

20 years agofixed black fullbrights on models in realtime mode
havoc [Tue, 24 Feb 2004 17:10:27 +0000 (17:10 +0000)]
fixed black fullbrights on models in realtime mode

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

20 years agofixed GL_Scissor call in rtlight code (apparently I need to feed it a top to bottom...
havoc [Sun, 22 Feb 2004 18:56:51 +0000 (18:56 +0000)]
fixed GL_Scissor call in rtlight code (apparently I need to feed it a top to bottom rectangle... ?  must be something weird in the transform math as GL uses bottom to top)
made q1bsp and q3bsp a little more alike (regarding pvs clusters), now q3bsp has all the same pvs cluster fields as q3bsp
added fake lightgrid and pvs data to q3bsp loading when map is unlit or unvised respectively, this should improve internal consistency

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

20 years agoallow "rate" command to be executed on server when sent from client
havoc [Sun, 22 Feb 2004 17:09:13 +0000 (17:09 +0000)]
allow "rate" command to be executed on server when sent from client

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

20 years agofixed a possible crash in R_DrawCoronas (it was using rd->origin where it should...
havoc [Sun, 22 Feb 2004 06:48:42 +0000 (06:48 +0000)]
fixed a possible crash in R_DrawCoronas (it was using rd->origin where it should have used wl->origin)

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

20 years agocleaned up R_RenderView setup code a bit, and shuffled SCR_CalcRefdef stuff to SCR_Up...
havoc [Sat, 21 Feb 2004 21:05:21 +0000 (21:05 +0000)]
cleaned up R_RenderView setup code a bit, and shuffled SCR_CalcRefdef stuff to SCR_UpdateScreen
scissor is now on during all of R_RenderView (including rtlight portions), and GL_Scissor is used to set it instead of direct qglScissor calls, also GL_ScissorTest is used
r_farclip is now calculated without need for... just about anything, this allowed shuffling the setup code around a bit
various cleanups to allow multiple view renders per frame
added scr_zoomwindow cvars to do a (silly) zoomed view picture-in-picture overlay, it works but turned out useless in playtesting unless you want to stare at a shambler's chest... ugh
R_AnimateLight and R_BuildLightList merged to become R_UpdateLights
some setup code from R_RenderView became a new function R_UpdateWorld
GL_SetupView_ViewPort calls replaced by qglViewport calls, as it was a mostly useless wrapper

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

20 years agotimedemo now also prints min/avg/max fps
havoc [Sat, 21 Feb 2004 14:19:26 +0000 (14:19 +0000)]
timedemo now also prints min/avg/max fps

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

20 years agoadded rate limiting to player setup menu
havoc [Sat, 21 Feb 2004 12:51:19 +0000 (12:51 +0000)]
added rate limiting to player setup menu

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

20 years agorate limited networking ("rate" command in client console, limited by sv_maxrate...
havoc [Sat, 21 Feb 2004 11:58:08 +0000 (11:58 +0000)]
rate limited networking ("rate" command in client console, limited by sv_maxrate cvar on server), also cleaned up some of the MAX_DATAGRAM and similar defines (now only uses NET_MAXMESSAGE)

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

20 years agocl_fakelocalping cvars now produce the specified ping time (rather than twice it...
havoc [Sat, 21 Feb 2004 07:43:37 +0000 (07:43 +0000)]
cl_fakelocalping cvars now produce the specified ping time (rather than twice it) by lagging each way only 50% of the requested ping

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

20 years agoremove unused stripextension code
havoc [Sat, 21 Feb 2004 07:39:41 +0000 (07:39 +0000)]
remove unused stripextension code

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

20 years agomoved light matrix generation out of the render code and into the light creation...
havoc [Sat, 21 Feb 2004 07:37:36 +0000 (07:37 +0000)]
moved light matrix generation out of the render code and into the light creation code (rtlight and dlight setup) to save time and simplify things
rtlights and dlights now have an orientation matrix (this allows cubemaps to be rotated)
rtlights can now have corona flares, and it is adjustable per light (also on dlights)
r_coronas cvar now controls corona intensity, and menu now has r_coronas slider instead of checkbox
dlights now have color[]/radius settings instead of just colored intensity, so the radius can be independently controlled again (this mainly improves realtime dlight behaviors)
dlights can now have cubemaps, light styles, optional shadows (rather than always on), and better color/radius settings (and all this is tenebrae compatible) using the light_lev, color, style, skin (cubemap number, only available if modelindex is 0), and pflags (1 is no shadow, 2 is draw corona which is ignored by darkplaces because it always draws a corona) fields in the quakec entities
now supports tenebrae dlight fields (light_lev, color, style, pflags), this means dlights can now have cubemaps (skin, only used if modelindex is 0), light style (style), color (color) and radius (light_lev) with more precision than glow_ fields, and pflags (flag 1 is no shadow, flag 2 is corona which is ignored because dlights always have a corona in darkplaces), also loads tenebrae mods
added TENEBRAE_GFX_DLIGHTS extension

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

20 years agofixed loading of replacement frame images (it was stripping the .spr extension, weird...
havoc [Fri, 20 Feb 2004 17:04:03 +0000 (17:04 +0000)]
fixed loading of replacement frame images (it was stripping the .spr extension, weird), and reduced spr internal image handling code a bit by using a second alpha palette

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

20 years agoupgraded Image_CopyMux to be able to output constant byte values as well as indexed...
havoc [Fri, 20 Feb 2004 16:31:03 +0000 (16:31 +0000)]
upgraded Image_CopyMux to be able to output constant byte values as well as indexed components

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

20 years agopossible improvement to infinite perspective matrix generation
havoc [Fri, 20 Feb 2004 16:15:40 +0000 (16:15 +0000)]
possible improvement to infinite perspective matrix generation

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

20 years agoremove the exec default.cfg call from the reset to defaults, I have no idea why it...
havoc [Fri, 20 Feb 2004 02:50:18 +0000 (02:50 +0000)]
remove the exec default.cfg call from the reset to defaults, I have no idea why it was there

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

20 years agoimproved error message for missing cubemap images, no longer complains during cubemap...
havoc [Wed, 18 Feb 2004 14:46:06 +0000 (14:46 +0000)]
improved error message for missing cubemap images, no longer complains during cubemap loading, as long as one or more sides are found

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

20 years agonow loads each cubemap only once, no matter how many lights use it
havoc [Wed, 18 Feb 2004 14:37:36 +0000 (14:37 +0000)]
now loads each cubemap only once, no matter how many lights use it

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

20 years agocubemap filters for rtlights are now supported
havoc [Wed, 18 Feb 2004 14:06:38 +0000 (14:06 +0000)]
cubemap filters for rtlights are now supported

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

20 years agoadded gl_lightmaps cvar (for looking at the raw lightmaps in the map without textures)
havoc [Wed, 18 Feb 2004 10:32:06 +0000 (10:32 +0000)]
added gl_lightmaps cvar (for looking at the raw lightmaps in the map without textures)
added r_shadow_realtime_world_lightmaps cvar (turn on/off lightmaps in r_shadow_realtime_world mode, also can be a fraction to control brightness)

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

20 years agofix some warnings
havoc [Wed, 18 Feb 2004 10:29:30 +0000 (10:29 +0000)]
fix some warnings

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

20 years agoreduced size of viewblend triangle from 64000 units to 64 units, in hopes of curing...
havoc [Tue, 17 Feb 2004 02:13:34 +0000 (02:13 +0000)]
reduced size of viewblend triangle from 64000 units to 64 units, in hopes of curing precision problems on some graphics cards (NVIDIA and ATI both) causing a missing line on the blend

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

20 years agoForgot to add a couple of return statements to a switch block.
black [Thu, 12 Feb 2004 16:50:06 +0000 (16:50 +0000)]
Forgot to add a couple of return statements to a switch block.

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

20 years agoFixed: Removed not needed variable.
black [Wed, 11 Feb 2004 18:56:43 +0000 (18:56 +0000)]
Fixed: Removed not needed variable.

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

20 years agoAdded some menu builtins and changed VM_registercvar (it takes one parameter more...
black [Wed, 11 Feb 2004 17:43:27 +0000 (17:43 +0000)]
Added some menu builtins and changed VM_registercvar (it takes one parameter more now).

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

20 years agoAdded automatic unloading of unused sounds. The "silentlymissing" boolean is now...
molivier [Wed, 11 Feb 2004 07:25:20 +0000 (07:25 +0000)]
Added automatic unloading of unused sounds. The "silentlymissing" boolean is now part of a flags bit field in the "sfx_t" structure.

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

20 years agoCommented out some unused static functions in "ui.c" to get rid of GCC warnings
molivier [Wed, 11 Feb 2004 07:22:09 +0000 (07:22 +0000)]
Commented out some unused static functions in "ui.c" to get rid of GCC warnings

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

20 years agoUpdated the MinGW note according to the new makefiles
molivier [Wed, 11 Feb 2004 07:20:58 +0000 (07:20 +0000)]
Updated the MinGW note according to the new makefiles

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

20 years agoI forgot to add the new sound functions to "snd_null.c"
molivier [Wed, 11 Feb 2004 07:20:15 +0000 (07:20 +0000)]
I forgot to add the new sound functions to "snd_null.c"

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

20 years agochange joystick key numbers to start at 768 instead of 1024 (this gives 512 keys...
havoc [Tue, 10 Feb 2004 21:09:57 +0000 (21:09 +0000)]
change joystick key numbers to start at 768 instead of 1024 (this gives 512 keys, 256 mouse, 256 joystick)
enlarge various key arrays to hold 1024 keys

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

20 years agocorrections and additions
havoc [Tue, 10 Feb 2004 20:54:54 +0000 (20:54 +0000)]
corrections and additions

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

20 years agorecalculate farclip immediately before rendering, instead of from the previous frame...
havoc [Tue, 10 Feb 2004 20:54:20 +0000 (20:54 +0000)]
recalculate farclip immediately before rendering, instead of from the previous frame, cures some quick turn glitches

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

20 years agoThe mouse buttons now use the range 512 - 1023 and the joystick/aux stuff starts...
black [Tue, 10 Feb 2004 16:03:44 +0000 (16:03 +0000)]
The mouse buttons now use the range 512 - 1023 and the joystick/aux stuff starts at 1024. I **hope** this won't be changed as I've just fixed the msys.qc.

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

20 years agoAdded a couple of function skeletons for the automatic unloading of unused sounds...
molivier [Tue, 10 Feb 2004 07:14:03 +0000 (07:14 +0000)]
Added a couple of function skeletons for the automatic unloading of unused sounds (coming very soon). Removed the empty functions S_BeginPrecaching, S_EndPrecaching and S_ClearPrecache. I broke the "silentlymissing" sound flag recently, it could be set even if the sound was successfully loaded (this flag doesn't seem to be used in any active part of the code, but until I sort this out it's better to have it right); anyhow it's fixed now. Switched "silentlymissing"'s type to "qboolean" in the process. Fixed an implicit conversion warning when calling Sys_Sleep in MSVC6.

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

20 years agoThe test used in the FS_Read function to detect the end of a compressed file was...
molivier [Mon, 9 Feb 2004 09:26:45 +0000 (09:26 +0000)]
The test used in the FS_Read function to detect the end of a compressed file was incorrect, causing some big files to be truncated when unzipped. Many thanks to Fuh for poiting out this mistake to me

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

20 years agofix a particle trail bug with freshly spawned entities that leave a trail, I don...
havoc [Mon, 9 Feb 2004 07:08:45 +0000 (07:08 +0000)]
fix a particle trail bug with freshly spawned entities that leave a trail, I don't really understand how this bug happens (or why it doesn't happen all the time), but it is fixed

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

20 years agochanged shader parsing to use strcasecmp just incase some shader has a weird case...
havoc [Mon, 9 Feb 2004 05:50:53 +0000 (05:50 +0000)]
changed shader parsing to use strcasecmp just incase some shader has a weird case on the surfaceparms
made some of the q3bsp warnings use dprintf because they're probably annoying users
switched to simpler tracebrush bsp recursion code (the old code crashed for me occasionally, but I've been unable to reproduce that problem again, so I guess it's fixed too, or something)

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

20 years agofix video modes menu to not let you select the extra 0x0 mode
havoc [Mon, 9 Feb 2004 05:21:04 +0000 (05:21 +0000)]
fix video modes menu to not let you select the extra 0x0 mode

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

20 years agoadded Willis's dpmaster to list
havoc [Sun, 8 Feb 2004 19:02:24 +0000 (19:02 +0000)]
added Willis's dpmaster to list

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

20 years agotrying to make this binary
havoc [Fri, 6 Feb 2004 21:36:30 +0000 (21:36 +0000)]
trying to make this binary

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

20 years agoDOS line endings, and now marked binary (I hope)
havoc [Fri, 6 Feb 2004 21:30:18 +0000 (21:30 +0000)]
DOS line endings, and now marked binary (I hope)

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

20 years agoupdated readme
havoc [Fri, 6 Feb 2004 18:48:19 +0000 (18:48 +0000)]
updated readme

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

20 years agoincreased numverts/numtris/skinwidth/skinheight limits to 65536, and made r_fullbrigh...
havoc [Fri, 6 Feb 2004 18:45:46 +0000 (18:45 +0000)]
increased numverts/numtris/skinwidth/skinheight limits to 65536, and made r_fullbrights affect model skins

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

20 years agorenamed r_shadow_shadows to r_shadow_dlightshadows and added r_shadow_worldshadows...
havoc [Fri, 6 Feb 2004 05:24:44 +0000 (05:24 +0000)]
renamed r_shadow_shadows to r_shadow_dlightshadows and added r_shadow_worldshadows cvar

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

20 years agofixed Mod_Q3BSP_BoxTouchingPVS to handle unvised maps properly
havoc [Fri, 6 Feb 2004 05:22:17 +0000 (05:22 +0000)]
fixed Mod_Q3BSP_BoxTouchingPVS to handle unvised maps properly

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

20 years agorewrote PF_tokenize to not use memory allocations
havoc [Fri, 6 Feb 2004 05:20:02 +0000 (05:20 +0000)]
rewrote PF_tokenize to not use memory allocations

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

20 years agoincreased size of ditherpattern texture to try to work around the odd 'not black...
havoc [Fri, 6 Feb 2004 05:18:17 +0000 (05:18 +0000)]
increased size of ditherpattern texture to try to work around the odd 'not black' dither bug (succeeded? yes, but no closer to figuring out why it was misbehaving in the first place)

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

20 years agogl_texturemode should not affect TEXF_FORCENEAREST and TEXF_FORCELINEAR textures
havoc [Fri, 6 Feb 2004 05:17:08 +0000 (05:17 +0000)]
gl_texturemode should not affect TEXF_FORCENEAREST and TEXF_FORCELINEAR textures

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

20 years agoThis is your key system, this is your key system after being mostly replaced with...
warp [Fri, 6 Feb 2004 04:55:54 +0000 (04:55 +0000)]
This is your key system, this is your key system after being mostly replaced with Twilight's and then modified.

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

20 years agooptimized BoxTouchingPVS code to no longer be recursive
havoc [Tue, 3 Feb 2004 19:22:06 +0000 (19:22 +0000)]
optimized BoxTouchingPVS code to no longer be recursive

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

20 years agosupport tga's with incomplete colormaps (less than 256 colors), I HOPE this is correct
havoc [Tue, 3 Feb 2004 04:52:39 +0000 (04:52 +0000)]
support tga's with incomplete colormaps (less than 256 colors), I HOPE this is correct

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

20 years agoadded some names for certain characters: ` backquote, ~ tilde, ' apostrophe, " quote...
havoc [Tue, 3 Feb 2004 02:16:13 +0000 (02:16 +0000)]
added some names for certain characters: ` backquote, ~ tilde, ' apostrophe, " quote (note that ` and ~ are not bindable anyway, hardwired in the engine)

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

20 years agodon't need to send WM_SETICON... just set the icon in the window class and
coderjoe [Mon, 2 Feb 2004 15:02:19 +0000 (15:02 +0000)]
don't need to send WM_SETICON... just set the icon in the window class and
windows will take care of it.

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

20 years agofix misplaced extern S_UnblockSound
havoc [Mon, 2 Feb 2004 14:55:05 +0000 (14:55 +0000)]
fix misplaced extern S_UnblockSound

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

20 years agoDS_OK used instead of DD_OK
black [Mon, 2 Feb 2004 14:47:20 +0000 (14:47 +0000)]
DS_OK used instead of DD_OK

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

20 years agoget msvc using the new icon
coderjoe [Mon, 2 Feb 2004 14:44:04 +0000 (14:44 +0000)]
get msvc using the new icon

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

20 years agocast the char array to unsigned short in the ToAscii call, because windows is insane...
havoc [Mon, 2 Feb 2004 14:41:20 +0000 (14:41 +0000)]
cast the char array to unsigned short in the ToAscii call, because windows is insane enough to make it take an unsigned short *, even though it writes byte chars to it

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

20 years agowinquake.h is gone, absorbed into the respective files which used it, also cleaned...
havoc [Mon, 2 Feb 2004 14:37:56 +0000 (14:37 +0000)]
winquake.h is gone, absorbed into the respective files which used it, also cleaned out all unneeded winquake.h cruft

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

20 years agothanks to de-we for these great icons (I have not figured out how to use them yet...
havoc [Mon, 2 Feb 2004 14:04:30 +0000 (14:04 +0000)]
thanks to de-we for these great icons (I have not figured out how to use them yet, though)

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

20 years agofixing up rtlight handling a bit (now always runs the dynlight stage which has been...
havoc [Mon, 2 Feb 2004 13:22:40 +0000 (13:22 +0000)]
fixing up rtlight handling a bit (now always runs the dynlight stage which has been renamed rtlights stage in the r_speeds report)

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

20 years agothanks to Mathieu Olivier for these new makefiles
havoc [Mon, 2 Feb 2004 13:09:30 +0000 (13:09 +0000)]
thanks to Mathieu Olivier for these new makefiles

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

20 years agofix a logic bug in EntLight handling (should have been checking r_shadow_realtime_wor...
havoc [Mon, 2 Feb 2004 12:45:11 +0000 (12:45 +0000)]
fix a logic bug in EntLight handling (should have been checking r_shadow_realtime_world not dlight or flashblend)

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

20 years agofixed sv_freezenonclients (now freezes time as well)
havoc [Mon, 2 Feb 2004 04:32:50 +0000 (04:32 +0000)]
fixed sv_freezenonclients (now freezes time as well)

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

20 years agoforgot to init enterfrac2 in the TraceLineBrushFloat code
havoc [Mon, 2 Feb 2004 04:06:30 +0000 (04:06 +0000)]
forgot to init enterfrac2 in the TraceLineBrushFloat code

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

20 years agoadded trace.realfraction field which is now used for comparisons instead of fraction...
havoc [Mon, 2 Feb 2004 03:56:38 +0000 (03:56 +0000)]
added trace.realfraction field which is now used for comparisons instead of fraction, this allows proper detection of the nearest blocker without the glitches previously seen sometimes on brush-brush boundaries (where the expanded side boundary was closer than the floor it was part of)
optimized q3bsp point traces (point, not line)
optimized q3bsp line traces (finally got that code working, and added optimized line-triangle tracing code for curves which is 52% faster)
optimized q3bsp brush traces (or tried to...  seems to be slower unfortunately, more work to do on this in the future)
BrushForBox now sets the mins/maxs of the brush for culling
reduced q3mnode_t structure by 4 bytes (checks plane pointer now instead of a dedicated isnode variable)
cleaned up some collision code a bit
added some TargetQuake workarounds (spew warnings instead of crashing to console) for weird physics settings (like MOVETYPE_PUSH and SOLID_BSP with no model)

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

20 years agoadded sv_freezenonclients cvar, fixed the bug that caused falling damage when standin...
havoc [Mon, 2 Feb 2004 03:36:11 +0000 (03:36 +0000)]
added sv_freezenonclients cvar, fixed the bug that caused falling damage when standing on a sloped floor pushing you into a wall, and cleaned up a few other things a bit

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

20 years agonow always uses glPolygonOffset, and collision brush rendering has been fixed with...
havoc [Mon, 2 Feb 2004 02:43:21 +0000 (02:43 +0000)]
now always uses glPolygonOffset, and collision brush rendering has been fixed with better glPolygonOffset settings (no more flicker), also uses glPolygonOffset on shadow volumes now (but this probably has any effect in any cases I know of)

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

20 years agoadded several BoxPlane comparison functions to find information on corners relative...
havoc [Mon, 2 Feb 2004 02:28:40 +0000 (02:28 +0000)]
added several BoxPlane comparison functions to find information on corners relative to the plane (rather than merely checking which side it is on)

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

20 years agochanged a lot of progs errors to warnings, and it prints QC status for warnings
havoc [Mon, 2 Feb 2004 02:21:52 +0000 (02:21 +0000)]
changed a lot of progs errors to warnings, and it prints QC status for warnings

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

20 years agoreduced default r_lightningbeams_repeatdistance from 1024 to 128
havoc [Sun, 1 Feb 2004 22:40:39 +0000 (22:40 +0000)]
reduced default r_lightningbeams_repeatdistance from 1024 to 128

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

20 years agochanged Sys_Sleep from (void) to (int milliseconds), now wastes a lot less cpu time...
havoc [Sun, 1 Feb 2004 22:30:51 +0000 (22:30 +0000)]
changed Sys_Sleep from (void) to (int milliseconds), now wastes a lot less cpu time while waiting for the next frame

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

20 years agoOnly one player list is displayed now. Moved it a little bit down so if you set con_n...
black [Sun, 1 Feb 2004 12:20:05 +0000 (12:20 +0000)]
Only one player list is displayed now. Moved it a little bit down so if you set con_notify 2, it wont bother you any more.

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

20 years agohandle funky ToAscii values (shift/ctrl/alt sometimes produce ascii values for no...
havoc [Sat, 31 Jan 2004 23:04:13 +0000 (23:04 +0000)]
handle funky ToAscii values (shift/ctrl/alt sometimes produce ascii values for no reason), and also ignore any 0 or 2 character values

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

20 years agoSlight improvement in the way we include the strl{cat,cpy} declarations and implement...
molivier [Tue, 27 Jan 2004 09:08:55 +0000 (09:08 +0000)]
Slight improvement in the way we include the strl{cat,cpy} declarations and implementations into the code.

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

20 years agoDon't allow a higher depth than the desktop when using a windowed mode on Win32....
molivier [Tue, 27 Jan 2004 08:12:54 +0000 (08:12 +0000)]
Don't allow a higher depth than the desktop when using a windowed mode on Win32. It seems X11 already forbids this.

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

20 years agouse sys_ticrate timing on dedicated servers
havoc [Tue, 27 Jan 2004 06:13:40 +0000 (06:13 +0000)]
use sys_ticrate timing on dedicated servers

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

20 years agoimproved handling of video mode failures
havoc [Mon, 26 Jan 2004 08:57:04 +0000 (08:57 +0000)]
improved handling of video mode failures

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

20 years agochanged local server ports to 1 (server) and 2 (client), regardless of cl_port and...
havoc [Sat, 24 Jan 2004 01:00:11 +0000 (01:00 +0000)]
changed local server ports to 1 (server) and 2 (client), regardless of cl_port and port cvars
merged cl_netaddress and sv_netaddress into one net_address cvar

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

20 years agofix a severe bug with the checking of WSAStartup (basically any socket after the...
havoc [Sat, 24 Jan 2004 00:42:26 +0000 (00:42 +0000)]
fix a severe bug with the checking of WSAStartup (basically any socket after the first would fail for no reason)

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

20 years agodisabled opening of ipv6 sockets since that code still isn't finished (this MIGHT...
havoc [Fri, 23 Jan 2004 10:03:13 +0000 (10:03 +0000)]
disabled opening of ipv6 sockets since that code still isn't finished (this MIGHT fix win32 problems, not sure yet), and now prints error messages when socket/bind/ioctl calls fail

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

20 years agowrap angles on rotating pushers because large angle values are bad for precision
havoc [Wed, 21 Jan 2004 09:22:19 +0000 (09:22 +0000)]
wrap angles on rotating pushers because large angle values are bad for precision

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

20 years agoTransfusion update: renamed the mod directory to "basetf" instead of "transfusion...
molivier [Wed, 21 Jan 2004 07:29:42 +0000 (07:29 +0000)]
Transfusion update: renamed the mod directory to "basetf" instead of "transfusion", and added 6 new maps.

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

20 years ago-safe now implies -window and disables all GL extensions that offer a disable option
havoc [Tue, 20 Jan 2004 21:03:38 +0000 (21:03 +0000)]
-safe now implies -window and disables all GL extensions that offer a disable option

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

20 years agoAdded a check in the WAV loading code to make sure the file is a WAV file before...
molivier [Tue, 20 Jan 2004 13:18:49 +0000 (13:18 +0000)]
Added a check in the WAV loading code to make sure the file is a WAV file before proceeding. Thanks to Urre for pointing out this bug.

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

20 years agoignore visofs errors on leaf 0 (solid), thanks to Vic for pointing out the problem...
havoc [Mon, 19 Jan 2004 22:30:46 +0000 (22:30 +0000)]
ignore visofs errors on leaf 0 (solid), thanks to Vic for pointing out the problem in qbsp itself

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

20 years agochanged comment above FS_CreatePath
havoc [Mon, 19 Jan 2004 21:34:59 +0000 (21:34 +0000)]
changed comment above FS_CreatePath

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

20 years ago*** empty log message ***
havoc [Sat, 17 Jan 2004 04:07:32 +0000 (04:07 +0000)]
*** empty log message ***

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

20 years agofixed a crash with r_lerpsprites 0 mode
havoc [Tue, 13 Jan 2004 22:14:48 +0000 (22:14 +0000)]
fixed a crash with r_lerpsprites 0 mode

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