]> de.git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
13 years agoadd sys_memsize_virtual and sys_memsize_physical info cvars
divverent [Fri, 10 Sep 2010 11:26:57 +0000 (11:26 +0000)]
add sys_memsize_virtual and sys_memsize_physical info cvars

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

13 years agomake the win32 case compile too (hope it doesn't break TOO horribly above 4G RAM...
divverent [Fri, 10 Sep 2010 11:42:56 +0000 (11:42 +0000)]
make the win32 case compile too (hope it doesn't break TOO horribly above 4G RAM, someone please test)

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

13 years agoadd sys_memsize_virtual and sys_memsize_physical info cvars
divverent [Fri, 10 Sep 2010 11:26:57 +0000 (11:26 +0000)]
add sys_memsize_virtual and sys_memsize_physical info cvars

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

13 years agodo sound occlusion only once per sound, not once per listener channel
divverent [Thu, 9 Sep 2010 07:37:50 +0000 (07:37 +0000)]
do sound occlusion only once per sound, not once per listener channel

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

13 years agodo sound occlusion only once per sound, not once per listener channel
divverent [Thu, 9 Sep 2010 07:37:50 +0000 (07:37 +0000)]
do sound occlusion only once per sound, not once per listener channel

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

13 years agoremove sparks if slower than sqrt(0.03)
divverent [Thu, 9 Sep 2010 06:55:01 +0000 (06:55 +0000)]
remove sparks if slower than sqrt(0.03)

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

13 years agosound occlusion: use PVS by default, make the cvar able to toggle between PVS and...
divverent [Thu, 9 Sep 2010 06:54:58 +0000 (06:54 +0000)]
sound occlusion: use PVS by default, make the cvar able to toggle between PVS and LineOfSight occlusion

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

13 years agofix two warpzone related PVS bugs
divverent [Thu, 9 Sep 2010 06:54:55 +0000 (06:54 +0000)]
fix two warpzone related PVS bugs

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

13 years agoremove sparks if slower than sqrt(0.03)
divverent [Thu, 9 Sep 2010 06:55:01 +0000 (06:55 +0000)]
remove sparks if slower than sqrt(0.03)

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

13 years agosound occlusion: use PVS by default, make the cvar able to toggle between PVS and...
divverent [Thu, 9 Sep 2010 06:54:58 +0000 (06:54 +0000)]
sound occlusion: use PVS by default, make the cvar able to toggle between PVS and LineOfSight occlusion

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

13 years agofix two warpzone related PVS bugs
divverent [Thu, 9 Sep 2010 06:54:55 +0000 (06:54 +0000)]
fix two warpzone related PVS bugs

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

13 years agonew option -benchmarkruns - if specified, the given number of benchmark runs is perfo...
divverent [Tue, 7 Sep 2010 07:37:02 +0000 (07:37 +0000)]
new option -benchmarkruns - if specified, the given number of benchmark runs is performed for -benchmark

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

13 years agonew option -benchmarkruns - if specified, the given number of benchmark runs is perfo...
divverent [Tue, 7 Sep 2010 07:37:02 +0000 (07:37 +0000)]
new option -benchmarkruns - if specified, the given number of benchmark runs is performed for -benchmark

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

13 years agofix CSQC being unable to use the "effects" field as its fieldoffset never got initialized
divverent [Mon, 6 Sep 2010 06:21:51 +0000 (06:21 +0000)]
fix CSQC being unable to use the "effects" field as its fieldoffset never got initialized

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

13 years agoAllow to type the utf8 Euro currency sign (to work around windows-1252 encoding)
divverent [Mon, 6 Sep 2010 05:09:56 +0000 (05:09 +0000)]
Allow to type the utf8 Euro currency sign (to work around windows-1252 encoding)

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

13 years agomake ctrl-key shortcuts in message mode display chars from the charmap even with...
divverent [Mon, 6 Sep 2010 05:09:53 +0000 (05:09 +0000)]
make ctrl-key shortcuts in message mode display chars from the charmap even with utf8 enabled

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

13 years agofix CSQC being unable to use the "effects" field as its fieldoffset never got initialized
divverent [Mon, 6 Sep 2010 06:21:51 +0000 (06:21 +0000)]
fix CSQC being unable to use the "effects" field as its fieldoffset never got initialized

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

13 years agoAllow to type the utf8 Euro currency sign (to work around windows-1252 encoding)
divverent [Mon, 6 Sep 2010 05:09:56 +0000 (05:09 +0000)]
Allow to type the utf8 Euro currency sign (to work around windows-1252 encoding)

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

13 years agomake ctrl-key shortcuts in message mode display chars from the charmap even with...
divverent [Mon, 6 Sep 2010 05:09:53 +0000 (05:09 +0000)]
make ctrl-key shortcuts in message mode display chars from the charmap even with utf8 enabled

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

13 years agonew cvars: r_drawparticles_nearclip_min and r_drawparticles_nearclip_max, use a range...
divverent [Sun, 5 Sep 2010 17:34:29 +0000 (17:34 +0000)]
new cvars: r_drawparticles_nearclip_min and r_drawparticles_nearclip_max, use a range and fading for near clip of particles for speed optimization (fade them out before they become fullscreen)

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

13 years agonew cvars: r_drawparticles_nearclip_min and r_drawparticles_nearclip_max, use a range...
divverent [Sun, 5 Sep 2010 17:34:29 +0000 (17:34 +0000)]
new cvars: r_drawparticles_nearclip_min and r_drawparticles_nearclip_max, use a range and fading for near clip of particles for speed optimization (fade them out before they become fullscreen)

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

13 years agoreorganize sv_public code; add a level -3 that blocks at getchallenge level, but...
divverent [Sun, 5 Sep 2010 15:48:51 +0000 (15:48 +0000)]
reorganize sv_public code; add a level -3 that blocks at getchallenge level, but -2 blocks at connect level (srcon needs getchallenge, so -3 also blocks srcon); also sv_public -2 will make connect attempts show the string in sv_public_rejectreason

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

13 years agoreorganize sv_public code; add a level -3 that blocks at getchallenge level, but...
divverent [Sun, 5 Sep 2010 15:48:51 +0000 (15:48 +0000)]
reorganize sv_public code; add a level -3 that blocks at getchallenge level, but -2 blocks at connect level (srcon needs getchallenge, so -3 also blocks srcon); also sv_public -2 will make connect attempts show the string in sv_public_rejectreason

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

13 years agooptimize R_AnimCache_UpdateEntityMeshBuffers to use memcpy instead of VectorCopy...
divverent [Sat, 4 Sep 2010 15:39:43 +0000 (15:39 +0000)]
optimize R_AnimCache_UpdateEntityMeshBuffers to use memcpy instead of VectorCopy, Steel Storm 150fps -> 167fps (now only effective in D3D mode, as this path is usually not used any more in OpenGL)

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

13 years agoclean up u8_StringLengthNoColors
divverent [Sat, 4 Sep 2010 15:32:12 +0000 (15:32 +0000)]
clean up u8_StringLengthNoColors

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

13 years agoSince u8_prevbyte skips invalid chars on purpose, it can go before the ] if invalid...
divverent [Sat, 4 Sep 2010 15:32:09 +0000 (15:32 +0000)]
Since u8_prevbyte skips invalid chars on purpose, it can go before the ] if invalid utf8 chars get pasted in the console edit line. It's even possible to delete the ].
Fix this bug by giving to u8_prevbyte the edit line without ].

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

