]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
11 years agofix DP_FS_BASEDIR escaping
divverent [Sat, 3 Aug 2013 16:03:26 +0000 (16:03 +0000)]
fix DP_FS_BASEDIR escaping

From: Rudolf Polzer <divverent@xonotic.org>

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

11 years agoFix name of CONFIG_VIDEO_CAPTURE macro.
divverent [Sat, 3 Aug 2013 12:48:23 +0000 (12:48 +0000)]
Fix name of CONFIG_VIDEO_CAPTURE macro.

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

11 years agoRevert "Revert "Build in subdirs"", as the issues seem to be ironed out now.
divverent [Sat, 3 Aug 2013 12:48:18 +0000 (12:48 +0000)]
Revert "Revert "Build in subdirs"", as the issues seem to be ironed out now.
Revert "Revert "Make cdda optional, server does not need to play music" because it", as its requirements are there now.
Do not include menu QC support in server builds.

Author: Nikoli

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

11 years agoaudit all uses of CL_ParticleEffect and CL_ParticleTrail and state box/trail intention
divverent [Mon, 29 Jul 2013 10:50:09 +0000 (10:50 +0000)]
audit all uses of CL_ParticleEffect and CL_ParticleTrail and state box/trail intention

Should fix Nexuiz.

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

11 years agoTreat attempts to draw trails with pointparticles as zero length trails.
divverent [Mon, 29 Jul 2013 10:50:06 +0000 (10:50 +0000)]
Treat attempts to draw trails with pointparticles as zero length trails.

This means they will get dlight, and count/countabsolute do get applied.

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

11 years agocl_particles_forcetraileffects: emulate old trail behaviour (Xonotic 0.7 compatibility).
divverent [Sun, 28 Jul 2013 13:58:09 +0000 (13:58 +0000)]
cl_particles_forcetraileffects: emulate old trail behaviour (Xonotic 0.7 compatibility).

When this is set, trail effects are always drawn, even if a box is requested.

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

11 years agoadded FORCEGAME define for building an engine that runs a specific game
havoc [Sun, 28 Jul 2013 00:11:33 +0000 (00:11 +0000)]
added FORCEGAME define for building an engine that runs a specific game
regardless of executable name (this basically overrides the executable
name check)

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

11 years agofix an unused variable warning caused by USEODE
havoc [Sun, 28 Jul 2013 00:10:50 +0000 (00:10 +0000)]
fix an unused variable warning caused by USEODE

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

11 years agoRevert "Make cdda optional, server does not need to play music" because it
divverent [Sat, 27 Jul 2013 10:36:19 +0000 (10:36 +0000)]
Revert "Make cdda optional, server does not need to play music" because it
depends on having separate build directories. No hard feelings, Nikoli, when
separate build directories work again, feel free to revert this revert.

This reverts commit 97b79884ee55276e90c4dd60f9bfde8b9dbbff68.

Conflicts:
makefile.inc

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

11 years agoSeparate box and trail particles. Makes Xonotic's Nex beam possible again.
divverent [Sat, 27 Jul 2013 10:24:22 +0000 (10:24 +0000)]
Separate box and trail particles. Makes Xonotic's Nex beam possible again.

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

11 years agoRevert "Build in subdirs"
divverent [Sat, 27 Jul 2013 10:06:26 +0000 (10:06 +0000)]
Revert "Build in subdirs"

This reverts commit f41e93d3e84e082d4728e3d6a9aadb3ca686a9b9.

Conflicts:
BSDmakefile
makefile.inc

From: Matthias Krüger <matthias.krueger@famsik.de>

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

11 years agouse DP_LINK_ZLIB=dlopen on mingw build to reduce compile-time
havoc [Sat, 27 Jul 2013 09:29:35 +0000 (09:29 +0000)]
use DP_LINK_ZLIB=dlopen on mingw build to reduce compile-time
dependencies

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

11 years agoremoved modplug support, the library is too insecure and barely used by
havoc [Fri, 26 Jul 2013 19:01:50 +0000 (19:01 +0000)]
removed modplug support, the library is too insecure and barely used by
anyone

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

