]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
13 years agomoved libircclient include to irc.h
Akari [Mon, 7 Feb 2011 11:03:55 +0000 (13:03 +0200)]
moved libircclient include to irc.h

13 years agoCL_Irc_Init() call
Akari [Mon, 7 Feb 2011 11:00:11 +0000 (13:00 +0200)]
CL_Irc_Init() call

13 years agointeractive input, makefile, con_print mutex
Akari [Mon, 7 Feb 2011 10:56:40 +0000 (12:56 +0200)]
interactive input, makefile, con_print mutex

13 years agoimported irc.h/c from nexuiz version
Akari [Mon, 7 Feb 2011 10:36:56 +0000 (12:36 +0200)]
imported irc.h/c from nexuiz version

13 years agoupdate copyright year
havoc [Sat, 29 Jan 2011 14:08:38 +0000 (14:08 +0000)]
update copyright year

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10779 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=dc52e99fd1daab6eb01b0fca161bc372f1de8576

13 years agoprevent a segfault in case a bsp file has zero nodes (happens on broken input to...
divverent [Sat, 29 Jan 2011 10:14:13 +0000 (10:14 +0000)]
prevent a segfault in case a bsp file has zero nodes (happens on broken input to q3map2)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10778 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5e3093c90aec7351f328c2fca255c9e5ee774f2a

13 years agofix a crash on edict_num(32767)
divverent [Sat, 29 Jan 2011 08:32:32 +0000 (08:32 +0000)]
fix a crash on edict_num(32767)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10777 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6ac450a8006f8baa9c271ce8ccb1353b0310a630

13 years agofix a major performance issue with the GL11/GL13 path for rtlights where
havoc [Tue, 18 Jan 2011 17:29:54 +0000 (17:29 +0000)]
fix a major performance issue with the GL11/GL13 path for rtlights where
it did not request BATCHNEED_NOGAPS and thus processed a huge number of
unnecessary vertices

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10709 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=306d489af60e5192282cff848d2dcc5de6ef4d6c

13 years agocache multiple loaded instances of the same font (TODO: can we also cache the freetyp...
divverent [Sat, 22 Jan 2011 19:09:48 +0000 (19:09 +0000)]
cache multiple loaded instances of the same font (TODO: can we also cache the freetype object itself? probably not without major changes, as these are size specific); saves about 150M memory use in Xonotic

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10715 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=494fb0738e541883371b17f31c2a94471476c6f5

13 years agosync libjpeg support from makefile to BSDmakefile
divverent [Fri, 21 Jan 2011 06:02:20 +0000 (06:02 +0000)]
sync libjpeg support from makefile to BSDmakefile

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10714 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=97cda4b5ece4358bc99c7e6ddaa99e7fcc4c5e19

13 years agoVM_sprintf: properly handle "%02d"
divverent [Thu, 20 Jan 2011 06:33:18 +0000 (06:33 +0000)]
VM_sprintf: properly handle "%02d"

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10712 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7febec2a626a4a37a853845eba12835d6193dc3f

13 years agolower particle limit when using DP_SMALLMEMORY builds
havoc [Tue, 18 Jan 2011 18:22:23 +0000 (18:22 +0000)]
lower particle limit when using DP_SMALLMEMORY builds

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10710 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b31882ee8ec3626bef4a572d279a0b44faceb308

13 years agofix wateralpha
divverent [Tue, 18 Jan 2011 08:51:05 +0000 (08:51 +0000)]
fix wateralpha

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10708 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0ae75d25abe8396429aa8c6bfe7521090e36527f

13 years agofix a typo in the cg shader setup
havoc [Mon, 17 Jan 2011 18:00:43 +0000 (18:00 +0000)]
fix a typo in the cg shader setup

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10707 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=19130c110cf6be04481edf3b792ac77e625f1653

13 years agomake prvm_language saved
divverent [Mon, 17 Jan 2011 15:28:28 +0000 (15:28 +0000)]
make prvm_language saved

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10706 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=298be39bde342dc131650c9fe7b028ece4bb8e96

13 years agofix console margin calculation
divverent [Mon, 17 Jan 2011 15:28:26 +0000 (15:28 +0000)]
fix console margin calculation

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10705 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=47dd58dd4e8e1e1f20e5a9511ccb77aabac03608

13 years agofix description of prvm_language dumping mode
divverent [Mon, 17 Jan 2011 05:44:00 +0000 (05:44 +0000)]
fix description of prvm_language dumping mode

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10704 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=16bade1d6011ef0019e9690c75bb8ad831e23d93

13 years agofix alias word combining
divverent [Sat, 15 Jan 2011 18:12:24 +0000 (18:12 +0000)]
fix alias word combining

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10703 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=872ba9d240c7105d8b7cee22e6719de8cc3d0615

13 years agomake it possible to turn off missing DDS file logging
divverent [Fri, 14 Jan 2011 23:51:56 +0000 (23:51 +0000)]
make it possible to turn off missing DDS file logging

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10702 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=2a2041af837dfe059ebbae6f767e858fdc1d1a46

13 years agouse the proper filename.pot instead of filename.dump.po for the empty .po file
divverent [Fri, 14 Jan 2011 21:01:28 +0000 (21:01 +0000)]
use the proper filename.pot instead of filename.dump.po for the empty .po file

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10701 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=88b6000823920523565bc2bb5c63d4315dead1a9

13 years agoadded r_enableshadowvolumes cvar, this defaults to 1 but can be turned
havoc [Fri, 14 Jan 2011 00:24:59 +0000 (00:24 +0000)]
added r_enableshadowvolumes cvar, this defaults to 1 but can be turned
off to save a small amount of memory and speed up loading (shadowmaps
still work with it off)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10700 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=59a48380a9f57b995d90772d5b6ecb896892bc26

13 years agofix a memory leak of glsl shader permutations
divverent [Thu, 13 Jan 2011 06:57:04 +0000 (06:57 +0000)]
fix a memory leak of glsl shader permutations

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10699 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7449460cc77d62f6abe97a52d79f734d1fce1bb5

13 years agoadded cvar mod_bsp_portalize to decide whether to generate portals for
havoc [Thu, 13 Jan 2011 03:49:30 +0000 (03:49 +0000)]
added cvar mod_bsp_portalize to decide whether to generate portals for
culling purposes, this now defaults to 0, reducing load time but
disabling certain features (the only visible feature affected is
r_drawportals)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10698 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0faf958e89353e88ebab82fcea3fae80d0b126d1

13 years agomake infobar height configurable
divverent [Wed, 12 Jan 2011 19:41:24 +0000 (19:41 +0000)]
make infobar height configurable

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10697 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=71b12f4105264dc0bb0f307c8c06de09ecb44cc3

13 years agofix the latest fix to Font_IndexForSize
divverent [Tue, 11 Jan 2011 21:49:22 +0000 (21:49 +0000)]
fix the latest fix to Font_IndexForSize

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10696 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a5994457f2c74657ee504fbec035c7204dcb6b84

13 years agofix a data type in Font_IndexForSize
divverent [Tue, 11 Jan 2011 21:40:57 +0000 (21:40 +0000)]
fix a data type in Font_IndexForSize

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10695 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=cbf5cd9ae812dcdcfc65da44b28d356131c40169

13 years agodrawcolorcodedstring: support full 6 parms (added starting rgb) and returns color...
vortex [Fri, 7 Jan 2011 21:51:34 +0000 (21:51 +0000)]
drawcolorcodedstring: support full 6 parms (added starting rgb) and returns color of the last character so colortags can affect multiline draw.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10694 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=475f59bf292f02ea9e17fb8aa96eb1288e7e9d6d

13 years agoAdded wasfreed() to menuqc builtinlist. Hushed "VM_bufstr_get: invalid string index...
vortex [Fri, 7 Jan 2011 18:31:37 +0000 (18:31 +0000)]
Added wasfreed() to menuqc builtinlist. Hushed "VM_bufstr_get: invalid string index" warning.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10693 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f8310c7ac538900f83222787acc7971d113f79b7

13 years agoget rid of more clang warnings
divverent [Mon, 3 Jan 2011 07:19:48 +0000 (07:19 +0000)]
get rid of more clang warnings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10692 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=20c4bfe6a88e9c10ad7834c4734b0105fc824033

13 years agoget rid of clang warnings for SETPVSBIT/CLEARPVSBIT
divverent [Mon, 3 Jan 2011 07:19:41 +0000 (07:19 +0000)]
get rid of clang warnings for SETPVSBIT/CLEARPVSBIT

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10691 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1f05f42cb9c14b8d8417696283ef73e2ff641fed

13 years agofix a warning by clang
divverent [Sun, 2 Jan 2011 22:51:37 +0000 (22:51 +0000)]
fix a warning by clang

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10690 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=85fd729da291daea50c664e12f15d03341fa8088

13 years agoBetter perspective effect for SPR_OVERHEAD, added global xy scale for them.
vortex [Sun, 2 Jan 2011 16:48:22 +0000 (16:48 +0000)]
Better perspective effect for SPR_OVERHEAD, added global xy scale for them.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10689 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=9c97aa67a10e44faecab2c11a0a1938e228b2489

13 years agofix a stupid extra declaration in the glsl shader
divverent [Wed, 29 Dec 2010 18:09:55 +0000 (18:09 +0000)]
fix a stupid extra declaration in the glsl shader

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10688 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7913e454779e6df44a88a03de7a928c7941b58ca

13 years agofix the overflow checks in snd_ogg to handle different input and output sampling...
divverent [Wed, 29 Dec 2010 10:59:30 +0000 (10:59 +0000)]
fix the overflow checks in snd_ogg to handle different input and output sampling rates

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10687 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=2e076191e5d2478fac8ff553345fc3fc896dfa5a

13 years agofix a bug in special character translation leading to console spam
divverent [Mon, 27 Dec 2010 11:00:57 +0000 (11:00 +0000)]
fix a bug in special character translation leading to console spam

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10686 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=336f3f613c0d4bb61b4eda5b966bc84f1eb37dc5

13 years agofix handling of the restart-animation bit
divverent [Sun, 26 Dec 2010 20:14:31 +0000 (20:14 +0000)]
fix handling of the restart-animation bit

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10685 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=559f4029197def80d57df8cb2cd9534ecac6501b

13 years agoavgcolor calculation: also calculate alpha for DXT3
divverent [Sun, 26 Dec 2010 09:59:49 +0000 (09:59 +0000)]
avgcolor calculation: also calculate alpha for DXT3

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10684 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ca82978880bd5f5e58d316f757ac685783dc07a7

13 years agoshut down a lot of startup developer spam
divverent [Sat, 25 Dec 2010 17:51:28 +0000 (17:51 +0000)]
shut down a lot of startup developer spam

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10683 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=778ce6dee85f3f6e5e6d4211f3ef84e60191f695

13 years agoless unix terminal spam if developer <= 0 (should this get an option or not? probably...
divverent [Sat, 25 Dec 2010 17:43:37 +0000 (17:43 +0000)]
less unix terminal spam if developer <= 0 (should this get an option or not? probably not, anyone who wants to see this can do developer 1); developer stuff still by default ends up in logfile, rcon replies, condump

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10682 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ced116bd186ded94c1487b51dad53dc6c313b2c9

13 years agofix a C++ error
divverent [Sat, 25 Dec 2010 16:55:15 +0000 (16:55 +0000)]
fix a C++ error

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10681 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d69b47180eac5d4e158bc9a3c7dbc13547eb8de2

13 years agofix avgcolor calculation with fake S3TC decoding
divverent [Sat, 25 Dec 2010 16:48:06 +0000 (16:48 +0000)]
fix avgcolor calculation with fake S3TC decoding

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10680 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=61d444dcf583b50771edb971d18126cfc243b352

13 years agoadd a trivial quarter-res S3TC decoder to DDS loading
divverent [Sat, 25 Dec 2010 16:22:57 +0000 (16:22 +0000)]
add a trivial quarter-res S3TC decoder to DDS loading

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10679 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=76820921c8490ba94aff31e56a39083db724da1a

13 years agoalso make the darkplaces menu able to enter up to 127 chars in the name field
divverent [Thu, 23 Dec 2010 01:30:56 +0000 (01:30 +0000)]
also make the darkplaces menu able to enter up to 127 chars in the name field

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10678 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0d26c6200aaeced183c206a59291433950e95e81

13 years agoalso make MAX_SCOREBOARDNAME 128 in the small memory profile, as it doesn't mean...
divverent [Thu, 23 Dec 2010 01:29:43 +0000 (01:29 +0000)]
also make MAX_SCOREBOARDNAME 128 in the small memory profile, as it doesn't mean much memory usage

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10677 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=142c83aabf18a098a6d5076d40a8e3801c92b285

13 years agoallow more font sizes
divverent [Thu, 23 Dec 2010 01:27:02 +0000 (01:27 +0000)]
allow more font sizes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10676 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f51db9c685b24029dd4cd2b01052bcbdb5e8ec5b

13 years agoallow longer player names
divverent [Tue, 21 Dec 2010 20:33:12 +0000 (20:33 +0000)]
allow longer player names

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10675 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1fbbb2731b1813bddf513961955a74de56abde83

13 years agor_showsurfaces: fix "ghost normals" xonotic-v0.1.0preview
divverent [Sat, 18 Dec 2010 21:58:45 +0000 (21:58 +0000)]
r_showsurfaces: fix "ghost normals"

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10674 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=08fe8138a21ee02cecd4f4c92b889e88f1c50594

13 years agoequalize entities: desaturate the lightgrid when equalizing fullbright entities
divverent [Sat, 18 Dec 2010 20:12:02 +0000 (20:12 +0000)]
equalize entities: desaturate the lightgrid when equalizing fullbright entities

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10673 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f72a9ca5a4751f8db3b4c0191203e306d4f20697

13 years agofix a warning
divverent [Sat, 18 Dec 2010 20:06:14 +0000 (20:06 +0000)]
fix a warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10672 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1eb56b522ecd9252242470d388c0ad7272f3f26d

13 years agoglx build, Linux: remove one source of message spam (when /dev/cdrom is not readable)
divverent [Sat, 18 Dec 2010 17:38:01 +0000 (17:38 +0000)]
glx build, Linux: remove one source of message spam (when /dev/cdrom is not readable)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10671 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=fbacd03b3b8fc9783a186b62223cd27c267c87aa

13 years agofix display of r_shownormals < 0
divverent [Sat, 18 Dec 2010 11:12:36 +0000 (11:12 +0000)]
fix display of r_shownormals < 0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10670 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=cce29d94f55810f8515b00b7012dc39bd384daad

13 years agodo not crash if loading a particlefont texture fails
divverent [Fri, 17 Dec 2010 09:15:31 +0000 (09:15 +0000)]
do not crash if loading a particlefont texture fails

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10669 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5d2b95c144c380be28cb219d528415f37e0b3f24

13 years agofix glgl water trick that doesnt work well (it was doing 0.5 alphamod near egges)
vortex [Thu, 16 Dec 2010 17:42:36 +0000 (17:42 +0000)]
fix glgl water trick that doesnt work well (it was doing 0.5 alphamod near egges)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10666 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0d2b3890c8c20bb3c66a1c7fe52f480fc0ba56b2

13 years agotorgue->torque
vortex [Thu, 16 Dec 2010 18:14:21 +0000 (18:14 +0000)]
torgue->torque

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10668 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=c9d7b2b83f07c1db3741130c6c7965eeffe34a91

13 years agoODE improvements:
vortex [Thu, 16 Dec 2010 17:49:24 +0000 (17:49 +0000)]
ODE improvements:
- physics_enable builtin (enable/disable objects)
- physics_addforce (add force to certain point in object)
- physics_addtorgue (add relative torgue)
- extension documented as "DP_PHYSICS_ODE", added additional check if lib is enabled in checextension()
- #ifdef'ed usage of dWorldStepFast1 and make it off by default as it's been removed from ODE trunk
- added "collision" mesh support, if there is some mesh with "collision" texture, all other meshes are ignored and that mesh is used.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10667 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=8b68ee05515266fdb1b20b06b0c4c04646fdc397

13 years agoif a skyboxskinframe is missing, don't draw that sky surface (fixes crash if some...
divverent [Thu, 16 Dec 2010 06:46:40 +0000 (06:46 +0000)]
if a skyboxskinframe is missing, don't draw that sky surface (fixes crash if some but not all skybox files exist; also allows a quicker "partial skybox" where e.g. the bottom side isn't even drawn at all)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10665 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3dd1e6fd20b37f7f88418ef0593114a73312b0d3

13 years agoWhen reallocating CSQC render entity space, make sure existing render edicts referenc...
divverent [Thu, 16 Dec 2010 06:39:02 +0000 (06:39 +0000)]
When reallocating CSQC render entity space, make sure existing render edicts referencing them are adjusted

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10664 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=584aaf7e7cc8616fb4fb40d73102c78cb6805fa4

13 years agocare for the premultiplied-alpha flag when handling DDS files (use DXT2/DXT4 FOURCC...
divverent [Wed, 15 Dec 2010 12:01:47 +0000 (12:01 +0000)]
care for the premultiplied-alpha flag when handling DDS files (use DXT2/DXT4 FOURCC when writing, and show a warning when loading if the type is wrong)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10663 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6e45cfae05dccca77437f738a699583b6e6ed202

13 years agofound out why the water plane issue happend: namely, when a water plane is backface...
divverent [Tue, 14 Dec 2010 17:57:32 +0000 (17:57 +0000)]
found out why the water plane issue happend: namely, when a water plane is backface culled, R_Water_FindPlane may not find ANY plane. Remove the print, ignore the damage it causes (as the damage only consists of some additional tris being rendered that should not, but instead less batches).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10662 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7ada10412116cc9625c5191a00fbda7f2c701b0c

13 years agoremove another useless check
divverent [Tue, 14 Dec 2010 15:23:30 +0000 (15:23 +0000)]
remove another useless check

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10661 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=42114392db4b787646f55e85cdfbf426f94ae439

13 years agofix a case where r_hdr 1 can cause message spam (previously: crashes) for not existin...
divverent [Tue, 14 Dec 2010 15:20:29 +0000 (15:20 +0000)]
fix a case where r_hdr 1 can cause message spam (previously: crashes) for not existing but referenced waterplanes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10660 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=cbbf18e419ad4d6b1848192cf86aba37b9fb6df4

13 years agodo not crash if no matching water plane could be found (BUT WHY DOES THIS HAPPEN...
divverent [Tue, 14 Dec 2010 14:17:41 +0000 (14:17 +0000)]
do not crash if no matching water plane could be found (BUT WHY DOES THIS HAPPEN TO BEGIN WITH)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10659 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7a40a91a24fa53b6ef38e0d1fb14dcfe270b8b61

13 years agofix sys_specialcharactertranslation for utf-8 mode
divverent [Sun, 12 Dec 2010 20:50:15 +0000 (20:50 +0000)]
fix sys_specialcharactertranslation for utf-8 mode

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10658 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1b1a05b13477696088ac74f71a0fdb1277db4f49

13 years agoturn another print into a dprint
divverent [Sun, 12 Dec 2010 19:46:39 +0000 (19:46 +0000)]
turn another print into a dprint

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10657 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d7d479850ed34a5b1c293b0e23736ad6a32143c0

13 years agobe more silent about self-pack
divverent [Sun, 12 Dec 2010 19:44:32 +0000 (19:44 +0000)]
be more silent about self-pack

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10656 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=9887ee3f298c37c63811184d1ecf48d9acd8ddd1

13 years agodo not parse $variable stuff inside //comments
divverent [Sun, 12 Dec 2010 19:37:58 +0000 (19:37 +0000)]
do not parse $variable stuff inside //comments

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10655 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a1af921a6e20943f1610d032dbfa0bf7c105a522

13 years agofix some stupid ft2.c warnings
divverent [Sun, 12 Dec 2010 19:25:06 +0000 (19:25 +0000)]
fix some stupid ft2.c warnings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10654 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d14c7bb2783fe7ea0948d515980547499bd57600

13 years agosimplify it, and make it a bit nicer to the GPU
divverent [Sun, 12 Dec 2010 17:59:25 +0000 (17:59 +0000)]
simplify it, and make it a bit nicer to the GPU

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10653 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=fad6c0cb368f333846ab896bec205596940cd27b

13 years agofix loading screen handling (prevent self-overdraw)
divverent [Sun, 12 Dec 2010 17:46:27 +0000 (17:46 +0000)]
fix loading screen handling (prevent self-overdraw)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10652 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=8a82aa1e2cf707ccd6e1d2cd158ae07e3bf012aa

13 years agocustomizable loading screen picture scale, including limiting to screen bounds in...
divverent [Sun, 12 Dec 2010 13:37:51 +0000 (13:37 +0000)]
customizable loading screen picture scale, including limiting to screen bounds in different modes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10651 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=37921a640564a30237e55265e9627f1010e38936

13 years agofix a terminologic bug
divverent [Fri, 10 Dec 2010 20:40:03 +0000 (20:40 +0000)]
fix a terminologic bug

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10650 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7b8dccf0a882a1e9cf7856b7cf3d706a55513917

13 years agouse MAX_SCOREBOARDNAME instead of a hardcoded 64 bytes length in one struct definition
divverent [Thu, 9 Dec 2010 11:04:30 +0000 (11:04 +0000)]
use MAX_SCOREBOARDNAME instead of a hardcoded 64 bytes length in one struct definition

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10649 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ef6014027abab4b524993e33b2698426d259804a

13 years agomaked cl_video to have module playback, so several video formats can be implemented...
vortex [Sat, 4 Dec 2010 14:24:55 +0000 (14:24 +0000)]
maked cl_video to have module playback, so several video formats can be implemented. Quite nasty yet, as streaming audio is not supported and all videos have extension .dpv (as set by playvideo command).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10648 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=70b3c52211617e1d585a1bbe805c5fd47176bfd1

13 years agoallow rtdlight off, rtworld on
divverent [Fri, 3 Dec 2010 21:39:51 +0000 (21:39 +0000)]
allow rtdlight off, rtworld on

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10647 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=20d49ae924374c7278943636e3dbb655138b5edc

13 years ago100% untested: additionally apply mastervolume to ambient sound channels
divverent [Wed, 1 Dec 2010 08:12:17 +0000 (08:12 +0000)]
100% untested: additionally apply mastervolume to ambient sound channels

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10645 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=750d19efdc7013c4380d3a5823389e2617af41a1

13 years agocvar saving: do not save all ALLOCATED cvars (seta), only save all cvars that were...
divverent [Fri, 3 Dec 2010 10:26:23 +0000 (10:26 +0000)]
cvar saving: do not save all ALLOCATED cvars (seta), only save all cvars that were not locked in by cvar_lockdefaults, so default.cfg-created cvars do not always spam the config file

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10646 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d259630fef9ed18f78a826484c942c20fe00cc21

13 years agofix random white pixels with r_shadow_glossexact caused by unnormalized VectorS/T/R
divverent [Tue, 30 Nov 2010 19:18:25 +0000 (19:18 +0000)]
fix random white pixels with r_shadow_glossexact caused by unnormalized VectorS/T/R

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10644 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=bc4d19bff6b9cb2857890c0d6b03857bb330638c

13 years agoAttempt to stabilize ODE. Now using constant step (sys_ticrate set steptime) - on...
vortex [Mon, 29 Nov 2010 19:01:22 +0000 (19:01 +0000)]
Attempt to stabilize ODE. Now using constant step (sys_ticrate set steptime) - on by default, recommended by ODE Manual, reduces jitter alot. Added object autodisabling, makes stacks to be faster. NaN fixing is optional now (on by default) on me it doesnt help with ODE double precision DLL, moreover it makes objects jitter and blink to '0 0 0' origin sometimes. Added simple physics stats printing (via physics_ode_printstats), added world damping controls (cvars, on by default). Reworked worldstep* cvars to use 2 cvars instead of 4.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10643 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=beda7749bd7a9785a59114d6248d910a7086664c

13 years agohandle a missing key more gracefully in crypto_uri_postbuf
divverent [Sun, 28 Nov 2010 17:11:17 +0000 (17:11 +0000)]
handle a missing key more gracefully in crypto_uri_postbuf

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10642 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5a9789e1e5802a9b32e38f440354cc9cb37d6281

13 years agostrlennocol: fix color codes :P
divverent [Sun, 28 Nov 2010 14:36:29 +0000 (14:36 +0000)]
strlennocol: fix color codes :P

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10641 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6c34f0a37ce6e3e4d21b8e2605e580d295306908

13 years agoalso support signed GET requests. We will always sign the [postdata, "\0"], query...
divverent [Fri, 26 Nov 2010 21:02:42 +0000 (21:02 +0000)]
also support signed GET requests. We will always sign the [postdata, "\0"], query string

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10640 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=2f461d60b4dd953703b1ce2b8d5b56fd43035546

13 years agoremove a stupid buf2file call
divverent [Fri, 26 Nov 2010 11:58:41 +0000 (11:58 +0000)]
remove a stupid buf2file call

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10639 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=fce889f1a929a2b9304f486f97f73e9aa77d4499

13 years agofix stdio mode
divverent [Fri, 26 Nov 2010 06:02:05 +0000 (06:02 +0000)]
fix stdio mode

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10638 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=25a89453e982d94fe580096eea01dfd46c51f890

13 years agofix typo
divverent [Fri, 26 Nov 2010 05:57:28 +0000 (05:57 +0000)]
fix typo

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10637 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b45ffeee1f5c2d7eaed3ec5af6ff87720b6db97e

13 years agocrypto-keygen-standalone: allow reading from file descriptors
divverent [Fri, 26 Nov 2010 05:56:23 +0000 (05:56 +0000)]
crypto-keygen-standalone: allow reading from file descriptors

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10636 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=65d4a5609747aaf729f9ed366ddc08e0d4afcad3

13 years agofix two typos
divverent [Thu, 25 Nov 2010 20:30:49 +0000 (20:30 +0000)]
fix two typos

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10635 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e887a86e471c01a55d43021910db623966e7d252

13 years agouse detached signatures for http post (more compatible to PHP)
divverent [Thu, 25 Nov 2010 20:30:46 +0000 (20:30 +0000)]
use detached signatures for http post (more compatible to PHP)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10634 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1cbbacc96c0f13697949730d84c638941af07519

13 years agoinitial work for DETACHED signatures
divverent [Thu, 25 Nov 2010 20:30:42 +0000 (20:30 +0000)]
initial work for DETACHED signatures

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10633 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e4e06ca028a8aa4d33db30946a8909a86c141f99

13 years agofix a cast
divverent [Thu, 25 Nov 2010 19:51:49 +0000 (19:51 +0000)]
fix a cast

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10632 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=acd8646648b6a54d5e0c2aac2e51eeb2572def11

13 years agomove base64 to common code
divverent [Thu, 25 Nov 2010 19:51:46 +0000 (19:51 +0000)]
move base64 to common code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10631 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=4bee24a5cf254a418660db56e4e67e105937565e

13 years agofix warnings by adding type casts
vortex [Thu, 25 Nov 2010 19:23:41 +0000 (19:23 +0000)]
fix warnings by adding type casts

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10630 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7bdd10be8ff88baba813e984eccc7cf934961ad7

13 years agosupport passing extra headers in POST requests; but this is not used yet
divverent [Thu, 25 Nov 2010 18:59:39 +0000 (18:59 +0000)]
support passing extra headers in POST requests; but this is not used yet

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10629 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a9a9fc7be3154f84c3de2f1f7c6ad15a3c806198

13 years agofix a typo
divverent [Thu, 25 Nov 2010 18:46:32 +0000 (18:46 +0000)]
fix a typo

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10628 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f7f3c8ac391aa197c33579aa4d9997dbc0712063

13 years agoDP_QC_URI_POST extension (uri_post, uri_postbuf, crypto_uri_postbuf)
divverent [Thu, 25 Nov 2010 12:56:30 +0000 (12:56 +0000)]
DP_QC_URI_POST extension (uri_post, uri_postbuf, crypto_uri_postbuf)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10627 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1dfae27462dba735f317cac38f3b7deb415ed154

13 years agomove r_stereo adjustments into R_RenderView so that it executes AFTER CSQC may have...
divverent [Wed, 24 Nov 2010 20:58:27 +0000 (20:58 +0000)]
move r_stereo adjustments into R_RenderView so that it executes AFTER CSQC may have adjusted the view. Makes redblue stereo work even in steel storm.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10626 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d404f9aaa347ec6506ecff1de63ff55673e91881

13 years agofix a stupid warning on OS X
divverent [Wed, 24 Nov 2010 20:35:56 +0000 (20:35 +0000)]
fix a stupid warning on OS X

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10625 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=cca46dbd21559aef23c04c41fb714f2cc92c5cb9

13 years agorefactored and optimized the R_Q1BSP_RecursiveGetLightInfo function
havoc [Mon, 22 Nov 2010 00:57:14 +0000 (00:57 +0000)]
refactored and optimized the R_Q1BSP_RecursiveGetLightInfo function
properly clear the leaf, surface, and triangle visibility data on a
light, this might fix performance issues with the SVBSP culling method
added a BIH (bounding interval hierarchy) culling method for lights
rather than just the BSP method used by default, however this has
yielded no performance gains outside of .obj maps, so by default it only
uses this new method on .obj maps (where the lack of vis culling is
unimportant)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10624 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7c5d0c667262e89b8b3ee68a5aafcbf76ec9c01d

13 years agofix a couple error messages on shutdown of dedicated server
havoc [Sun, 21 Nov 2010 12:34:31 +0000 (12:34 +0000)]
fix a couple error messages on shutdown of dedicated server

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10623 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ecb8d61815e931cc3ff9e0db0e3f64a86fc4400c

13 years agofix D3D9 build
havoc [Sun, 21 Nov 2010 12:30:54 +0000 (12:30 +0000)]
fix D3D9 build

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10622 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1739bc4c7b59ff54fd2f3c0492ab4ca6ed6563ac

13 years agouse r_smoothnormals_areaweighting cvar on all calls to Mod_BuildNormals
havoc [Sun, 21 Nov 2010 12:26:19 +0000 (12:26 +0000)]
use r_smoothnormals_areaweighting cvar on all calls to Mod_BuildNormals
and Mod_BuildTextureVectorsFromNormals - rather than assuming the artist
wanted area weighted, as if the normalmap was baked for
non-area-weighted tangents this just yields wrong results

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10621 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=dd5644411f46bfeaf512d86eb5ae5fbc3a3b0adf