13 years agoFix u8_COM_StringLengthNoColors not counting many ASCII chars (up to '?')
divverent [Sat, 4 Sep 2010 15:32:06 +0000 (15:32 +0000)]
Fix u8_COM_StringLengthNoColors not counting many ASCII chars (up to '?')

Better handling of invalid chars in u8_COM_StringLengthNoColors

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

13 years agoclean up u8_StringLengthNoColors
divverent [Sat, 4 Sep 2010 15:32:12 +0000 (15:32 +0000)]
clean up u8_StringLengthNoColors

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

13 years agoSince u8_prevbyte skips invalid chars on purpose, it can go before the ] if invalid...
divverent [Sat, 4 Sep 2010 15:32:09 +0000 (15:32 +0000)]
Since u8_prevbyte skips invalid chars on purpose, it can go before the ] if invalid utf8 chars get pasted in the console edit line. It's even possible to delete the ].
Fix this bug by giving to u8_prevbyte the edit line without ].

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

13 years agoFix u8_COM_StringLengthNoColors not counting many ASCII chars (up to '?')
divverent [Sat, 4 Sep 2010 15:32:06 +0000 (15:32 +0000)]
Fix u8_COM_StringLengthNoColors not counting many ASCII chars (up to '?')

Better handling of invalid chars in u8_COM_StringLengthNoColors

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