11 years agoMake cdda optional, server does not need to play music
nikoli [Fri, 26 Jul 2013 08:19:12 +0000 (08:19 +0000)]
Make cdda optional, server does not need to play music

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

11 years agoBuild in subdirs
nikoli [Fri, 26 Jul 2013 04:27:29 +0000 (04:27 +0000)]
Build in subdirs

Now this command works fine:
make cl-debug sdl-release sv-release-profile -j9

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

11 years agoUpdate build system, fix and enable ODE by default
nikoli [Wed, 24 Jul 2013 16:27:58 +0000 (16:27 +0000)]
Update build system, fix and enable ODE by default

Fixed crash when running in Hardened Gentoo with libode installed.
Fixed building and running with USEODE disabled.
Use same LINK_TO_NAME, LIB_NAME, CFLAGS_NAME style for dependencies.
Link to libz and libode by default.

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

11 years agoAdd ability to reproduce build
nikoli [Wed, 24 Jul 2013 16:13:57 +0000 (16:13 +0000)]
Add ability to reproduce build

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

11 years agomake clock_gettime default (since 2.6.28 it is NTP-adjusted)
divverent [Wed, 24 Jul 2013 11:44:30 +0000 (11:44 +0000)]
make clock_gettime default (since 2.6.28 it is NTP-adjusted)

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

11 years agofix alpha screenshots
divverent [Mon, 22 Jul 2013 14:47:00 +0000 (14:47 +0000)]
fix alpha screenshots

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

11 years agofix typo leading to DP_PHYSICS_ODE not being detectable
divverent [Mon, 22 Jul 2013 14:39:25 +0000 (14:39 +0000)]
fix typo leading to DP_PHYSICS_ODE not being detectable

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

11 years agoFix C++ typecast/linkage specification errors.
vortex [Sun, 21 Jul 2013 22:04:34 +0000 (22:04 +0000)]
Fix C++ typecast/linkage specification errors.

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

