divverent/darkplaces.git
9 years agostabilize showfps a bit
havoc [Sun, 12 Jul 2009 22:25:26 +0000 (22:25 +0000)]
stabilize showfps a bit

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

9 years agoget uintptr_t from vadefs.h on MSVC
divverent [Sun, 12 Jul 2009 12:03:11 +0000 (12:03 +0000)]
get uintptr_t from vadefs.h on MSVC

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

9 years agodoxygen comments and config file
divverent [Wed, 8 Jul 2009 15:32:32 +0000 (15:32 +0000)]
doxygen comments and config file

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

9 years agofix rounding of drawsetcliparea coordinates (but not using round(), as that is C99)
divverent [Wed, 8 Jul 2009 15:29:20 +0000 (15:29 +0000)]
fix rounding of drawsetcliparea coordinates (but not using round(), as that is C99)

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

9 years agothanks
divverent [Wed, 8 Jul 2009 15:26:29 +0000 (15:26 +0000)]
thanks

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

9 years agofixed several warnings that appear with -std=gnu99 -pedantic
havoc [Wed, 8 Jul 2009 00:45:04 +0000 (00:45 +0000)]
fixed several warnings that appear with -std=gnu99 -pedantic

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

9 years agofix saturation (how and why did this line disappear?)
divverent [Tue, 7 Jul 2009 20:09:30 +0000 (20:09 +0000)]
fix saturation (how and why did this line disappear?)

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

9 years agomore _int changes, but these are only in the commented out integer
havoc [Tue, 7 Jul 2009 19:22:28 +0000 (19:22 +0000)]
more _int changes, but these are only in the commented out integer
support

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

9 years agouse ivector for all vector copy instructions, not vector
havoc [Tue, 7 Jul 2009 18:29:49 +0000 (18:29 +0000)]
use ivector for all vector copy instructions, not vector

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

9 years agotwice as many models loadable (for LOD and stuff)
divverent [Mon, 6 Jul 2009 06:56:39 +0000 (06:56 +0000)]
twice as many models loadable (for LOD and stuff)

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

9 years agoadd an error message
divverent [Sun, 5 Jul 2009 18:49:21 +0000 (18:49 +0000)]
add an error message

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

9 years agofix buffer overruns in sv.model_precache
divverent [Sun, 5 Jul 2009 18:47:14 +0000 (18:47 +0000)]
fix buffer overruns in sv.model_precache

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

9 years agoSupport a separate texture matrix for the background layer.
divverent [Sun, 5 Jul 2009 17:18:52 +0000 (17:18 +0000)]
Support a separate texture matrix for the background layer.

Example shader stages using it:

{
map textures/savdm6ish/#lava1.jpg
}
{
map textures/final_rage/lava.blend.tga
tcMod rotate 50
tcMod scale 2 2
tcMod scroll 0.05 0.05
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}

NOTE: you still have to specify alphaGen vertex, or DP will not use the
secondary stage! To allow static mixing of two textures, the second texture
currently must have its own alpha channel.

Stuff also possible with this: detail textures...

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

9 years agofix typo in pqrcon
divverent [Sat, 4 Jul 2009 15:04:46 +0000 (15:04 +0000)]
fix typo in pqrcon

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

9 years agoadd a second trigger for the same incompatibility detection
divverent [Fri, 3 Jul 2009 09:11:51 +0000 (09:11 +0000)]
add a second trigger for the same incompatibility detection

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

9 years agoCPMA physics: force airaccelqw=1 when strafing if using CPMA-style modded strafe...
divverent [Fri, 3 Jul 2009 08:48:29 +0000 (08:48 +0000)]
CPMA physics: force airaccelqw=1 when strafing if using CPMA-style modded strafe acceleration (otherwise, it can be used as a weird movement exploit)

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

9 years agostringwidth(): add a third font size argument (optional) to help with later porting...
divverent [Wed, 1 Jul 2009 06:39:45 +0000 (06:39 +0000)]
stringwidth(): add a third font size argument (optional) to help with later porting to freetype

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