13 years agoAdding GAME_XONOTIC and recognizing xonotic executable names
divverent [Sat, 4 Sep 2010 14:47:52 +0000 (14:47 +0000)]
Adding GAME_XONOTIC and recognizing xonotic executable names

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

13 years agoAdding GAME_XONOTIC and recognizing xonotic executable names
divverent [Sat, 4 Sep 2010 14:47:52 +0000 (14:47 +0000)]
Adding GAME_XONOTIC and recognizing xonotic executable names

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

13 years agobuild the string correctly
divverent [Fri, 3 Sep 2010 05:32:15 +0000 (05:32 +0000)]
build the string correctly

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

13 years agobuild the string correctly
divverent [Fri, 3 Sep 2010 05:32:15 +0000 (05:32 +0000)]
build the string correctly

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

13 years agofix connect help
divverent [Fri, 3 Sep 2010 05:23:15 +0000 (05:23 +0000)]
fix connect help

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

13 years agoadded arg: connect-userinfo; works like this: "connect server password foobar" will...
divverent [Fri, 3 Sep 2010 05:20:33 +0000 (05:20 +0000)]
added arg: connect-userinfo; works like this: "connect server password foobar" will connect to server, and add \password\foobar to the infostring (works to connect to FTEQW passworded servers)

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

13 years agofix connect help
divverent [Fri, 3 Sep 2010 05:23:15 +0000 (05:23 +0000)]
fix connect help

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

13 years agoadded arg: connect-userinfo; works like this: "connect server password foobar" will...
divverent [Fri, 3 Sep 2010 05:20:33 +0000 (05:20 +0000)]
added arg: connect-userinfo; works like this: "connect server password foobar" will connect to server, and add \password\foobar to the infostring (works to connect to FTEQW passworded servers)

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

