divverent/darkplaces.git
17 years agofixed a crash in PR_objerror (trying to free self when there is no self), and removed...
havoc [Fri, 10 Oct 2003 04:50:00 +0000 (04:50 +0000)]
fixed a crash in PR_objerror (trying to free self when there is no self), and removed an unused prototype called "error();"

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

17 years agoone more reminder that nested for(i) loops are bad, mmk?
havoc [Fri, 10 Oct 2003 04:42:37 +0000 (04:42 +0000)]
one more reminder that nested for(i) loops are bad, mmk?

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

17 years agothis should fix skybox in q3bsp (extra preprocessing pass to look for sky surfaces...
havoc [Fri, 10 Oct 2003 03:07:18 +0000 (03:07 +0000)]
this should fix skybox in q3bsp (extra preprocessing pass to look for sky surfaces before rendering normal surfaces, only used if the map has sky surfaces)

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

17 years agoq3bsp surfaces are now always rendered in the same order, made the q1bsp vis overrun...
havoc [Fri, 10 Oct 2003 01:45:51 +0000 (01:45 +0000)]
q3bsp surfaces are now always rendered in the same order, made the q1bsp vis overrun/underrun warnings dprintf's, added some (unused) array merging code in q3bsp loading

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

17 years agoSorry, forgot to remove some debug code from host.c
black [Thu, 9 Oct 2003 19:48:12 +0000 (19:48 +0000)]
Sorry, forgot to remove some debug code from host.c

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

17 years agoAdded a lot of builtin commands to prvm_cmds.c (mostly from pr_cmds).
black [Thu, 9 Oct 2003 19:42:35 +0000 (19:42 +0000)]
Added a lot of builtin commands to prvm_cmds.c (mostly from pr_cmds).
Also changed the menu again, so menu_restart doesnt try to reregister cvars
and cmds any more.

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

17 years agoadded back glquake stair step up smoothing, and made it somewhat adjustable (cl_stair...
havoc [Wed, 8 Oct 2003 21:57:32 +0000 (21:57 +0000)]
added back glquake stair step up smoothing, and made it somewhat adjustable (cl_stairsmoothspeed)

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

17 years agofixed Apply option in video options menu (I had forgotten to renumber it)
havoc [Wed, 8 Oct 2003 21:40:12 +0000 (21:40 +0000)]
fixed Apply option in video options menu (I had forgotten to renumber it)

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

17 years agofixed a couple warnings on memsetting shm
havoc [Wed, 8 Oct 2003 21:00:04 +0000 (21:00 +0000)]
fixed a couple warnings on memsetting shm

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

17 years agocollision brush generation in q3bsp is now *MUCH* faster and uses a lot less memory...
havoc [Wed, 8 Oct 2003 20:50:28 +0000 (20:50 +0000)]
collision brush generation in q3bsp is now *MUCH* faster and uses a lot less memory (technical: now uses two temp windings, repeatedly swapping between them, avoiding all the temporary allocs, to achieve this BufWinding_NewFromPlane and BufWinding_Divide were added)

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

17 years agofixed splashing sounds once and for all - now splashes only on transitions involving...
havoc [Wed, 8 Oct 2003 20:21:37 +0000 (20:21 +0000)]
fixed splashing sounds once and for all - now splashes only on transitions involving water/slime, rather than the old 'any liquid except lava' check, so this means no more sky splashing...

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

17 years agosnd_initialized is now checked by S_FindName and S_PrecacheSound (Thanks to Moz for...
havoc [Wed, 8 Oct 2003 02:37:00 +0000 (02:37 +0000)]
snd_initialized is now checked by S_FindName and S_PrecacheSound (Thanks to Moz for reporting the -nosound crash)

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

17 years agoadded prvm_cmds.c prvm_edict.c prvm_exec.c prvm_execprogram.h
havoc [Wed, 8 Oct 2003 01:28:19 +0000 (01:28 +0000)]
added prvm_cmds.c prvm_edict.c prvm_exec.c prvm_execprogram.h

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

17 years agofixed a variable declaration I forgot to move when moving some other code
havoc [Wed, 8 Oct 2003 00:59:57 +0000 (00:59 +0000)]
fixed a variable declaration I forgot to move when moving some other code

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

17 years agocd audio now tied to sound system
havoc [Tue, 7 Oct 2003 23:45:14 +0000 (23:45 +0000)]
cd audio now tied to sound system
sound system now tied to video system because DirectSound needs a window to work at all (thank you Windows for another useless obstacle)
sound system can now restart (snd_restart command)
vid_stencil cvar removed (now tied to 32bit color)
vid_bitsperpixel now defaults to 32
r_shadow_shadows cvar added (default 1) for stencil shadows on dlights (since vid_stencil is gone)

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

17 years agoremoved a temporary comment from Black
havoc [Tue, 7 Oct 2003 15:16:43 +0000 (15:16 +0000)]
removed a temporary comment from Black

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

17 years agofix a signed/unsigned comparison warning
havoc [Tue, 7 Oct 2003 15:15:33 +0000 (15:15 +0000)]
fix a signed/unsigned comparison warning

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

17 years ago*** empty log message ***
black [Tue, 7 Oct 2003 12:12:01 +0000 (12:12 +0000)]
*** empty log message ***

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

17 years agoAK: Changed makefile temporarily so the new prvm compiles on linux.
black [Tue, 7 Oct 2003 11:56:02 +0000 (11:56 +0000)]
AK: Changed makefile temporarily so the new prvm compiles on linux.

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

17 years agoChanged dp so the new vm fits in.
black [Tue, 7 Oct 2003 06:19:14 +0000 (06:19 +0000)]
Changed dp so the new vm fits in.

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

17 years agoa stab in the dark at supporting unlit q3bsp maps
havoc [Tue, 7 Oct 2003 04:49:50 +0000 (04:49 +0000)]
a stab in the dark at supporting unlit q3bsp maps

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

17 years agoAdding the new vm
black [Mon, 6 Oct 2003 18:52:56 +0000 (18:52 +0000)]
Adding the new vm

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

17 years agoadded COM_ReadAndTokenizeLine, a useful parsing function
havoc [Sun, 5 Oct 2003 13:48:03 +0000 (13:48 +0000)]
added COM_ReadAndTokenizeLine, a useful parsing function

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

17 years agofix a signed/unsigned comparison in PR_UglyValueString
havoc [Sun, 5 Oct 2003 13:47:26 +0000 (13:47 +0000)]
fix a signed/unsigned comparison in PR_UglyValueString

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

17 years agoThe crusade against buffer overflows continues...
molivier [Thu, 2 Oct 2003 09:04:12 +0000 (09:04 +0000)]
The crusade against buffer overflows continues...

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

17 years agoFixed/switched the "ev_string" and "ev_field" cases in PR_UglyValueString
molivier [Wed, 1 Oct 2003 12:36:29 +0000 (12:36 +0000)]
Fixed/switched the "ev_string" and "ev_field" cases in PR_UglyValueString

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

17 years agoMostly [v]sprintf -> [v]snprintf replacements, and a couple of other fixes regarding...
molivier [Wed, 1 Oct 2003 12:19:26 +0000 (12:19 +0000)]
Mostly [v]sprintf -> [v]snprintf replacements, and a couple of other fixes regarding buffers management

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

17 years agoMore strcpy -> strlcpy and sprintf -> snprintf
molivier [Tue, 30 Sep 2003 15:07:55 +0000 (15:07 +0000)]
More strcpy -> strlcpy and sprintf -> snprintf

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

17 years agoLots of str[n]cat, str[n]cpy, and [v]sprintf have been replaced by strlcat, strlcpy...
molivier [Tue, 30 Sep 2003 12:58:04 +0000 (12:58 +0000)]
Lots of str[n]cat, str[n]cpy, and [v]sprintf have been replaced by strlcat, strlcpy and [v]snprintf to insure that they don't write outside of their buffers. More to come later.

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

17 years agoAdded strlcat and strlcpy, from OpenBSD. They are smart replacements for strncat...
molivier [Tue, 30 Sep 2003 12:54:02 +0000 (12:54 +0000)]
Added strlcat and strlcpy, from OpenBSD. They are smart replacements for strncat and strncpy - see courtesan.com/todd/papers/strlcpy.html or their manual pages on the OpenBSD website for details

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

17 years agomd3 flags support (blood trails, etc)
havoc [Tue, 30 Sep 2003 08:10:38 +0000 (08:10 +0000)]
md3 flags support (blood trails, etc)

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

17 years agoFixed 2 potential buffer overflows in SearchInfostring
molivier [Tue, 30 Sep 2003 06:36:41 +0000 (06:36 +0000)]
Fixed 2 potential buffer overflows in SearchInfostring

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

17 years agoThe "position" field of the "qfile_t" structure was (correctly) used for 2 differents...
molivier [Mon, 29 Sep 2003 12:32:57 +0000 (12:32 +0000)]
The "position" field of the "qfile_t" structure was (correctly) used for 2 differents things; this is clearly bad practice though, so it's no longer the case. Added a missing test in FS_Seek to insure we don't seek outside of a deflated file. Plus some minor cleanups here and there in the FS code.

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

17 years agoTomaz's new water effect has been added and looks very nice
havoc [Mon, 22 Sep 2003 20:55:31 +0000 (20:55 +0000)]
Tomaz's new water effect has been added and looks very nice

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

17 years agofixed lightgrid out-of-bounds crash (for example when one hits the very top of a...
havoc [Mon, 22 Sep 2003 20:05:40 +0000 (20:05 +0000)]
fixed lightgrid out-of-bounds crash (for example when one hits the very top of a q3bsp)

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

17 years agoempty lightgrid lump should now work
havoc [Mon, 22 Sep 2003 19:44:20 +0000 (19:44 +0000)]
empty lightgrid lump should now work

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

17 years agodisabled GF3 water shader when water is fogged, fixed too-bright normal water renderi...
havoc [Mon, 22 Sep 2003 02:25:31 +0000 (02:25 +0000)]
disabled GF3 water shader when water is fogged, fixed too-bright normal water rendering (when GF3 water shader is not used)

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

17 years agohuge (16%) speed gain on surface rendering by eliminating the surfmesh chain in q1bsp...
havoc [Mon, 22 Sep 2003 01:21:54 +0000 (01:21 +0000)]
huge (16%) speed gain on surface rendering by eliminating the surfmesh chain in q1bsp surfaces, now only allows one mesh per surface and the surfmesh_t is embedded in the surface struct

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

17 years agoremoved RSurf_LightCheck because nothing used it anymore
havoc [Sun, 21 Sep 2003 23:23:27 +0000 (23:23 +0000)]
removed RSurf_LightCheck because nothing used it anymore

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

17 years agor_dlightmap 0 mode removed (vertex dlights on lightmapped walls)
havoc [Sun, 21 Sep 2003 23:08:36 +0000 (23:08 +0000)]
r_dlightmap 0 mode removed (vertex dlights on lightmapped walls)

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

17 years agoengine now defaults to 44100hz sound
havoc [Sun, 21 Sep 2003 22:45:30 +0000 (22:45 +0000)]
engine now defaults to 44100hz sound

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

17 years agoremoved r_shadows (glquake fake shadows)
havoc [Sun, 21 Sep 2003 22:42:57 +0000 (22:42 +0000)]
removed r_shadows (glquake fake shadows)

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

17 years agor_colorscale gone, v_overbrightbits (cvar which controlled r_colorscale) gone
havoc [Sun, 21 Sep 2003 22:06:27 +0000 (22:06 +0000)]
r_colorscale gone, v_overbrightbits (cvar which controlled r_colorscale) gone

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

17 years agoremoved water lighting support
havoc [Sun, 21 Sep 2003 21:06:24 +0000 (21:06 +0000)]
removed water lighting support

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

17 years agonow supports skyboxes in q3bsp (note: must use the "sky" key in worldspawn to set...
havoc [Sun, 21 Sep 2003 03:34:58 +0000 (03:34 +0000)]
now supports skyboxes in q3bsp (note: must use the "sky" key in worldspawn to set the skybox basename like in q2, and it identifies sky shaders by names beginning with "textures/skies/"), and added a little error checking to Mod_Q1BSP_LoadLeafs, and added a couple todo items

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

17 years agoadded GAME_ZYMOTIC
havoc [Sat, 20 Sep 2003 09:16:01 +0000 (09:16 +0000)]
added GAME_ZYMOTIC

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

17 years agofinally managed to fix the r_shadow_portallight bug (had to reverse portal handling...
havoc [Sat, 20 Sep 2003 07:34:52 +0000 (07:34 +0000)]
finally managed to fix the r_shadow_portallight bug (had to reverse portal handling in many old broken cases), also changed the Portal_Visibility call to take a box instead of a sphere for culling

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

17 years agoTomaz's awesome new GeForce3 water effect, thanks!
havoc [Fri, 19 Sep 2003 20:18:30 +0000 (20:18 +0000)]
Tomaz's awesome new GeForce3 water effect, thanks!

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

17 years agorecoded options menus, and replaced scr_2dresolution with vid_conwidth and vid_conhei...
havoc [Fri, 19 Sep 2003 19:53:57 +0000 (19:53 +0000)]
recoded options menus, and replaced scr_2dresolution with vid_conwidth and vid_conheight cvars (and updated menu accordingly)

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

17 years agomigrated light bounding box generation from r_shadow code to Portal_Visibility code...
havoc [Fri, 19 Sep 2003 19:50:51 +0000 (19:50 +0000)]
migrated light bounding box generation from r_shadow code to Portal_Visibility code when using r_shadow_portallight 1, I hoped this would fix bugs but it did not, still it is an optimization...

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

17 years agoflip the X in normalmaps generated from heightmaps (according to FrikaC it was broken)
havoc [Fri, 19 Sep 2003 19:48:42 +0000 (19:48 +0000)]
flip the X in normalmaps generated from heightmaps (according to FrikaC it was broken)

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

17 years agoadded some SV_CheckVelocity calls to MOVETYPE_WALK code
havoc [Fri, 19 Sep 2003 19:44:00 +0000 (19:44 +0000)]
added some SV_CheckVelocity calls to MOVETYPE_WALK code

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

17 years agofinished a lot of little todo items, mostly regarding server list and networking...
havoc [Fri, 19 Sep 2003 01:52:41 +0000 (01:52 +0000)]
finished a lot of little todo items, mostly regarding server list and networking init bugs, and fixed skybox rendering

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

17 years agoafter an argument with Black it was decided that GAME_NEXUIZ will be weird (in my...
havoc [Thu, 18 Sep 2003 19:29:39 +0000 (19:29 +0000)]
after an argument with Black it was decided that GAME_NEXUIZ will be weird (in my opinion) and use a bit number instead of a bitfield for STAT_ACTIVEWEAPON

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

17 years agothe new partial-update entity compression protocol now works for the first time ever
havoc [Wed, 17 Sep 2003 17:51:31 +0000 (17:51 +0000)]
the new partial-update entity compression protocol now works for the first time ever

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

17 years agoforgot to include this file in the previous commit (no longer opens gfx.wad until...
havoc [Wed, 17 Sep 2003 17:49:51 +0000 (17:49 +0000)]
forgot to include this file in the previous commit (no longer opens gfx.wad until a lump is requested)

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

17 years agono longer opens gfx.wad until a lump is requested (and gracefully fails if not found)
havoc [Wed, 17 Sep 2003 17:48:58 +0000 (17:48 +0000)]
no longer opens gfx.wad until a lump is requested (and gracefully fails if not found)

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

17 years agofixed empty texture lump handling in q1bsp loading
havoc [Mon, 15 Sep 2003 02:21:50 +0000 (02:21 +0000)]
fixed empty texture lump handling in q1bsp loading

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

17 years agomade a commit debugging message only happen with developer_networkentities
havoc [Mon, 15 Sep 2003 02:21:13 +0000 (02:21 +0000)]
made a commit debugging message only happen with developer_networkentities

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

17 years agomove developer_networkentities extern to protocol.h
havoc [Sun, 14 Sep 2003 21:34:00 +0000 (21:34 +0000)]
move developer_networkentities extern to protocol.h

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

17 years agomore Nexuiz hud stuff from BlackHC, minor style edits to fit in with surrounding...
havoc [Sun, 14 Sep 2003 03:52:21 +0000 (03:52 +0000)]
more Nexuiz hud stuff from BlackHC, minor style edits to fit in with surrounding code better

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

17 years agoadded an item about corona shaders
havoc [Sun, 14 Sep 2003 03:40:32 +0000 (03:40 +0000)]
added an item about corona shaders

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

17 years agofixed log2i to use parentheses around n
havoc [Sat, 13 Sep 2003 20:58:33 +0000 (20:58 +0000)]
fixed log2i to use parentheses around n
changed bit2i to use log2i((n) << 1)

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

17 years agoadded bit2i and log2i (these return the base 2 exponent of an integer, perhaps bit2i...
havoc [Sat, 13 Sep 2003 20:41:35 +0000 (20:41 +0000)]
added bit2i and log2i (these return the base 2 exponent of an integer, perhaps bit2i should be replaced by log2i() - 1 though)

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

17 years agofixed an R_InitSky warning regarding transpix being uninitialized, added transpixunio...
havoc [Sat, 13 Sep 2003 20:39:35 +0000 (20:39 +0000)]
fixed an R_InitSky warning regarding transpix being uninitialized, added transpixunion to clean up the aliasing mess (thanks to Black for pointing this out)

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

17 years agomore developer_networkentities messages
havoc [Sat, 13 Sep 2003 20:37:14 +0000 (20:37 +0000)]
more developer_networkentities messages

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

17 years agorenamed PROTOCOL_VERSION stuff to PROTOCOL_QUAKE, PROTOCOL_DARKPLACES1, and so on
havoc [Sat, 13 Sep 2003 04:50:36 +0000 (04:50 +0000)]
renamed PROTOCOL_VERSION stuff to PROTOCOL_QUAKE, PROTOCOL_DARKPLACES1, and so on
mostly fixed network entity bugs

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

17 years ago*** empty log message ***
havoc [Sat, 13 Sep 2003 04:49:32 +0000 (04:49 +0000)]
*** empty log message ***

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

17 years agochanged teu game dir to "baseteu" at request of teu team
havoc [Fri, 12 Sep 2003 23:57:58 +0000 (23:57 +0000)]
changed teu game dir to "baseteu" at request of teu team

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

17 years agoaitur fixed some important bugs in the error checks of the md2 model loader, thanks!
havoc [Fri, 12 Sep 2003 12:47:02 +0000 (12:47 +0000)]
aitur fixed some important bugs in the error checks of the md2 model loader, thanks!

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

17 years ago*** empty log message ***
havoc [Mon, 8 Sep 2003 22:03:15 +0000 (22:03 +0000)]
*** empty log message ***

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

17 years ago*** empty log message ***
havoc [Mon, 8 Sep 2003 22:00:37 +0000 (22:00 +0000)]
*** empty log message ***

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

17 years agoa couple bugfixes in Nehahra demos menu regarding end of menu wrapping (thanks to...
havoc [Thu, 4 Sep 2003 13:34:15 +0000 (13:34 +0000)]
a couple bugfixes in Nehahra demos menu regarding end of menu wrapping (thanks to Vic for pointing out these bugs)

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

17 years agofix some glitches in the original commit
havoc [Thu, 4 Sep 2003 13:30:07 +0000 (13:30 +0000)]
fix some glitches in the original commit
clean up blank lines

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

17 years agopatch from Andreas Kirsh to add Nexuiz hud
havoc [Thu, 4 Sep 2003 12:30:46 +0000 (12:30 +0000)]
patch from Andreas Kirsh to add Nexuiz hud

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

17 years agothe Connect failed error is now just a print
havoc [Thu, 4 Sep 2003 09:30:48 +0000 (09:30 +0000)]
the Connect failed error is now just a print

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

17 years agofix a nasty crash with multiplayer servers (thanks to Willis for finding this bug)
havoc [Thu, 4 Sep 2003 09:25:06 +0000 (09:25 +0000)]
fix a nasty crash with multiplayer servers (thanks to Willis for finding this bug)

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

17 years agofixed a couple stupid bugs
havoc [Sun, 31 Aug 2003 06:35:49 +0000 (06:35 +0000)]
fixed a couple stupid bugs

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

17 years ago*** empty log message ***
havoc [Sun, 31 Aug 2003 05:25:23 +0000 (05:25 +0000)]
*** empty log message ***

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

17 years agonow uses string buffers more sanely and supports multiple strcat buffers (now uses...
havoc [Sun, 31 Aug 2003 05:20:33 +0000 (05:20 +0000)]
now uses string buffers more sanely and supports multiple strcat buffers (now uses PR_GetTempString), modified PF_VarString to read into a string buffer (FrikaC noticed strcat was being overwritten by print, inconsistent with his implementation of FRIK_FILE)

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

17 years agofix a crash related to MAX_EDICTS in "pr_fields" command (thanks to SeienAbunae for...
havoc [Sun, 31 Aug 2003 05:17:06 +0000 (05:17 +0000)]
fix a crash related to MAX_EDICTS in "pr_fields" command (thanks to SeienAbunae for reporting this)

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

17 years agoreverted the massive svs.connectedclients change, now back to svs.clients and svs...
havoc [Sat, 30 Aug 2003 01:54:31 +0000 (01:54 +0000)]
reverted the massive svs.connectedclients change, now back to svs.clients and svs.maxclients like quake
this fixes mods detecting singleplayer as multiplayer
this fixes frikbot frags updates on the scoreboard
added most of the capability necessary for botclient extension

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

17 years ago*** empty log message ***
havoc [Fri, 29 Aug 2003 03:49:00 +0000 (03:49 +0000)]
*** empty log message ***

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

17 years agonow prints "Connection refused" if LHNET_Read gets an ECONNREFUSED from inet4 or...
havoc [Fri, 29 Aug 2003 03:46:52 +0000 (03:46 +0000)]
now prints "Connection refused" if LHNET_Read gets an ECONNREFUSED from inet4 or inet6 (thanks to Andreas Kirsh for this)

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

17 years agov_hwgamma is now saved to config (Andreas Kirsh suggested this and I agree)
havoc [Thu, 28 Aug 2003 14:07:47 +0000 (14:07 +0000)]
v_hwgamma is now saved to config (Andreas Kirsh suggested this and I agree)
gl_combine is now saved to config (due to popular demand, although this really should become a separate overbright cvar instead)

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

17 years agothanks to Andreas Kirsh for a discussion about using WS_EX_TOPMOST flag on the fullsc...
havoc [Thu, 28 Aug 2003 13:52:47 +0000 (13:52 +0000)]
thanks to Andreas Kirsh for a discussion about using WS_EX_TOPMOST flag on the fullscreen window (hopefully this will keep dialogs from cutting holes in the frame like some people have reported)

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

17 years agofixed Prydon Gate behavior regarding the start map (which immediately changes level)
havoc [Thu, 28 Aug 2003 08:08:07 +0000 (08:08 +0000)]
fixed Prydon Gate behavior regarding the start map (which immediately changes level)

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

17 years agoexperimental (not terribly useful) support for r_shadow_realtime_dlight 1 mode (_worl...
havoc [Thu, 28 Aug 2003 06:32:13 +0000 (06:32 +0000)]
experimental (not terribly useful) support for r_shadow_realtime_dlight 1 mode (_world mode put on hold for a while)

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

17 years agoremoved used of PolygonOffset because it caused (extremely minor) visual glitches...
havoc [Wed, 27 Aug 2003 13:21:30 +0000 (13:21 +0000)]
removed used of PolygonOffset because it caused (extremely minor) visual glitches on the map, and isn't really much help even when using r_drawcollisionbrushes

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

17 years agofixed a crash with clusterindex -1 in GetPVS and FatPVS
havoc [Wed, 27 Aug 2003 13:10:41 +0000 (13:10 +0000)]
fixed a crash with clusterindex -1 in GetPVS and FatPVS

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

17 years agoq3bsp curve collisions (technically it can collide against any triangle mesh)
havoc [Wed, 27 Aug 2003 12:22:00 +0000 (12:22 +0000)]
q3bsp curve collisions (technically it can collide against any triangle mesh)
fixed some severe bugs in the q3bsp traceline code
optimized q3bsp tracebrush code - now uses a bbox for the trace, and reduces it to fit each node it encounters, this caused *IMMENSE* speedups!
optimized q3bsp curve collisions to use bbox culling of triangles (to avoid the cost of generating collision brushes most of the time)

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

17 years agoRemoved useless function M_PrintWhite, since M_Print prints in white already. Added...
molivier [Mon, 25 Aug 2003 06:35:47 +0000 (06:35 +0000)]
Removed useless function M_PrintWhite, since M_Print prints in white already. Added M_PrintRed. Added support for sections for the key binding list (for clarity when using a lot of commands), and made it adjust its position depending on the number of commands. Updated Transfusion key binding list.

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

17 years agocurves are now precomputed at load time, and all surfaces are treated as Q3FACETYPE_M...
havoc [Mon, 25 Aug 2003 00:11:52 +0000 (00:11 +0000)]
curves are now precomputed at load time, and all surfaces are treated as Q3FACETYPE_MESH (or skipped if they have no triangles)

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

17 years agothe quadratic spline patches in quake3 maps now work (in english: curves!)
havoc [Sun, 24 Aug 2003 23:00:26 +0000 (23:00 +0000)]
the quadratic spline patches in quake3 maps now work (in english: curves!)

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

17 years agono more uses of %g in printf as it tends to lose precision too often (this caused...
havoc [Sun, 24 Aug 2003 04:00:52 +0000 (04:00 +0000)]
no more uses of %g in printf as it tends to lose precision too often (this caused problems with ftos in QuakeC truncating numbers to 6 digits, a problem afflicting Prydon Gate especially)
still tries to print numbers briefly if possible (by checking if their value is an int)

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

17 years ago*** empty log message ***
havoc [Sat, 23 Aug 2003 10:30:40 +0000 (10:30 +0000)]
*** empty log message ***

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

17 years agofix severe bug that made chase_up continually increase up to 118 (thanks to yummyluv...
havoc [Sat, 23 Aug 2003 10:19:26 +0000 (10:19 +0000)]
fix severe bug that made chase_up continually increase up to 118 (thanks to yummyluv for pointing this out, and Electro for making me realize why it happened)

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

17 years agonegate the dnormal instead of negating the dotproduct result
havoc [Sat, 23 Aug 2003 08:32:29 +0000 (08:32 +0000)]
negate the dnormal instead of negating the dotproduct result

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

17 years agodiffusenormal lighting was backwards (thanks to Electro for pointing this out)
havoc [Sat, 23 Aug 2003 08:30:23 +0000 (08:30 +0000)]
diffusenormal lighting was backwards (thanks to Electro for pointing this out)

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

17 years agodon't call PlayerPreThink/PlayerPostThink on unspawned clients
havoc [Sat, 23 Aug 2003 08:23:54 +0000 (08:23 +0000)]
don't call PlayerPreThink/PlayerPostThink on unspawned clients

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