11 years agoSteel Storm additions for mobile (EluanCM)
havoc [Wed, 17 Jul 2013 05:44:37 +0000 (05:44 +0000)]
Steel Storm additions for mobile (EluanCM)
engine support for Android (EluanCM's port, some cleanup by Forest Hale)
engine support for iPhoneOS (Forest Hale)

credit: EluanCM, myself (Forest Hale)

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

11 years agomoved #include <SDL.h> above #include "quakedef.h"
havoc [Wed, 17 Jul 2013 04:07:25 +0000 (04:07 +0000)]
moved #include <SDL.h> above #include "quakedef.h"

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

11 years agofix an unused variable warning with USE_GLES2
havoc [Wed, 17 Jul 2013 04:05:48 +0000 (04:05 +0000)]
fix an unused variable warning with USE_GLES2

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

11 years agoadded #ifndef DP_MOBILETOUCH on the command history and ip logging
havoc [Wed, 17 Jul 2013 04:03:07 +0000 (04:03 +0000)]
added #ifndef DP_MOBILETOUCH on the command history and ip logging

credit: EluanCM

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

11 years agowe need to #include <SDL.h> before #include "quakedef.h"
havoc [Wed, 17 Jul 2013 04:00:01 +0000 (04:00 +0000)]
we need to #include <SDL.h> before #include "quakedef.h"

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

11 years agoCmd_ExecuteString now calls Cbuf_LockThreadMutex
havoc [Wed, 17 Jul 2013 03:59:09 +0000 (03:59 +0000)]
Cmd_ExecuteString now calls Cbuf_LockThreadMutex

credit: EluanCM

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

11 years agonew #define DP_FREETYPE_STATIC for compiling with freetype linked
havoc [Wed, 17 Jul 2013 03:54:31 +0000 (03:54 +0000)]
new #define DP_FREETYPE_STATIC for compiling with freetype linked
directly rather than runtime loaded

credit: EluanCM

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

11 years agoNew rate burst handling; cvars: cl_rate_burstsize, net_usesizelimit, net_burstreserve
divverent [Sat, 13 Jul 2013 10:15:35 +0000 (10:15 +0000)]
New rate burst handling; cvars: cl_rate_burstsize, net_usesizelimit, net_burstreserve

This supports some kind of packet size bursting to give better experience at
small rates. Can be controlled by the client.

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

11 years agoimplement curl --cachepic and curl --skinframe (experimental)
divverent [Mon, 8 Jul 2013 09:39:13 +0000 (09:39 +0000)]
implement curl --cachepic and curl --skinframe (experimental)

which can load textures from the web

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

11 years agofix a serious issue with CSQC frametime being non-zero on both calls
havoc [Sun, 7 Jul 2013 06:42:11 +0000 (06:42 +0000)]
fix a serious issue with CSQC frametime being non-zero on both calls
when using stereo rendering, it is now zero on the second eye so that
frametime does not lie

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

11 years agooops... fix nul termination. luckily not exploitable.
divverent [Sat, 29 Jun 2013 11:21:01 +0000 (11:21 +0000)]
oops... fix nul termination. luckily not exploitable.

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

11 years agoreenabled index buffers on GLES2 path
havoc [Thu, 27 Jun 2013 06:55:10 +0000 (06:55 +0000)]
reenabled index buffers on GLES2 path

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

11 years agofix severe (crashing) bugs with two calls to qglDrawElements when using
havoc [Thu, 27 Jun 2013 06:20:52 +0000 (06:20 +0000)]
fix severe (crashing) bugs with two calls to qglDrawElements when using
index buffers (this bug was hidden by gl_mesh_drawrangeelements being 1
by default)

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

11 years agoremove cvar gl_mesh_prefer_short_elements because many draw calls do not
havoc [Thu, 27 Jun 2013 05:57:31 +0000 (05:57 +0000)]
remove cvar gl_mesh_prefer_short_elements because many draw calls do not
even provide an element3i to use

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

11 years agoallow use of cvar gl_vbo_dynamicindex in RENDERPATH_GLES2
havoc [Thu, 27 Jun 2013 05:53:59 +0000 (05:53 +0000)]
allow use of cvar gl_vbo_dynamicindex in RENDERPATH_GLES2

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

11 years agofurther optimizations for gl_vbo_dynamicvertex and gl_vbo_dynamicindex
havoc [Wed, 19 Jun 2013 02:47:18 +0000 (02:47 +0000)]
further optimizations for gl_vbo_dynamicvertex and gl_vbo_dynamicindex

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

11 years agogl_vbo_dynamicvertex and gl_vbo_dynamicindex now use R_BufferData_Store
havoc [Wed, 19 Jun 2013 01:42:17 +0000 (01:42 +0000)]
gl_vbo_dynamicvertex and gl_vbo_dynamicindex now use R_BufferData_Store
rather than the much slower path they used before

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

11 years agosome cleanup of glDelete calls to guard against bugs caused by GL
havoc [Wed, 19 Jun 2013 01:27:59 +0000 (01:27 +0000)]
some cleanup of glDelete calls to guard against bugs caused by GL
changing the binding when we delete a currently active object

fix a major resource leak by calling R_FrameData_NewFrame and
R_BufferData_NewFrame earlier so that they work when disconnected

improved gl_vbostats output

clarify some logic related to r_batch_dynamicbuffer

don't bother destroying a temporary vertex buffer that we end up
destroying as part of the array cleanup

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

11 years agofix a critical bug with r_restart or vid_restart in R_BufferData_Reset
havoc [Tue, 18 Jun 2013 23:01:15 +0000 (23:01 +0000)]
fix a critical bug with r_restart or vid_restart in R_BufferData_Reset
where it did not properly reset all buffers

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

11 years agorenamed r_bufferdatasize_ cvars to r_buffermegs_ to give them new good
havoc [Tue, 18 Jun 2013 21:08:14 +0000 (21:08 +0000)]
renamed r_bufferdatasize_ cvars to r_buffermegs_ to give them new good
values, as the old cvar increase logic was badly bugged and would
arbitrarily increase them when not necessary

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

11 years agoremoved allowfail flag on R_BufferData_Store and made cvar management
havoc [Tue, 18 Jun 2013 20:51:30 +0000 (20:51 +0000)]
removed allowfail flag on R_BufferData_Store and made cvar management
more consistent, increased the buffer cycle to 3 frames

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

11 years agoimage_png: libpng16 support (by graphitemaster)
divverent [Wed, 29 May 2013 16:53:08 +0000 (16:53 +0000)]
image_png: libpng16 support (by graphitemaster)

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

11 years agoImplement DSCP for ToS according to RFC2474 / RFC4594
divverent [Sat, 25 May 2013 14:08:53 +0000 (14:08 +0000)]
Implement DSCP for ToS according to RFC2474 / RFC4594

From: Merlijn Hofstra <merlijn@Merlijns-MacBook-Air.local>

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

11 years agoclarify the code when gl_mesh_prefer_short_elements is off
havoc [Wed, 22 May 2013 06:45:43 +0000 (06:45 +0000)]
clarify the code when gl_mesh_prefer_short_elements is off

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

11 years agoorder postprocess code properly (so blur does not cancel bloom)
divverent [Wed, 8 May 2013 10:41:01 +0000 (10:41 +0000)]
order postprocess code properly (so blur does not cancel bloom)

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

11 years agofix a floating around mutexattr object
divverent [Mon, 6 May 2013 09:54:55 +0000 (09:54 +0000)]
fix a floating around mutexattr object

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

11 years agofix a possible pthread crash
divverent [Mon, 6 May 2013 09:50:57 +0000 (09:50 +0000)]
fix a possible pthread crash

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

11 years agoVM_CL_findradius now uses World_EntitiesInBox as it should
havoc [Sun, 5 May 2013 04:04:34 +0000 (04:04 +0000)]
VM_CL_findradius now uses World_EntitiesInBox as it should

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

11 years agofix endless loop with gcc 4.8
divverent [Fri, 19 Apr 2013 09:40:43 +0000 (09:40 +0000)]
fix endless loop with gcc 4.8

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

11 years agoOPENGL_ORIENTATION -> MATRIX4x4_OPENGLORIENTATION
eihrul [Thu, 18 Apr 2013 17:30:25 +0000 (17:30 +0000)]
OPENGL_ORIENTATION -> MATRIX4x4_OPENGLORIENTATION

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

11 years agoset vid_stereobuffer cvar based on whether GL_STEREO is true after setting the mode
havoc [Wed, 17 Apr 2013 07:13:52 +0000 (07:13 +0000)]
set vid_stereobuffer cvar based on whether GL_STEREO is true after setting the mode

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

11 years agofix a severe texture corruption and crash case when using vid_dx9 1 is used with...
havoc [Wed, 17 Apr 2013 02:46:57 +0000 (02:46 +0000)]
fix a severe texture corruption and crash case when using vid_dx9 1 is used with vid_sRGB 1
work around a crash when using vid_dx9 1 with vid_stereobuffer 1 (this needs a better fix, D3D9 does not support this)
fix a warning in C++ where a bit flag mask was being passed as a bool

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

11 years agoadd prvm_uint_t type
havoc [Wed, 17 Apr 2013 02:33:45 +0000 (02:33 +0000)]
add prvm_uint_t type

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

11 years agooptimized vm by using cached local variables instead of accessing prog->
havoc [Tue, 16 Apr 2013 22:51:33 +0000 (22:51 +0000)]
optimized vm by using cached local variables instead of accessing prog->
fields all the time

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

11 years agoadded prvm_uint_t for bounds check tests in the vm
havoc [Tue, 16 Apr 2013 22:17:09 +0000 (22:17 +0000)]
added prvm_uint_t for bounds check tests in the vm

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

11 years agouse unsigned comparisons for most of the boundschecks in the vm
havoc [Tue, 16 Apr 2013 21:57:17 +0000 (21:57 +0000)]
use unsigned comparisons for most of the boundschecks in the vm

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

11 years agoipv6 dpmaster.sudo.rm-f.org has moved
divverent [Tue, 16 Apr 2013 08:51:32 +0000 (08:51 +0000)]
ipv6 dpmaster.sudo.rm-f.org has moved

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

11 years agoclarify a comment
havoc [Tue, 16 Apr 2013 03:24:09 +0000 (03:24 +0000)]
clarify a comment

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

11 years agowhen using engine particles (not effectinfo), prevent spawning particles
havoc [Tue, 16 Apr 2013 03:22:39 +0000 (03:22 +0000)]
when using engine particles (not effectinfo), prevent spawning particles
for EFFECT_EF_FLAME and EFFECT_EF_STARDUST when paused

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

11 years agofix two very ambiguous for loops that calculate camerawidth and
havoc [Tue, 16 Apr 2013 03:16:17 +0000 (03:16 +0000)]
fix two very ambiguous for loops that calculate camerawidth and
cameraheight

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

11 years agouse int not qboolean for glshaderversion
havoc [Tue, 16 Apr 2013 03:09:01 +0000 (03:09 +0000)]
use int not qboolean for glshaderversion

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

11 years agomove extension enables to the top of the shader to comply with spec
eihrul [Mon, 1 Apr 2013 15:58:00 +0000 (15:58 +0000)]
move extension enables to the top of the shader to comply with spec

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

11 years agoenable UBO extension for skeletal
eihrul [Mon, 1 Apr 2013 15:54:53 +0000 (15:54 +0000)]
enable UBO extension for skeletal

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

11 years agoRewritten SVQC stringbuffer saving routines (which is part of yet unfinished databuff...
vortex [Thu, 28 Mar 2013 20:24:13 +0000 (20:24 +0000)]
Rewritten SVQC stringbuffer saving routines (which is part of yet unfinished databuffers extension). Changes are backwards compatible with old savefile format. Now, once saved stringbuffers are found in extended savegame section, all string buffers allocated by worldspawn()/entityspawn (which is processed prior to savegame parsing) are deleted, and stringbuffers are restored from savegamefile with their original handles.

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

11 years agodisable depthfirst rendering on animated models since it doesn't work and should...
eihrul [Tue, 26 Mar 2013 22:19:01 +0000 (22:19 +0000)]
disable depthfirst rendering on animated models since it doesn't work and should theoretically have little performance benefit (and most likely performance detriment)

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

11 years agofix boneposerelative address
eihrul [Tue, 26 Mar 2013 21:01:54 +0000 (21:01 +0000)]
fix boneposerelative address

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

11 years agofactor out skeletal animation transform generation so that it can be reused
eihrul [Tue, 26 Mar 2013 19:34:00 +0000 (19:34 +0000)]
factor out skeletal animation transform generation so that it can be reused

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

11 years agoreworked the MOVETYPE_WALK and MOVETYPE_STEP sticking logic so that it
havoc [Sun, 24 Mar 2013 18:20:15 +0000 (18:20 +0000)]
reworked the MOVETYPE_WALK and MOVETYPE_STEP sticking logic so that it
only cares about world when deciding to be stuck, this means if you get
into a bmodel entity you can still move out of it

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

11 years agodon't call glGetUniformBlockIndex without GL_ARB_uniform_buffer_object
havoc [Tue, 5 Mar 2013 01:05:14 +0000 (01:05 +0000)]
don't call glGetUniformBlockIndex without GL_ARB_uniform_buffer_object
as the pointer is NULL (this crashed OpenGL 2.0-3.0 drivers)

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

11 years agorestrict which CHANNELFLAG_ values can be used in sound7 builtin, to
havoc [Sun, 3 Mar 2013 01:59:37 +0000 (01:59 +0000)]
restrict which CHANNELFLAG_ values can be used in sound7 builtin, to
keep qc from using internal-only ones

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

11 years agochanged MOVETYPE_STEP and MOVETYPE_WALK to match Quake behavior (unable
havoc [Sat, 2 Mar 2013 04:57:07 +0000 (04:57 +0000)]
changed MOVETYPE_STEP and MOVETYPE_WALK to match Quake behavior (unable
to move when allsolid - but also check SUPERCONTENTS_SOLID), this makes
hip2m3 shalrath work again

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

11 years agofix C++ compile error
havoc [Sat, 2 Mar 2013 00:42:01 +0000 (00:42 +0000)]
fix C++ compile error

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

11 years agoimplemented r_batch_dynamicbuffer which allows the rsurface batching
havoc [Thu, 28 Feb 2013 11:41:40 +0000 (11:41 +0000)]
implemented r_batch_dynamicbuffer which allows the rsurface batching
code to produce dynamic vertex/index buffers using R_BufferData_Store

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

11 years agosound7(): properly support channel flags on client; reassign sound flags so FORCELOOP...
divverent [Thu, 28 Feb 2013 11:39:47 +0000 (11:39 +0000)]
sound7(): properly support channel flags on client; reassign sound flags so FORCELOOP is now 2 (and FULLVOLUME is 16); note that these flags only work on csqc for now

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

11 years agorestore flags feature in csqc sound7 builtin, so that mods can use
havoc [Thu, 28 Feb 2013 09:46:44 +0000 (09:46 +0000)]
restore flags feature in csqc sound7 builtin, so that mods can use
CHANNELFLAG_FORCELOOP and others as before

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

11 years agocsqc sound7 call now looks at the global variable sound_starttime to
havoc [Thu, 28 Feb 2013 09:44:12 +0000 (09:44 +0000)]
csqc sound7 call now looks at the global variable sound_starttime to
calculate a startposition from, this allows a sound to be played at a
later time (delayed) or an earlier time (for instance restoring a
dialogue sound in-progress when loading a savegame)

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

11 years agochanged the default sv_gameplayfix_ cvar values based on GAME_,
havoc [Thu, 28 Feb 2013 09:36:29 +0000 (09:36 +0000)]
changed the default sv_gameplayfix_ cvar values based on GAME_,
GAME_NORMAL (quake) and derivatives now default them to 0 for better
compatibility and avoiding gameplay changes, non-quake games such as
GAME_NEXUIZ and others are unaffected (still default to 1 there)

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

11 years agoimplemented use of GL_ARB_uniform_buffer_object for r_glsl_skeletal
havoc [Thu, 28 Feb 2013 09:30:03 +0000 (09:30 +0000)]
implemented use of GL_ARB_uniform_buffer_object for r_glsl_skeletal
added R_BufferData_ system which allows arbitrary vertex/index/uniform
buffers to be dynamically built during a frame (in the same way as the
R_FrameData_ system), this has vastly better performance than uploading
them individually and code should be migrated to use it as appropriate
vid.support.glshaderversion added (typically 140)

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

11 years agoimplemented loading of the RMQe variant of BSP2 ("2PSB")
havoc [Thu, 28 Feb 2013 00:21:59 +0000 (00:21 +0000)]
implemented loading of the RMQe variant of BSP2 ("2PSB")

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

11 years agofix typo in cvar description (grude -> crude)
havoc [Thu, 28 Feb 2013 00:21:22 +0000 (00:21 +0000)]
fix typo in cvar description (grude -> crude)

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

11 years agoimplemented loading of the RMQe variant of BSP2 ("2PSB")
havoc [Thu, 28 Feb 2013 00:21:01 +0000 (00:21 +0000)]
implemented loading of the RMQe variant of BSP2 ("2PSB")

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

11 years agofix another warning in crypto.c
divverent [Wed, 27 Feb 2013 13:30:07 +0000 (13:30 +0000)]
fix another warning in crypto.c

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

11 years agoremove unused variable
divverent [Wed, 27 Feb 2013 13:30:04 +0000 (13:30 +0000)]
remove unused variable

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

11 years agorename CHANFLAG_RELIABLE to SOUNDFLAG_RELIABLE to match dpdefs; remove accidental...
divverent [Wed, 27 Feb 2013 11:38:50 +0000 (11:38 +0000)]
rename CHANFLAG_RELIABLE to SOUNDFLAG_RELIABLE to match dpdefs; remove accidental flags passing in CL_sound()

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

11 years agoAdd a cvar to change menu progs filename
divverent [Mon, 25 Feb 2013 12:28:46 +0000 (12:28 +0000)]
Add a cvar to change menu progs filename

From: Mario <mario.mario@y7mail.com>

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

11 years agoremoved cvar sv_gameplayfix_stepwhilejumping which wasn't needed
havoc [Mon, 25 Feb 2013 04:40:39 +0000 (04:40 +0000)]
removed cvar sv_gameplayfix_stepwhilejumping which wasn't needed
(sv_jumpstep is no longer dependent on this cvar)

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

11 years agoNevermind, we can't remove that STX char... just add \{3} for our purposes
divverent [Sun, 24 Feb 2013 16:59:37 +0000 (16:59 +0000)]
Nevermind, we can't remove that STX char... just add \{3} for our purposes

From: Samual Lenks <samual@xonotic.org>

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

11 years agoFix bug with cl_parse.c putting extra \2 in the Con_Printf() line
divverent [Sun, 24 Feb 2013 16:59:33 +0000 (16:59 +0000)]
Fix bug with cl_parse.c putting extra \2 in the Con_Printf() line

From: Samual Lenks <samual@xonotic.org>

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

11 years agoLets add the ability to have silent messages sent to the chatbox, this is so that...
divverent [Sun, 24 Feb 2013 16:59:30 +0000 (16:59 +0000)]
Lets add the ability to have silent messages sent to the chatbox, this is so that it can later replace the console output in Xonotic

From: Samual <samual@xonotic.org>

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

11 years agofix C++ compile error
havoc [Sat, 23 Feb 2013 21:55:11 +0000 (21:55 +0000)]
fix C++ compile error

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

11 years agofix bug where particle textures scroll in GL11/GL13 paths
havoc [Sat, 23 Feb 2013 12:23:39 +0000 (12:23 +0000)]
fix bug where particle textures scroll in GL11/GL13 paths

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

11 years agoadded entity caching stats in graph
havoc [Sat, 23 Feb 2013 11:08:31 +0000 (11:08 +0000)]
added entity caching stats in graph
optimized logic for animcache and dynamic batching
optimized r_shadows code which was often casting shadows from entities
it did not animcache, and these entities didn't need to cast anyway,
imposed an artificial limit of 1024 entities in r_shadows code...
now exactly determines if models are animated at load (except iqm which
is trusted), and the isanimated flag is not needed for animating a
skeletal model with skeletonobject

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

11 years agoremoved frames last second report in r_speeds graph
havoc [Sat, 23 Feb 2013 07:38:19 +0000 (07:38 +0000)]
removed frames last second report in r_speeds graph

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

11 years agochanged r_refdef.stats struct to be an array indexed by r_stat_* enums
havoc [Sat, 23 Feb 2013 07:37:10 +0000 (07:37 +0000)]
changed r_refdef.stats struct to be an array indexed by r_stat_* enums
added r_speeds_graph and associated cvars, this will visually graph any
chosen renderer statistics (8 allowed at one time)
added a lot of additional statistics for the batcher

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

11 years agoadded velocity-oriented blood decals, cvar is cl_decals_newsystem_bloodsmears
havoc [Sat, 23 Feb 2013 07:34:07 +0000 (07:34 +0000)]
added velocity-oriented blood decals, cvar is cl_decals_newsystem_bloodsmears

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

11 years agochanged Q1BSP traceline to only use the surface-hitting variant if
havoc [Sun, 17 Feb 2013 05:05:28 +0000 (05:05 +0000)]
changed Q1BSP traceline to only use the surface-hitting variant if
sv_gameplayfix_q1bsptracelinereportstexture is on, because in one of
negke's maps a set of items are crushed by a pusher and are expected to
fall through the sky brush they are sitting on, which does not happen if
the sky surface is considered solid, but in any other situation this
should be reported as solid

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

11 years agoadded missing VS2010 projects
havoc [Fri, 15 Feb 2013 20:51:04 +0000 (20:51 +0000)]
added missing VS2010 projects

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

11 years agoadded props files for vs2010 and vs2012, changed name of darkplaces-2010.sln to darkp...
havoc [Thu, 7 Feb 2013 14:22:17 +0000 (14:22 +0000)]
added props files for vs2010 and vs2012, changed name of darkplaces-2010.sln to darkplaces-vs2010.sln and renamed the vcproj files similarly to darkplaces-sdl-vs2010.vcxproj and such.

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

11 years agoadded MSVC 2012 projects
havoc [Thu, 7 Feb 2013 13:36:55 +0000 (13:36 +0000)]
added MSVC 2012 projects

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