13 years agogenerate s- and t-vector of deformVertexes only if really needed (optimization for...
divverent [Tue, 31 Aug 2010 10:53:54 +0000 (10:53 +0000)]
generate s- and t-vector of deformVertexes only if really needed (optimization for depthfirst pass mainly)

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

13 years agoget rid of calculating vertexmesh animcache buffers if we do not need the vertexmesh...
divverent [Tue, 31 Aug 2010 07:28:24 +0000 (07:28 +0000)]
get rid of calculating vertexmesh animcache buffers if we do not need the vertexmesh... fixes performance of steel storm

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

13 years agofix components parameter on a few TexCoordPointer normal3f calls, thanks
havoc [Mon, 30 Aug 2010 00:36:32 +0000 (00:36 +0000)]
fix components parameter on a few TexCoordPointer normal3f calls, thanks
to kyre for reporting this bug

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

13 years agocurl: strip user/pass from URLs on display
divverent [Sun, 29 Aug 2010 18:33:06 +0000 (18:33 +0000)]
curl: strip user/pass from URLs on display

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

13 years agocurl: strip user/pass from URLs on display
divverent [Sun, 29 Aug 2010 18:33:06 +0000 (18:33 +0000)]
curl: strip user/pass from URLs on display

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

13 years agooverhauled mod_q3bsp_lightmapmergepower code, to fix very weird bugs
havoc [Sun, 29 Aug 2010 11:02:44 +0000 (11:02 +0000)]
overhauled mod_q3bsp_lightmapmergepower code, to fix very weird bugs
with misnumbered lightmaps, and make all textures in the set the same
size (better performance on drivers that dislike texture size changes)

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

13 years agooverhauled mod_q3bsp_lightmapmergepower code, to fix very weird bugs
havoc [Sun, 29 Aug 2010 11:02:44 +0000 (11:02 +0000)]
overhauled mod_q3bsp_lightmapmergepower code, to fix very weird bugs
with misnumbered lightmaps, and make all textures in the set the same
size (better performance on drivers that dislike texture size changes)

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

13 years agofix a -lX11 typo
divverent [Fri, 27 Aug 2010 21:58:41 +0000 (21:58 +0000)]
fix a -lX11 typo

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

13 years agofix a -lX11 typo
divverent [Fri, 27 Aug 2010 21:58:41 +0000 (21:58 +0000)]
fix a -lX11 typo

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

13 years agofix nogravityonground description
divverent [Fri, 27 Aug 2010 19:21:43 +0000 (19:21 +0000)]
fix nogravityonground description

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

13 years agodon't use sv_gameplayfix_stepmultipletimes by default (except in Nexuiz)
havoc [Fri, 27 Aug 2010 19:18:33 +0000 (19:18 +0000)]
don't use sv_gameplayfix_stepmultipletimes by default (except in Nexuiz)
this fixes an sv_jumpstep-like behavior seen in quake dm2 where you have
difficulty falling into lava pits

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

13 years agofix nogravityonground description
divverent [Fri, 27 Aug 2010 19:21:43 +0000 (19:21 +0000)]
fix nogravityonground description

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

13 years agodon't use sv_gameplayfix_stepmultipletimes by default (except in Nexuiz)
havoc [Fri, 27 Aug 2010 19:18:33 +0000 (19:18 +0000)]
don't use sv_gameplayfix_stepmultipletimes by default (except in Nexuiz)
this fixes an sv_jumpstep-like behavior seen in quake dm2 where you have
difficulty falling into lava pits

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

13 years agoPROPERLY load the icon in SDL/X11
divverent [Fri, 27 Aug 2010 16:48:41 +0000 (16:48 +0000)]
PROPERLY load the icon in SDL/X11

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

13 years agoPROPERLY load the icon in SDL/X11
divverent [Fri, 27 Aug 2010 16:48:41 +0000 (16:48 +0000)]
PROPERLY load the icon in SDL/X11

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

13 years agovid_sdl: also upload a smooth netwm icon if possible, by fetching the X11 window...
divverent [Fri, 27 Aug 2010 14:18:30 +0000 (14:18 +0000)]
vid_sdl: also upload a smooth netwm icon if possible, by fetching the X11 window ID and using Xlib code on it (code is inactive on SDL 1.3+, as 1.3 supports NETWM icons natively)

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

13 years agovid_sdl: also upload a smooth netwm icon if possible, by fetching the X11 window...
divverent [Fri, 27 Aug 2010 14:18:30 +0000 (14:18 +0000)]
vid_sdl: also upload a smooth netwm icon if possible, by fetching the X11 window ID and using Xlib code on it (code is inactive on SDL 1.3+, as 1.3 supports NETWM icons natively)

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

13 years agoSDL: also use a non-XPM icon darkplaces-icon.tga but only if SDL is >= 1.3 (SDL 1...
divverent [Fri, 27 Aug 2010 05:43:12 +0000 (05:43 +0000)]
SDL: also use a non-XPM icon darkplaces-icon.tga but only if SDL is >= 1.3 (SDL 1.2 doesn't support smooth alpha transparency on window icons)

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

13 years agoGLX: use _NET_WM_ICON additionally to the xpm icon for most current window managers
divverent [Fri, 27 Aug 2010 05:43:07 +0000 (05:43 +0000)]
GLX: use _NET_WM_ICON additionally to the xpm icon for most current window managers
_NET_WM_ICON is generated from darkplaces-icon.tga, darkplaces-icon2.tga, darkplaces-icon3.tga in this order
NOTE: at least GNOME displays the first icon only, so this one should have a nice resolution like 64x64

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

13 years agodo not use partial lightmap updates for lightmap merging
divverent [Fri, 27 Aug 2010 05:43:03 +0000 (05:43 +0000)]
do not use partial lightmap updates for lightmap merging

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

13 years agoSDL: also use a non-XPM icon darkplaces-icon.tga but only if SDL is >= 1.3 (SDL 1...
divverent [Fri, 27 Aug 2010 05:43:12 +0000 (05:43 +0000)]
SDL: also use a non-XPM icon darkplaces-icon.tga but only if SDL is >= 1.3 (SDL 1.2 doesn't support smooth alpha transparency on window icons)

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

13 years agoGLX: use _NET_WM_ICON additionally to the xpm icon for most current window managers
divverent [Fri, 27 Aug 2010 05:43:07 +0000 (05:43 +0000)]
GLX: use _NET_WM_ICON additionally to the xpm icon for most current window managers
_NET_WM_ICON is generated from darkplaces-icon.tga, darkplaces-icon2.tga, darkplaces-icon3.tga in this order
NOTE: at least GNOME displays the first icon only, so this one should have a nice resolution like 64x64

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

13 years agodo not use partial lightmap updates for lightmap merging
divverent [Fri, 27 Aug 2010 05:43:03 +0000 (05:43 +0000)]
do not use partial lightmap updates for lightmap merging

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

13 years agooverhauled dynamic vertex rendering in DX9 based on research by mh that showed the...
havoc [Tue, 24 Aug 2010 17:26:01 +0000 (17:26 +0000)]
overhauled dynamic vertex rendering in DX9 based on research by mh that showed the DrawIndexedPrimitiveUP function is many times faster than using dynamic vertex buffers
applied a patch from mh to the D3D Present handling to better cope with lost devices

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

13 years agofix some HLSL shader compile errors
havoc [Tue, 24 Aug 2010 17:19:14 +0000 (17:19 +0000)]
fix some HLSL shader compile errors
disable check for gl_vbo in one part of surface setup code

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

13 years agofix previous warning fix that only worked properly for MINGW
havoc [Tue, 24 Aug 2010 17:16:29 +0000 (17:16 +0000)]
fix previous warning fix that only worked properly for MINGW

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

13 years agodon't use TEXF_ALLOWUPDATES on fully-updated textures such as video
havoc [Mon, 23 Aug 2010 15:07:35 +0000 (15:07 +0000)]
don't use TEXF_ALLOWUPDATES on fully-updated textures such as video

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

13 years agodisable USE_WSPIAPI_H by default, since it only works with -DSUPPORTIPV6
havoc [Sun, 22 Aug 2010 16:52:33 +0000 (16:52 +0000)]
disable USE_WSPIAPI_H by default, since it only works with -DSUPPORTIPV6
which is also disabled

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

13 years agochange R_Upload error from Host_error to Sys_Error, added texture name
havoc [Sun, 22 Aug 2010 16:48:29 +0000 (16:48 +0000)]
change R_Upload error from Host_error to Sys_Error, added texture name
to the message

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

13 years agosplit and overhauled R_Upload into two functions:
havoc [Mon, 23 Aug 2010 15:09:37 +0000 (15:09 +0000)]
split and overhauled R_Upload into two functions:
R_UploadPartialTexture - does a partial update for real, not used by
anything if gl_nopartialtextureupdates is on
R_UploadFullTexture - takes only new pixel data, does appropriate
scaling and uploads to video memory

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

13 years agodon't use TEXF_ALLOWUPDATES on fully-updated textures such as video
havoc [Mon, 23 Aug 2010 15:07:35 +0000 (15:07 +0000)]
don't use TEXF_ALLOWUPDATES on fully-updated textures such as video

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

13 years agodisable USE_WSPIAPI_H by default, since it only works with -DSUPPORTIPV6
havoc [Sun, 22 Aug 2010 16:52:33 +0000 (16:52 +0000)]
disable USE_WSPIAPI_H by default, since it only works with -DSUPPORTIPV6
which is also disabled

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

13 years agochange R_Upload error from Host_error to Sys_Error, added texture name
havoc [Sun, 22 Aug 2010 16:48:29 +0000 (16:48 +0000)]
change R_Upload error from Host_error to Sys_Error, added texture name
to the message

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

13 years agosupport more level network eyes, and make them static instead of on-stack. Now 8k...
divverent [Sun, 22 Aug 2010 15:13:36 +0000 (15:13 +0000)]
support more level network eyes, and make them static instead of on-stack. Now 8k of memory are used for warpzones.

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

13 years agofix errors related to cl_rollangle on dedicated servers where the cvar
havoc [Sat, 21 Aug 2010 22:11:10 +0000 (22:11 +0000)]
fix errors related to cl_rollangle on dedicated servers where the cvar
was not being registered

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

13 years agosupport more level network eyes, and make them static instead of on-stack. Now 8k...
divverent [Sun, 22 Aug 2010 15:13:36 +0000 (15:13 +0000)]
support more level network eyes, and make them static instead of on-stack. Now 8k of memory are used for warpzones.

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

13 years agofix errors related to cl_rollangle on dedicated servers where the cvar
havoc [Sat, 21 Aug 2010 22:11:10 +0000 (22:11 +0000)]
fix errors related to cl_rollangle on dedicated servers where the cvar
was not being registered

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

13 years agomigrate the libjpeg options to per-target scripting, and default the
havoc [Fri, 20 Aug 2010 12:50:53 +0000 (12:50 +0000)]
migrate the libjpeg options to per-target scripting, and default the
libjpeg linking off on Mac OS X because we have to provide our own in
the .app

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

13 years agomigrate the libjpeg options to per-target scripting, and default the
havoc [Fri, 20 Aug 2010 12:50:53 +0000 (12:50 +0000)]
migrate the libjpeg options to per-target scripting, and default the
libjpeg linking off on Mac OS X because we have to provide our own in
the .app

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

13 years agoremove DP_LINK_TO_JPEG from makefile, as this is default now
divverent [Fri, 20 Aug 2010 12:30:43 +0000 (12:30 +0000)]
remove DP_LINK_TO_JPEG from makefile, as this is default now

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

13 years agoremove DP_LINK_TO_JPEG from makefile, as this is default now
divverent [Fri, 20 Aug 2010 12:30:43 +0000 (12:30 +0000)]
remove DP_LINK_TO_JPEG from makefile, as this is default now

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

13 years agofix a warning
havoc [Thu, 12 Aug 2010 12:00:54 +0000 (12:00 +0000)]
fix a warning

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

13 years agofixed some issues with how D3D=1 worked in the makefile
havoc [Thu, 19 Aug 2010 17:34:47 +0000 (17:34 +0000)]
fixed some issues with how D3D=1 worked in the makefile

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

13 years agolink to libjpeg by default when built with gcc or mingw
havoc [Thu, 19 Aug 2010 15:46:48 +0000 (15:46 +0000)]
link to libjpeg by default when built with gcc or mingw

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

13 years agoreworked makefile a little bit to support DX9 renderer, add D3D=1 to
havoc [Thu, 19 Aug 2010 14:33:10 +0000 (14:33 +0000)]
reworked makefile a little bit to support DX9 renderer, add D3D=1 to
your make line to use it
now WIN32RELEASE and WIN64RELEASE do something useful (correct options
for 32bit and 64bit compiles)

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

13 years agoDraw_CachePic_Flags: ignore TEXF_COMPRESS when comparing, because fallback pics remov...
divverent [Thu, 19 Aug 2010 05:35:16 +0000 (05:35 +0000)]
Draw_CachePic_Flags: ignore TEXF_COMPRESS when comparing, because fallback pics remove the flag

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

13 years agouse cl.movevars_stepheight for stair smoothing
divverent [Thu, 19 Aug 2010 05:35:13 +0000 (05:35 +0000)]
use cl.movevars_stepheight for stair smoothing

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

13 years agoIn the apropos command exclude \n from being filtered by wildcards for alias values...
divverent [Fri, 13 Aug 2010 18:42:44 +0000 (18:42 +0000)]
In the apropos command exclude \n from being filtered by wildcards for alias values (an alias value always got a final \n).
For example, apropos ? returned a bunch of aliases with empty definitions

From: terencehill <piuntn@gmail.com>

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

13 years agoGet rid of an unused variable
divverent [Fri, 13 Aug 2010 18:42:41 +0000 (18:42 +0000)]
Get rid of an unused variable

From: terencehill <piuntn@gmail.com>

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

13 years agoFix issues with matchpattern_with_separator
divverent [Fri, 13 Aug 2010 18:42:38 +0000 (18:42 +0000)]
Fix issues with matchpattern_with_separator
Wrong results in case wildcard_least_one is:
- false: *rc*.cfg finds quake.rc
- true: quake.*rc finds quake.rc

From: terencehill <piuntn@gmail.com>

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

13 years agoset registered cvar consistently regardless of game mode
havoc [Thu, 12 Aug 2010 06:27:17 +0000 (06:27 +0000)]
set registered cvar consistently regardless of game mode

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

13 years agoadd versioned dll names for a bunch of things
havoc [Thu, 19 Aug 2010 15:47:13 +0000 (15:47 +0000)]
add versioned dll names for a bunch of things

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

13 years agocheck the proper texture compression extension for deciding whether to S3TC compress
divverent [Thu, 19 Aug 2010 12:28:30 +0000 (12:28 +0000)]
check the proper texture compression extension for deciding whether to S3TC compress

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

13 years agocs_*project: as both 2D and 3D rendering are confined to the viewport, it SHOULD...
divverent [Thu, 19 Aug 2010 07:31:49 +0000 (07:31 +0000)]
cs_*project: as both 2D and 3D rendering are confined to the viewport, it SHOULD be right to totally ignore the viewport in these functions. I may be wrong here though.

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

13 years agorecalc the 2D view if changing view parameters with R_SetView
divverent [Thu, 19 Aug 2010 07:21:30 +0000 (07:21 +0000)]
recalc the 2D view if changing view parameters with R_SetView

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

13 years agofix compilation of sdl and server builds when SUPPORTD3D is defined
havoc [Thu, 19 Aug 2010 17:44:57 +0000 (17:44 +0000)]
fix compilation of sdl and server builds when SUPPORTD3D is defined

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

13 years agofixed some issues with how D3D=1 worked in the makefile
havoc [Thu, 19 Aug 2010 17:34:47 +0000 (17:34 +0000)]
fixed some issues with how D3D=1 worked in the makefile

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

13 years agoadd versioned dll names for a bunch of things
havoc [Thu, 19 Aug 2010 15:47:13 +0000 (15:47 +0000)]
add versioned dll names for a bunch of things

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

13 years agolink to libjpeg by default when built with gcc or mingw
havoc [Thu, 19 Aug 2010 15:46:48 +0000 (15:46 +0000)]
link to libjpeg by default when built with gcc or mingw

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

13 years agofix a compile error
havoc [Thu, 19 Aug 2010 15:15:32 +0000 (15:15 +0000)]
fix a compile error

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

13 years agofix almost all g++ -pedantic warnings
havoc [Thu, 19 Aug 2010 14:38:49 +0000 (14:38 +0000)]
fix almost all g++ -pedantic warnings

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

13 years agoload d3dx9_*.dll dynamically to get D3DXCompileShader to fix a compile
havoc [Thu, 19 Aug 2010 14:36:01 +0000 (14:36 +0000)]
load d3dx9_*.dll dynamically to get D3DXCompileShader to fix a compile
error with mingw headers, this also means it doesn't matter which
version is present on the user's system

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