9 years agoproperly handle comments when looking for final ; of a line
divverent [Sat, 27 Jun 2009 20:07:30 +0000 (20:07 +0000)]
properly handle comments when looking for final ; of a line

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

9 years agobetter expand variables inside comments than breaking lots of otherwise working stuff...
divverent [Sat, 27 Jun 2009 20:04:06 +0000 (20:04 +0000)]
better expand variables inside comments than breaking lots of otherwise working stuff because of bad comment detection.

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

9 years agopatch from Lardarse that makes monsters/secrets show up if they are
havoc [Sat, 27 Jun 2009 10:56:56 +0000 (10:56 +0000)]
patch from Lardarse that makes monsters/secrets show up if they are
non-zero even if the total monsters/secrets is 0

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

9 years ago* don't expand cvars in comments
divverent [Tue, 23 Jun 2009 19:11:15 +0000 (19:11 +0000)]
* don't expand cvars in comments
* improve text definition of alias
* fix SDL cd loop bug

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

9 years agoteleport bit: always reset animation there too
divverent [Sun, 21 Jun 2009 20:22:20 +0000 (20:22 +0000)]
teleport bit: always reset animation there too

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

9 years agofix a crash in dpm + framegroups
divverent [Sun, 21 Jun 2009 20:14:31 +0000 (20:14 +0000)]
fix a crash in dpm + framegroups

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

9 years agofix framegroups file parsing out of bounds errors
divverent [Sun, 21 Jun 2009 19:49:11 +0000 (19:49 +0000)]
fix framegroups file parsing out of bounds errors

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

