14 years ago496
havoc [Sat, 16 Sep 2006 09:52:43 +0000 (09:52 +0000)]

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

14 years agoimplemented direct AVI video capture using the I420 colorspace (aka Intel(r) 4:2...
havoc [Sat, 16 Sep 2006 09:50:21 +0000 (09:50 +0000)]
implemented direct AVI video capture using the I420 colorspace (aka Intel(r) 4:2:0 codec) with interleaved PCM audio, and would like to thank Microsoft(r) for wasting many hours of my time with AVI format insanity

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

14 years agochanged VM_fopen and VM_fclose announcements to require developer >= 100 like the...
havoc [Sat, 16 Sep 2006 08:40:15 +0000 (08:40 +0000)]
changed VM_fopen and VM_fclose announcements to require developer >= 100 like the VM_fputs/VM_fgets functions do, and made them console prints instead of VM_Warning calls (not sure why they were to begin with)

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

14 years agohide warnings about missing gfx/crosshair* images
havoc [Fri, 15 Sep 2006 02:07:09 +0000 (02:07 +0000)]
hide warnings about missing gfx/crosshair* images

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

14 years agoTry to fix a dedicated server crash by moving the two csqc_ cvar initializations
black [Wed, 13 Sep 2006 21:07:04 +0000 (21:07 +0000)]
Try to fix a dedicated server crash by moving the two csqc_ cvar initializations
into SV_Init. This is a hack, however, so someone else please clean this up :)
The VM's internal name now is always "client", so this should make life easier
when debugging (note: this doesn't affect the progs filename used).

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

14 years agochanged deluxemapping detection code to deal with odd bsp files produced by q3map2...
havoc [Tue, 12 Sep 2006 07:22:40 +0000 (07:22 +0000)]
changed deluxemapping detection code to deal with odd bsp files produced by q3map2 that contain two lightmaps but the second one is completely unused and blank and thus not suitable as a deluxemap, this fixes black (or very dim) surfaces in some small maps when GLSL is enabled

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

14 years agomoved VM_FILES and VM_SEARCHLIST stuff to prvm_prog_t
havoc [Tue, 12 Sep 2006 06:17:54 +0000 (06:17 +0000)]
moved VM_FILES and VM_SEARCHLIST stuff to prvm_prog_t

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

14 years agoremove some unsafe optimizations in VM_Files_Init and VM_Files_CloseAll (using memset...
havoc [Tue, 12 Sep 2006 05:56:26 +0000 (05:56 +0000)]
remove some unsafe optimizations in VM_Files_Init and VM_Files_CloseAll (using memset on the return value of an indexing macro is generally a bad idea, and doesn't improve code readability)

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

14 years agoincreased PRVM_MAX_STACK_DEPTH and PRVM_LOCALSTACK_SIZE at div0's request to reduce...
havoc [Tue, 12 Sep 2006 04:35:31 +0000 (04:35 +0000)]
increased PRVM_MAX_STACK_DEPTH and PRVM_LOCALSTACK_SIZE at div0's request to reduce qc crashes with recursive rocket explosions in Nexuiz

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

14 years agochanged description for gl_finish cvar according to esteel's suggestion
havoc [Fri, 1 Sep 2006 09:35:38 +0000 (09:35 +0000)]
changed description for gl_finish cvar according to esteel's suggestion

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

14 years agoanother patch from div0 to improve ping parsing behavior in the event that multiple...
havoc [Tue, 29 Aug 2006 12:58:45 +0000 (12:58 +0000)]
another patch from div0 to improve ping parsing behavior in the event that multiple ping reports are received after a query (due to packets backlogging)

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

14 years agoanother patch from div0 to fix ping report parsing
havoc [Tue, 29 Aug 2006 04:50:40 +0000 (04:50 +0000)]
another patch from div0 to fix ping report parsing

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

14 years agopatch from div0 to fix ping report parsing where the first player slots are empty
havoc [Sun, 27 Aug 2006 10:13:24 +0000 (10:13 +0000)]
patch from div0 to fix ping report parsing where the first player slots are empty
fixed bug in negative ping parser (it was not skipping the - when it was negative)

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

14 years agogreatly improved chances of connecting to a proquake server on the first try, by...
havoc [Sun, 27 Aug 2006 09:23:07 +0000 (09:23 +0000)]
greatly improved chances of connecting to a proquake server on the first try, by sending an svc_nop immediately upon connect

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

14 years agofix bug with gun bobbing in demo playback (where input packets are not sent, and...
havoc [Sun, 27 Aug 2006 08:53:29 +0000 (08:53 +0000)]
fix bug with gun bobbing in demo playback (where input packets are not sent, and thus the prediction replay was not occurring...)

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

14 years agofix a bug with the divide by zero warning in the QC VM, it was not updating the relev...
havoc [Sun, 27 Aug 2006 08:52:53 +0000 (08:52 +0000)]
fix a bug with the divide by zero warning in the QC VM, it was not updating the relevant xfunction/xstatement variables

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

14 years agochanged default timeformat (related to timestamps cvar for logging)
havoc [Sun, 27 Aug 2006 08:20:44 +0000 (08:20 +0000)]
changed default timeformat (related to timestamps cvar for logging)

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

14 years agoFix for people with proper compilers :)
sajt [Sat, 26 Aug 2006 08:41:31 +0000 (08:41 +0000)]
Fix for people with proper compilers :)

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

14 years agoCSQC fixes (less broken, still not spec compliant)
havoc [Sat, 26 Aug 2006 07:02:49 +0000 (07:02 +0000)]
CSQC fixes (less broken, still not spec compliant)
CSQC can now link the same entity multiple times (each time modified differently) as per the CSQC spec (this is mainly useful for rendering multi-model players based on one csqc entity, like Quake3's cgame does)
changed DrawQ functions to automatically set up 2D rendering if previous rendering was of a 3D view (necessary change for proper CSQC support)
changed QuakeC rint builtin implementation to handle very large values (outside of int range) and possibly run a little bit faster, note that it still rounds toward the nearest integer, away from zero (as intended)
refactored gun bob, damage kick fade, and stair smoothing code to eliminate a 'multiple fade steps per frame' bug
renamed the misnamed VM_ftoi function to VM_ftoe, in accordance with the menu QC builtin ftoe

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

14 years agoaccidentally removed -fno-strict-aliasing
havoc [Fri, 25 Aug 2006 15:33:33 +0000 (15:33 +0000)]
accidentally removed -fno-strict-aliasing

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

14 years agofix csqc support on dedicated servers (now CRC's the csqc_progname file at level...
havoc [Fri, 25 Aug 2006 12:48:54 +0000 (12:48 +0000)]
fix csqc support on dedicated servers (now CRC's the csqc_progname file at level start and sends that to clients, so it does not need to actually load the csqc_progname itself)

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

14 years agofix the jittery gun bug related to onground changing rapidly
havoc [Fri, 25 Aug 2006 12:27:02 +0000 (12:27 +0000)]
fix the jittery gun bug related to onground changing rapidly

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

14 years agodisabled support for csqc entities in CL_SelectTraceLine
havoc [Fri, 25 Aug 2006 12:18:13 +0000 (12:18 +0000)]
disabled support for csqc entities in CL_SelectTraceLine

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

14 years agochanged release optimizations from -O2 -ffast-math -funroll-loops to simply -O2,...
havoc [Fri, 25 Aug 2006 08:53:39 +0000 (08:53 +0000)]
changed release optimizations from -O2 -ffast-math -funroll-loops to simply -O2, this produced a 0.3% fps loss in my most extreme testing on x86_64, which does not seem significant, and gcc 4.1.0 was breaking the Nexuiz menu with the -funsafe-math-optimizations option (part of -ffast-math)

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

14 years agoFix a stupid typo in the sbar's ctf flag icon filenames.
black [Mon, 21 Aug 2006 11:19:41 +0000 (11:19 +0000)]
Fix a stupid typo in the sbar's ctf flag icon filenames.

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

14 years agonexuiz hud change to show flag status in CTF
havoc [Mon, 21 Aug 2006 07:40:40 +0000 (07:40 +0000)]
nexuiz hud change to show flag status in CTF

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

14 years agopatch from div to fix icc warnings
havoc [Sat, 19 Aug 2006 04:25:06 +0000 (04:25 +0000)]
patch from div to fix icc warnings

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

14 years agochanged several '^' checks to STRING_COLOR_TAG as they should be
havoc [Wed, 16 Aug 2006 07:17:21 +0000 (07:17 +0000)]
changed several '^' checks to STRING_COLOR_TAG as they should be

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

14 years agoreorganized Host_Init a bit, merged away a few functions (such as COM_CheckRegistered...
havoc [Wed, 16 Aug 2006 07:13:29 +0000 (07:13 +0000)]
reorganized Host_Init a bit, merged away a few functions (such as COM_CheckRegistered and COM_InitArgv) and changed some others, now registers several cvars earlier in the startup process
integrated patch from div0 for sys_colortranslation and sys_specialcharactertranslation cvars which control the translation of color codes and Quake characters for terminal output on stdout, this gets rid of the hideous ^7 on every line and makes colored text show up properly using ANSI color codes on most platforms (on windows the color codes are simply stripped because ANSI is not supported by windows terminals)

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

14 years agono longer has time or team columns in non-QW games
havoc [Mon, 14 Aug 2006 23:46:30 +0000 (23:46 +0000)]
no longer has time or team columns in non-QW games

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

14 years agopatch from div0: clamp "ping" reply valies in 0..9999 to prevent misparsing in case...
havoc [Mon, 14 Aug 2006 22:55:34 +0000 (22:55 +0000)]
patch from div0: clamp "ping" reply valies in 0..9999 to prevent misparsing in case of uninitialized ping values

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

14 years agopatch from div0: Send download requirements at an earlier time to cause less message...
havoc [Mon, 14 Aug 2006 22:54:32 +0000 (22:54 +0000)]
patch from div0: Send download requirements at an earlier time to cause less message spam with the disconnect-and-reconnect download method

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

14 years agooops forgot this from the cd loop/play named tracks patch
havoc [Mon, 14 Aug 2006 22:54:01 +0000 (22:54 +0000)]
oops forgot this from the cd loop/play named tracks patch

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

14 years agopatch from div0:
havoc [Mon, 14 Aug 2006 22:53:15 +0000 (22:53 +0000)]
patch from div0:
instead of downloading in game and reloading the map when it is done (which
caused crashes because of multiple world models in the model list and didn't
also reload sounds and models), disconnect while downloading and execute the
connect command to reconnect later

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

14 years agopatch from div0:
havoc [Mon, 14 Aug 2006 22:51:43 +0000 (22:51 +0000)]
patch from div0:
fix console weirdnesses:
* empty lines kill command history (instead don't add empty lines to the history)
* cursor position and history line length were done the wrong way, positioning
  the cursor outside of the line or only recalling part of a line

NOTE: maybe it is better to move the Con_Printf BELOW the return so an empty
prompt isn't even displayed? bash does not do it like that, IRC clients do it
like that, and personally I don't care

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

14 years agopatch from div0: cd loop and cd play commands now support named tracks (explicitly...
havoc [Mon, 14 Aug 2006 22:49:49 +0000 (22:49 +0000)]
patch from div0: cd loop and cd play commands now support named tracks (explicitly specifying a music track to play) as well as numbered (cd/fake cd)

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

14 years agoreenabled the quake 'fall out of level' bug, to make the scorpion near the start...
havoc [Mon, 14 Aug 2006 05:14:24 +0000 (05:14 +0000)]
reenabled the quake 'fall out of level' bug, to make the scorpion near the start of hip1m2 fall out of the ceiling as it was meant to (this probably fixes a lot of other bugs in various broken maps)

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

14 years ago494
havoc [Thu, 10 Aug 2006 09:35:30 +0000 (09:35 +0000)]

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

14 years agohush warnings about strcat and other redefinitions by undefining them first
havoc [Sat, 5 Aug 2006 20:03:21 +0000 (20:03 +0000)]
hush warnings about strcat and other redefinitions by undefining them first

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

14 years agoRemoved all calls to strcpy; most of them are now calls to strlcpy or memcpy.
molivier [Sat, 5 Aug 2006 12:31:03 +0000 (12:31 +0000)]
Removed all calls to strcpy; most of them are now calls to strlcpy or memcpy.

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

14 years agoThe inclusion of pthread.h was missing
molivier [Sat, 5 Aug 2006 12:30:03 +0000 (12:30 +0000)]
The inclusion of pthread.h was missing

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

14 years agoReplaced all calls to str[n]cat and strncpy by calls to strlcat and strlcpy respectively
molivier [Fri, 4 Aug 2006 11:37:32 +0000 (11:37 +0000)]
Replaced all calls to str[n]cat and strncpy by calls to strlcat and strlcpy respectively

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

14 years agofix memory alignment issue when saving odd-width screenshots (set GL_PACK_ALIGNMENT...
havoc [Thu, 3 Aug 2006 15:25:42 +0000 (15:25 +0000)]
fix memory alignment issue when saving odd-width screenshots (set GL_PACK_ALIGNMENT to 1), thanks div0

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

14 years agomore tweaks trying to improve precision on q3map2-compiled terrain models in q3bsp
havoc [Mon, 31 Jul 2006 18:39:19 +0000 (18:39 +0000)]
more tweaks trying to improve precision on q3map2-compiled terrain models in q3bsp

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

14 years agotrying to improve terrain collision brush issues in q3bsp
havoc [Mon, 31 Jul 2006 13:57:42 +0000 (13:57 +0000)]
trying to improve terrain collision brush issues in q3bsp

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

14 years agoadded gamepad/joystick support to the SDL client, this uses completely different...
havoc [Mon, 31 Jul 2006 10:00:45 +0000 (10:00 +0000)]
added gamepad/joystick support to the SDL client, this uses completely different cvars from the windows one, and is noticably less weird as a result :)

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

14 years agoimproved plane distance epsilon checking and improved precision when converting brush...
havoc [Mon, 31 Jul 2006 09:59:14 +0000 (09:59 +0000)]
improved plane distance epsilon checking and improved precision when converting brush planes to polygons (by finding a roughly minimal bounding box for the plane to polygon projection), this should reduce collision brush issues on modeled terrain in q3bsp maps

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

14 years ago491
havoc [Wed, 26 Jul 2006 13:57:58 +0000 (13:57 +0000)]

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

14 years agofixed an improperly filed change request
havoc [Wed, 26 Jul 2006 13:51:03 +0000 (13:51 +0000)]
fixed an improperly filed change request

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

14 years ago495
havoc [Wed, 26 Jul 2006 13:43:53 +0000 (13:43 +0000)]

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

14 years ago'Catch' divisions by zero in the VM:
black [Wed, 26 Jul 2006 10:35:38 +0000 (10:35 +0000)]
'Catch' divisions by zero in the VM:
print a warning if developer >= 1 and return 0.0 as result of the operation.

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

14 years ago498
havoc [Wed, 26 Jul 2006 05:24:48 +0000 (05:24 +0000)]

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

14 years agouse VM_Warning instead of Con_Printf+PRVM_PrintState
havoc [Wed, 26 Jul 2006 05:19:31 +0000 (05:19 +0000)]
use VM_Warning instead of Con_Printf+PRVM_PrintState

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

14 years agochanged PF_WARNING to not do a return
havoc [Wed, 26 Jul 2006 05:16:42 +0000 (05:16 +0000)]
changed PF_WARNING to not do a return
changed PF_WARNING define to VM_Warning function
changed Con_Printf warnings in QC builtins to VM_Warning calls

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

14 years agoprint out profile report above runaway loop counter error
havoc [Tue, 25 Jul 2006 10:38:17 +0000 (10:38 +0000)]
print out profile report above runaway loop counter error

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

14 years agoenabled player scoreboard in coop (note that this overrides the intermission screen)
havoc [Tue, 25 Jul 2006 06:33:48 +0000 (06:33 +0000)]
enabled player scoreboard in coop (note that this overrides the intermission screen)

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

14 years agosome cleanups and improved warnings
havoc [Mon, 24 Jul 2006 04:03:36 +0000 (04:03 +0000)]
some cleanups and improved warnings
added Prydon campaign to multiplayer setup menu, fixed a bizarre crash in game episode lookup code by rewriting it

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

14 years agoMathieu should have set the snd_* cvars properly, not poking .integer
havoc [Sun, 23 Jul 2006 11:41:34 +0000 (11:41 +0000)]
Mathieu should have set the snd_* cvars properly, not poking .integer

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

14 years agodisabled WAVE_FORMAT_EXTENSIBLE support as it does not seem to be working
havoc [Sun, 23 Jul 2006 11:00:35 +0000 (11:00 +0000)]
disabled WAVE_FORMAT_EXTENSIBLE support as it does not seem to be working

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

14 years agoadded libpng.so fallback name, primarily for FreeBSD
havoc [Sat, 22 Jul 2006 10:36:47 +0000 (10:36 +0000)]
added libpng.so fallback name, primarily for FreeBSD

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

14 years agoremove testing prints (forgot to remove them before commiting)
havoc [Fri, 21 Jul 2006 22:55:51 +0000 (22:55 +0000)]
remove testing prints (forgot to remove them before commiting)

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

14 years agofix bug with items in a trap door in the ceiling in some usermade maps that made...
havoc [Fri, 21 Jul 2006 10:19:31 +0000 (10:19 +0000)]
fix bug with items in a trap door in the ceiling in some usermade maps that made them ride the door panels into the walls rather than fall

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

14 years agoreverting DirectSound buffer position wrapping code to something similar to the old...
havoc [Fri, 21 Jul 2006 07:16:18 +0000 (07:16 +0000)]
reverting DirectSound buffer position wrapping code to something similar to the old code (except using % instead of &)

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

14 years agochanged SECONDARY_BUFFER_SIZE to be a multiple of 32768 so that it is roughly a power...
havoc [Thu, 20 Jul 2006 04:29:54 +0000 (04:29 +0000)]
changed SECONDARY_BUFFER_SIZE to be a multiple of 32768 so that it is roughly a power of 2...

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

14 years ago471
havoc [Wed, 19 Jul 2006 09:44:04 +0000 (09:44 +0000)]

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

14 years agochanged Draw_CachePic to load both tga/png/jpg and lmp/wad images at once and take...
havoc [Wed, 19 Jul 2006 04:50:45 +0000 (04:50 +0000)]
changed Draw_CachePic to load both tga/png/jpg and lmp/wad images at once and take the pic size from the lmp/wad, and cleaned up parts of wad and lmp loading, eliminated SwapPic

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

14 years agodon't crash if r_restart is used in startup scripts before anything starts the video...
havoc [Tue, 18 Jul 2006 22:27:06 +0000 (22:27 +0000)]
don't crash if r_restart is used in startup scripts before anything starts the video system (fixed this by starting video system in r_restart if necessary)

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

14 years agoenabled old quake-style connection/query packets when hosting servers for old protoco...
havoc [Mon, 17 Jul 2006 23:24:30 +0000 (23:24 +0000)]
enabled old quake-style connection/query packets when hosting servers for old protocols, this should allow DP to host compatible NQ servers and such

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

14 years agofix a buffer overflow bug in InfoString_SetValue (thanks div0!), and increase userinf...
havoc [Mon, 17 Jul 2006 23:19:46 +0000 (23:19 +0000)]
fix a buffer overflow bug in InfoString_SetValue (thanks div0!), and increase userinfo and serverinfo strings to 1280 bytes each (from 196 and 512 respectively)

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

14 years agoadded detection of 4 more surfaceparms to hush warnings
havoc [Mon, 10 Jul 2006 07:56:26 +0000 (07:56 +0000)]
added detection of 4 more surfaceparms to hush warnings

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

14 years agochanged how ping report hiding operates, so that it only hides one ping report for...
havoc [Mon, 10 Jul 2006 07:35:06 +0000 (07:35 +0000)]
changed how ping report hiding operates, so that it only hides one ping report for each ping command issued by the scoreboard

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

14 years agofix bug where realtime was used instead of cl.time in player times on scoreboard
havoc [Mon, 10 Jul 2006 06:58:17 +0000 (06:58 +0000)]
fix bug where realtime was used instead of cl.time in player times on scoreboard

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

14 years agoadded bestweapon command
havoc [Sun, 9 Jul 2006 09:54:52 +0000 (09:54 +0000)]
added bestweapon command

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

14 years agoadded ping and status command output parsing in the client, currently this is used...
havoc [Sun, 9 Jul 2006 08:34:39 +0000 (08:34 +0000)]
added ping and status command output parsing in the client, currently this is used to get pings in the scoreboard on Quake servers (and of course older DP servers), the server sends a pingplreport command after the human-readable ping report so that the packet loss display works (but only if the server supports this), changed client to send ping command instead of pings (at least until the next protocol version increase) and the client will not print ping report messages while the scoreboard is displayed.  the status command parsing is not actually used at this time but could be the basis of iplog support

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

14 years agocleaned up cl_netinputpacketspersecond code a little for more readability (no change...
havoc [Sun, 9 Jul 2006 08:28:43 +0000 (08:28 +0000)]
cleaned up cl_netinputpacketspersecond code a little for more readability (no change in behavior)

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

14 years agohide ping and packetloss displays if the values are both 0 (bots and local player...
havoc [Sat, 8 Jul 2006 09:34:54 +0000 (09:34 +0000)]
hide ping and packetloss displays if the values are both 0 (bots and local player for instance)

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

14 years agoadded ping and packet loss display to scoreboard, and pings/pingplreport commands...
havoc [Sat, 8 Jul 2006 09:24:58 +0000 (09:24 +0000)]
added ping and packet loss display to scoreboard, and pings/pingplreport commands to make it work without changing protocol and without breaking demo compatibility either, this can work on any server that supports the pings command and replies with pingplreport
revised scoreboard layout and added column titles above it

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

14 years agoAdded 3D sound support to the Win32 backend (DirectSound and MMSYSTEM), i.e. to the...
molivier [Sat, 8 Jul 2006 08:59:55 +0000 (08:59 +0000)]
Added 3D sound support to the Win32 backend (DirectSound and MMSYSTEM), i.e. to the WGL version

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

14 years agochanged most COM_ParseToken calls to COM_ParseTokenConsole, this fixed the kills...
havoc [Fri, 7 Jul 2006 04:19:55 +0000 (04:19 +0000)]
changed most COM_ParseToken calls to COM_ParseTokenConsole, this fixed the kills listing in the savegame menu

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

14 years agowhitespace on blank lines removed
havoc [Fri, 7 Jul 2006 04:19:05 +0000 (04:19 +0000)]
whitespace on blank lines removed

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

14 years agofixed transfusion data check (the mainmenu item numbering starts at 1, not 0)
havoc [Tue, 4 Jul 2006 07:03:18 +0000 (07:03 +0000)]
fixed transfusion data check (the mainmenu item numbering starts at 1, not 0)

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

14 years agoCleaned the ugly code I committed for DP_FS_BASEDIR support (the environment variable...
molivier [Mon, 3 Jul 2006 19:46:07 +0000 (19:46 +0000)]
Cleaned the ugly code I committed for DP_FS_BASEDIR support (the environment variable is now only defined when needed)

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

14 years agofix issue with DP_FS_BASEDIR on Mac
havoc [Mon, 3 Jul 2006 07:31:55 +0000 (07:31 +0000)]
fix issue with DP_FS_BASEDIR on Mac

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

14 years agomade nexuiz missing data fallback menu apply to all games when their main menu image...
havoc [Mon, 3 Jul 2006 01:31:21 +0000 (01:31 +0000)]
made nexuiz missing data fallback menu apply to all games when their main menu image is missing (the Open Console and Quit options are more useful than a bunch of checker squares)

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

14 years agoforce a gamma update if v_hwgamma value changes between 1 and 2
havoc [Mon, 3 Jul 2006 00:56:42 +0000 (00:56 +0000)]
force a gamma update if v_hwgamma value changes between 1 and 2

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

14 years agoadded v_hwgamma 2 (forced gamma, ignores driver returning failure) for testing
havoc [Mon, 3 Jul 2006 00:11:03 +0000 (00:11 +0000)]
added v_hwgamma 2 (forced gamma, ignores driver returning failure) for testing

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

havoc [Mon, 3 Jul 2006 00:02:30 +0000 (00:02 +0000)]
clean up of FL_ONGROUND checks in MOVE_TOSS/FLY/FLYMISSILE/BOUNCE/BOUNCEMISSILE/STEP code, this fixes items and monsters sometimes being left floating in the air after a trap door opens or when riding a func_train (most notably in the lava room of r1m5 of mission pack 2)
added sv_gameplayfix_upwardvelocityclearsongroundflag cvar to allow the upward velocity gameplay fix to be disabled if desired

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

14 years agofixed DP_FS_BASEDIR passing to gcc by adding single quotes around the entire contents...
havoc [Sun, 2 Jul 2006 22:50:20 +0000 (22:50 +0000)]
fixed DP_FS_BASEDIR passing to gcc by adding single quotes around the entire contents of the -D parameter

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

14 years agoPatch from div0 to fix autosprite
sajt [Fri, 30 Jun 2006 22:45:58 +0000 (22:45 +0000)]
Patch from div0 to fix autosprite

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

14 years agoPatch from div0 to fix skyboxes in downloaded maps
sajt [Wed, 28 Jun 2006 08:30:26 +0000 (08:30 +0000)]
Patch from div0 to fix skyboxes in downloaded maps

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

14 years agoFixed a bug in Matrix4x4_CopyTranslateOnly... which is never called. Oh well.
sajt [Wed, 28 Jun 2006 08:11:31 +0000 (08:11 +0000)]
Fixed a bug in Matrix4x4_CopyTranslateOnly... which is never called. Oh well.

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

14 years agoRemoved the extra definitions of hton[sl] and ntoh[sl] since apparently they are...
molivier [Sun, 25 Jun 2006 17:42:37 +0000 (17:42 +0000)]
Removed the extra definitions of hton[sl] and ntoh[sl] since apparently they are not necessary on any platform DP supports

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

14 years agoYou can now set a different default base directory at compile time, by defining DP_FS...
molivier [Sun, 25 Jun 2006 17:35:17 +0000 (17:35 +0000)]
You can now set a different default base directory at compile time, by defining DP_FS_BASEDIR to the new value (ex: make DP_FS_BASEDIR=/usr/local/games/quake release)

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

14 years agoDecreased the OSS buffer size, and cleaned some code
molivier [Sun, 25 Jun 2006 17:00:07 +0000 (17:00 +0000)]
Decreased the OSS buffer size, and cleaned some code

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

14 years agoThe name of the SDL config program used by the makefiles is now configurable thanks...
molivier [Fri, 23 Jun 2006 19:51:29 +0000 (19:51 +0000)]
The name of the SDL config program used by the makefiles is now configurable thanks to the SDL_CONFIG variable (ex: make SDL_CONFIG=sdl11-config sdl-release). Its default value is "sdl-config"

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

14 years agofix gamma 'flicker' bug caused by gamma_forcenextframe being repeatedly set when...
havoc [Fri, 23 Jun 2006 06:31:32 +0000 (06:31 +0000)]
fix gamma 'flicker' bug caused by gamma_forcenextframe being repeatedly set when gamma fails

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

14 years agofix some stupid bugs in gamma update code (why didn't I remove the forcenextframe...
havoc [Thu, 22 Jun 2006 05:58:02 +0000 (05:58 +0000)]
fix some stupid bugs in gamma update code (why didn't I remove the forcenextframe variable?)

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

14 years agoMade S_ChooseCheaperFormat() a bit smarter
molivier [Tue, 20 Jun 2006 19:38:20 +0000 (19:38 +0000)]
Made S_ChooseCheaperFormat() a bit smarter

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

14 years agoFixed OGG Vorbis code when using OGGs with a sound frequency smaller than the sound...
molivier [Thu, 15 Jun 2006 06:13:08 +0000 (06:13 +0000)]
Fixed OGG Vorbis code when using OGGs with a sound frequency smaller than the sound output frequency (the code was wrongly using the OGG sound format instead of the output sound format to compute the streaming buffer size). Thanks to Dresk for reporting this problem

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

14 years agoreduce runaway loop counter limit from 1 billion to 10 million, as 1 billion takes...
havoc [Wed, 14 Jun 2006 16:22:11 +0000 (16:22 +0000)]
reduce runaway loop counter limit from 1 billion to 10 million, as 1 billion takes a while

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