9 years agoSupport frame groups for ALL model formats (a slightly extended version of animinfo...
divverent [Sun, 21 Jun 2009 19:34:24 +0000 (19:34 +0000)]
Support frame groups for ALL model formats (a slightly extended version of animinfo, with a fourth element being 0 when the animation is not to be looped).
With this, all model formats can be self animated, but do not need to be (simply don't make a framegroups file if you wish it to be not self animated).

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

9 years agomessagemode/commandmode: clear the string on entering the mode
divverent [Sat, 20 Jun 2009 15:01:45 +0000 (15:01 +0000)]
messagemode/commandmode: clear the string on entering the mode

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

9 years agoexperimental motion blur code (original by Samual on http://dev.alientrap.org/attachm...
divverent [Fri, 19 Jun 2009 00:02:42 +0000 (00:02 +0000)]
experimental motion blur code (original by Samual on dev.alientrap.org/attachments/220/Motion_Blur_RC2.diff), needs adjustments especially for damage blur

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

9 years agowhen the engine is compiled with -DFILLALLCVARSWITHRUBBISH, there is an extra console...
divverent [Wed, 17 Jun 2009 13:41:00 +0000 (13:41 +0000)]
when the engine is compiled with -DFILLALLCVARSWITHRUBBISH, there is an extra console command fillallcvarswithrubbish that can be used to check for buffer overruns by putting very large strings into all cvars

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

9 years agocl_capturevideo_framestep
divverent [Tue, 16 Jun 2009 18:41:24 +0000 (18:41 +0000)]
cl_capturevideo_framestep
example: when set to 4, and cl_capturevideo_fps is 30
then DP will run at 120fps and capture at 30fps
currently pointless, will be great once motion blur is done

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

9 years agoMUCH more paranoid memory checking (use random address dependent sentinels)
divverent [Tue, 16 Jun 2009 15:19:46 +0000 (15:19 +0000)]
MUCH more paranoid memory checking (use random address dependent sentinels)

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

9 years agoDP_SV_BOUNCEFACTOR
divverent [Sat, 13 Jun 2009 18:36:58 +0000 (18:36 +0000)]
DP_SV_BOUNCEFACTOR

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

9 years agoshift netgraph up by sbar_info_pos;
divverent [Sat, 13 Jun 2009 17:43:07 +0000 (17:43 +0000)]
shift netgraph up by sbar_info_pos;
fix printf vulnerability in terencehill's ctrl-tab code

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

9 years agocontrastboost: fix a division by zero that can never happen ;)
divverent [Thu, 11 Jun 2009 10:38:05 +0000 (10:38 +0000)]
contrastboost: fix a division by zero that can never happen ;)

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

9 years agov_contrastboost: unclamp
divverent [Thu, 11 Jun 2009 10:32:25 +0000 (10:32 +0000)]
v_contrastboost: unclamp

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

9 years agopatch from RocketGuy for pqrcon command, to administrate proquake
havoc [Thu, 11 Jun 2009 02:08:32 +0000 (02:08 +0000)]
patch from RocketGuy for pqrcon command, to administrate proquake
servers

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

9 years agotypo
divverent [Wed, 10 Jun 2009 16:17:35 +0000 (16:17 +0000)]
typo

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

9 years agosbar_info_pos
divverent [Wed, 10 Jun 2009 15:31:19 +0000 (15:31 +0000)]
sbar_info_pos

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

9 years agomake tcgen environment work exactly like in Q3A (the previous code didn't just use...
divverent [Tue, 9 Jun 2009 10:06:49 +0000 (10:06 +0000)]
make tcgen environment work exactly like in Q3A (the previous code didn't just use pixels from the spheremap, it even left the bounds of it), but let it transform the reflected ray to worldspace so it can even be used on models

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

9 years agoparentheses error in cs_unproject
divverent [Mon, 8 Jun 2009 15:58:00 +0000 (15:58 +0000)]
parentheses error in cs_unproject

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

9 years agolarger cbuf
divverent [Mon, 8 Jun 2009 13:52:04 +0000 (13:52 +0000)]
larger cbuf

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

9 years agosimplify glsl code (we can do vec3(y))
divverent [Sat, 6 Jun 2009 13:02:26 +0000 (13:02 +0000)]
simplify glsl code (we can do vec3(y))

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

9 years agoconsole enhancements finally ready (changed mouse wheel/page down behaviour, text...
divverent [Sat, 6 Jun 2009 11:05:04 +0000 (11:05 +0000)]
console enhancements finally ready (changed mouse wheel/page down behaviour, text zoom, cvar value insertion)

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

9 years agoglsl: add a saturation adjustment r_glsl_saturation (set to 0 for grayscale, to 1...
divverent [Sat, 6 Jun 2009 10:36:53 +0000 (10:36 +0000)]
glsl: add a saturation adjustment r_glsl_saturation (set to 0 for grayscale, to 1 for unchanged (and highest fps), to 2 for extreme)

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

9 years agothis time, actually commit the matchpattgern fix
divverent [Tue, 2 Jun 2009 06:48:31 +0000 (06:48 +0000)]
this time, actually commit the matchpattgern fix

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

9 years agofix another race condition when stopping ALL sounds
divverent [Mon, 1 Jun 2009 15:30:11 +0000 (15:30 +0000)]
fix another race condition when stopping ALL sounds

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

9 years agofix a race condition in DP's sound handling; note: there may be more of them
divverent [Mon, 1 Jun 2009 15:25:29 +0000 (15:25 +0000)]
fix a race condition in DP's sound handling; note: there may be more of them

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

9 years agomake DP run in wine again
divverent [Sun, 31 May 2009 12:45:33 +0000 (12:45 +0000)]
make DP run in wine again

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

9 years agodon't check for "wgl" as extension name
divverent [Sun, 31 May 2009 11:26:07 +0000 (11:26 +0000)]
don't check for "wgl" as extension name

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

9 years agoprovide isdemo() to menu QC
divverent [Sat, 30 May 2009 17:48:13 +0000 (17:48 +0000)]
provide isdemo() to menu QC

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

9 years agoeven nicer :P
divverent [Fri, 29 May 2009 18:55:17 +0000 (18:55 +0000)]
even nicer :P

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

9 years agocolorize cvarlist and completion nicely
divverent [Fri, 29 May 2009 18:53:45 +0000 (18:53 +0000)]
colorize cvarlist and completion nicely

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

9 years agoapropos command
divverent [Thu, 28 May 2009 16:07:32 +0000 (16:07 +0000)]
apropos command

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

9 years agodo not exit comment by ;, only by linefeed
divverent [Thu, 28 May 2009 15:38:36 +0000 (15:38 +0000)]
do not exit comment by ;, only by linefeed

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

9 years agos/random()/rand()/, sorry
divverent [Thu, 28 May 2009 10:49:43 +0000 (10:49 +0000)]
s/random()/rand()/, sorry

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

9 years agoeffectinfo: properly handle staincolor and color together in PBLEND_INVMOD
divverent [Wed, 27 May 2009 05:45:34 +0000 (05:45 +0000)]
effectinfo: properly handle staincolor and color together in PBLEND_INVMOD

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

9 years agopatch by parasti; changes to his patch: no per function dprint for now
divverent [Wed, 27 May 2009 05:19:35 +0000 (05:19 +0000)]
patch by parasti; changes to his patch: no per function dprint for now

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

9 years agogive blood stains back
divverent [Tue, 26 May 2009 08:30:50 +0000 (08:30 +0000)]
give blood stains back

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

9 years agosrcon: add random digits to the the time
divverent [Mon, 25 May 2009 15:33:13 +0000 (15:33 +0000)]
srcon: add random digits to the the time
goal is to prevent replay attacks in a later change and increasing the time sync threshold

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

9 years agoadd a note that for secure rcon, client and server clocks need to be synced
divverent [Sun, 24 May 2009 20:21:43 +0000 (20:21 +0000)]
add a note that for secure rcon, client and server clocks need to be synced

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

9 years agomore improvements, making 0x808080 neutral stain color
divverent [Sun, 24 May 2009 19:49:05 +0000 (19:49 +0000)]
more improvements, making 0x808080 neutral stain color

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

9 years agoparticle effectinfo: new parameters
divverent [Sun, 24 May 2009 19:41:40 +0000 (19:41 +0000)]
particle effectinfo: new parameters
  staintex <first> <last>
  staincolor <mincolor> <maxcolor> (gets multiplied by color)

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

9 years agoline editing: new binds ctrl-q (push line to history) and ctrl-u (delete line), simil...
divverent [Sun, 24 May 2009 19:32:10 +0000 (19:32 +0000)]
line editing: new binds ctrl-q (push line to history) and ctrl-u (delete line), similar to zsh

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

10 years agoincreased _snd_mixahead from 0.1 to 0.11 to fix static problems on Vista
havoc [Fri, 22 May 2009 10:32:45 +0000 (10:32 +0000)]
increased _snd_mixahead from 0.1 to 0.11 to fix static problems on Vista
when using the waveOut code

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

10 years agofix bug in console backscroll overflow handlign
divverent [Thu, 21 May 2009 16:34:01 +0000 (16:34 +0000)]
fix bug in console backscroll overflow handlign

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

10 years agoadd some missing casts
divverent [Wed, 20 May 2009 19:43:13 +0000 (19:43 +0000)]
add some missing casts

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

10 years agonew supercontents flags: BOTCLIP (matching Q3's botclip), and OPAQUE (matching anythi...
divverent [Wed, 20 May 2009 17:29:41 +0000 (17:29 +0000)]
new supercontents flags: BOTCLIP (matching Q3's botclip), and OPAQUE (matching anything fully opaque, good for line-of-sight checks)

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

10 years agoimprove abstraction of console buffer access; remove now unnecessary accessor macros
divverent [Wed, 20 May 2009 06:11:07 +0000 (06:11 +0000)]
improve abstraction of console buffer access; remove now unnecessary accessor macros

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

10 years agoimprove abstraction of the console buffers; console drawing still needs to be changed...
divverent [Wed, 20 May 2009 05:53:12 +0000 (05:53 +0000)]
improve abstraction of the console buffers; console drawing still needs to be changed to not use the conbuffer_t struct directly

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

10 years agoimproved persistent input history; now independent buffers are used again, by factori...
divverent [Wed, 20 May 2009 05:21:32 +0000 (05:21 +0000)]
improved persistent input history; now independent buffers are used again, by factoring the buffer handling code out of console code

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

10 years agoreworked default address cvars to be empty for default interfaces, this
havoc [Sun, 17 May 2009 22:17:55 +0000 (22:17 +0000)]
reworked default address cvars to be empty for default interfaces, this
avoids resolving an IP6 address using system calls

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

10 years agofix an addrinfo leak when getaddrinfo returns an addrinfo that is not
havoc [Sun, 17 May 2009 22:16:58 +0000 (22:16 +0000)]
fix an addrinfo leak when getaddrinfo returns an addrinfo that is not
inet or inet6

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

10 years agotry only one port on ip6 if ip4 succeeded, this is to reduce console
havoc [Sun, 17 May 2009 21:23:12 +0000 (21:23 +0000)]
try only one port on ip6 if ip4 succeeded, this is to reduce console
spam

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

10 years agoalso block lines starting with "quit " from the history
divverent [Sun, 17 May 2009 19:03:27 +0000 (19:03 +0000)]
also block lines starting with "quit " from the history

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

10 years agoargh, should be called darkplaces_history.txt (like darkplaces_iplog.txt)
divverent [Sun, 17 May 2009 19:00:10 +0000 (19:00 +0000)]
argh, should be called darkplaces_history.txt (like darkplaces_iplog.txt)

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

10 years agoexperimental new persistent console history (uses same buffer as console output)...
divverent [Sun, 17 May 2009 18:59:45 +0000 (18:59 +0000)]
experimental new persistent console history (uses same buffer as console output), file name = dp_history.txt, similar to .bash_history

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

10 years agoadd a missing cast
divverent [Sat, 16 May 2009 18:00:00 +0000 (18:00 +0000)]
add a missing cast

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

10 years agofix another typo
divverent [Sat, 16 May 2009 17:58:44 +0000 (17:58 +0000)]
fix another typo

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

10 years agofix latest commit :P
divverent [Sat, 16 May 2009 17:54:17 +0000 (17:54 +0000)]
fix latest commit :P

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

10 years agoprint something on "name" length overflow
divverent [Sat, 16 May 2009 17:05:41 +0000 (17:05 +0000)]
print something on "name" length overflow

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

10 years agodon't allocate lightmaps for water surfaces without lightmaps, and do
havoc [Fri, 15 May 2009 08:46:20 +0000 (08:46 +0000)]
don't allocate lightmaps for water surfaces without lightmaps, and do
not assign lightmap texture blocks to non-lightmapped surfaces

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

10 years agoadd a couple more things back
havoc [Thu, 14 May 2009 22:25:55 +0000 (22:25 +0000)]
add a couple more things back

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

10 years agofix compatibility with pre-XP windows versions
havoc [Thu, 14 May 2009 21:23:59 +0000 (21:23 +0000)]
fix compatibility with pre-XP windows versions

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

10 years agorequire WinXP or higher for molivier's latest changes.
divverent [Thu, 14 May 2009 19:28:47 +0000 (19:28 +0000)]
require WinXP or higher for molivier's latest changes.
Good bye, DP on Win2k and below.

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

10 years agotiny code cleanups
divverent [Thu, 14 May 2009 19:03:43 +0000 (19:03 +0000)]
tiny code cleanups

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

10 years agoFixed a invalid use of the sizeof() operator. Thanks to OpenBSD's custom GCC for...
molivier [Thu, 14 May 2009 18:39:25 +0000 (18:39 +0000)]
Fixed a invalid use of the sizeof() operator. Thanks to OpenBSD's custom GCC for the warning.

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

10 years agoremove one unneeded cdPlaying check
divverent [Thu, 14 May 2009 14:46:06 +0000 (14:46 +0000)]
remove one unneeded cdPlaying check

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

10 years agoFixes by terrencehill and me:
divverent [Thu, 14 May 2009 09:08:13 +0000 (09:08 +0000)]
Fixes by terrencehill and me:
- better remapping handling of mixed fake and real cdtrack remappings
- fixed bgmvolume handling with CDs
- resume CD audio before stopping (SDL requires that)
- "cd" command showing help
- "cd reset" now always stops
- "cd rescan" command (don't ask me what it's good for)
- apparently work around SDL bug with looping CD tracks after pause and resume

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

10 years agor_speeds: show current clusterindex
divverent [Thu, 14 May 2009 08:34:39 +0000 (08:34 +0000)]
r_speeds: show current clusterindex
r_drawportals: draw cluster portals with more alpha than non-cluster portals (needs better visualization still)

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

10 years agoIncreased the size of the text box containing the name of the server to join, so...
molivier [Thu, 14 May 2009 05:41:03 +0000 (05:41 +0000)]
Increased the size of the text box containing the name of the server to join, so it can now contain a full IPv6 address

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

10 years agoFixed IPv6 support, including the addition of the master server messages "getserversE...
molivier [Thu, 14 May 2009 05:40:38 +0000 (05:40 +0000)]
Fixed IPv6 support, including the addition of the master server messages "getserversExt" and "getserversExtResponse"

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

10 years agoa new "which" command showing which pk3 a file is from
divverent [Tue, 12 May 2009 11:55:14 +0000 (11:55 +0000)]
a new "which" command showing which pk3 a file is from

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

10 years agom_accelerate_* cvars
divverent [Tue, 12 May 2009 06:23:04 +0000 (06:23 +0000)]
m_accelerate_* cvars

My values for my Razer Diamondback 3G:

sensitivity 2
m_accelerate 1.7
m_accelerate_minspeed 5000
m_accelerate_maxspeed 10000
m_accelerate_filter 0.1

Does not interfere with regular aiming, but provides easier 180 degrees turns.

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

10 years agosimplifying Warsow-style physics code even more, as it now can use a common code...
divverent [Fri, 8 May 2009 09:58:13 +0000 (09:58 +0000)]
simplifying Warsow-style physics code even more, as it now can use a common code path with Quake-style physics (the only difference there is is when moving forward only).

This could be done after the observation that CPMA-style acceleration never kicks in in Warsow mode.

The sv_aircontrol is now expected to be zero in Warsow-style mode, as it does nothing in that mode anyway! If you do set it, you get Warsow and CPMA air control added!

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

10 years agoanalyzing the movement algorithm from warsow yielded that CPM_PM_Aircontrol is called...
divverent [Fri, 8 May 2009 09:45:29 +0000 (09:45 +0000)]
analyzing the movement algorithm from warsow yielded that CPM_PM_Aircontrol is called but never does anything. Removed the call then...

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

10 years agonet_slist_favorites: allow DNS names in the list (they are resolved whenever the...
divverent [Fri, 8 May 2009 07:19:29 +0000 (07:19 +0000)]
net_slist_favorites: allow DNS names in the list (they are resolved whenever the cvar is changed)

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

10 years agooops, fix cvar default
divverent [Thu, 7 May 2009 08:42:34 +0000 (08:42 +0000)]
oops, fix cvar default

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

10 years agocl_input: movevars for "warsowbunny" mode, also implemented in Nexuiz cl_physics...
divverent [Thu, 7 May 2009 08:24:38 +0000 (08:24 +0000)]
cl_input: movevars for "warsowbunny" mode, also implemented in Nexuiz cl_physics.qc soon

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

10 years agocl_movement: move crouch handling so that sv_maxairspeed*0.5 is maximum crouching...
divverent [Wed, 6 May 2009 06:54:24 +0000 (06:54 +0000)]
cl_movement: move crouch handling so that sv_maxairspeed*0.5 is maximum crouching speed, not sv_maxspeed*0.5 (matches Nexuiz)

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

10 years agoCPMA-style cl_movement physics settings possible! Variables for it:
divverent [Tue, 5 May 2009 07:55:47 +0000 (07:55 +0000)]
CPMA-style cl_movement physics settings possible! Variables for it:
sv_aircontrol
sv_maxairstrafespeed
sv_airstrafeaccel
sv_airstopaccel

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

10 years agofix a couple compatibility issues with Nehahra
havoc [Fri, 1 May 2009 18:22:37 +0000 (18:22 +0000)]
fix a couple compatibility issues with Nehahra

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