]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
9 years agomisc threads patches by Izy nyov/izy-misc-thread-patch
Izy [Mon, 17 Nov 2014 14:21:17 +0000 (14:21 +0000)]
misc threads patches by Izy

Provided by mynick1 on IRC,
whitespace- and indent-cleaned.

Patch description for threads:
- Added the missing header guard in the C header file
- Fixed some memory leaks (by adding 5 missing calls to "free")
- Removed the poor's man :( debugging system
- Added the "set thread priority low/normal/high" functions
- Made WaitThread looking more similar to the SDL interface

10 years agoFix _alpha image loading.
divverent [Thu, 16 Oct 2014 12:05:04 +0000 (12:05 +0000)]
Fix _alpha image loading.

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

10 years agoIn current gccs, it is -mfpmath=sse, not -fpmath=sse.
divverent [Wed, 15 Oct 2014 12:06:06 +0000 (12:06 +0000)]
In current gccs, it is -mfpmath=sse, not -fpmath=sse.

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

10 years agoFix possible endless loop in VM_sprintf.
divverent [Wed, 15 Oct 2014 11:56:32 +0000 (11:56 +0000)]
Fix possible endless loop in VM_sprintf.

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

10 years agoRegenerate SSH key.
divverent [Thu, 9 Oct 2014 12:24:14 +0000 (12:24 +0000)]
Regenerate SSH key.

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

10 years agoIf vid_desktopfullscreen is set, manually initialize window with the current desktop...
divverent [Sat, 4 Oct 2014 20:20:22 +0000 (20:20 +0000)]
If vid_desktopfullscreen is set, manually initialize window with the current desktop resolution instead of with the default values and then letting sdl correct it automatically when they differ. It caused issues switching from fullscreen to window mode in the first game run

Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12098 d7cf8633-e32d-0410-b094-e92efae38249

10 years agoImplement proper support for utf8 characters in SDL2
divverent [Sat, 4 Oct 2014 20:16:54 +0000 (20:16 +0000)]
Implement proper support for utf8 characters in SDL2

From: terencehill <piuntn@gmail.com>

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

10 years agoSDL2: Make work numeric keypad keys when numlock is off, K_PRINTSCREEN, K_SCROLLOCK...
divverent [Sat, 4 Oct 2014 20:15:47 +0000 (20:15 +0000)]
SDL2: Make work numeric keypad keys when numlock is off, K_PRINTSCREEN,  K_SCROLLOCK and K_NUMLOCK. Also fix a debug print (event.key.keysym.unicode doesn't exist anymore in SDL2)

From: terencehill <piuntn@gmail.com>

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

10 years agoCache corona occlusion buffer
divverent [Sat, 4 Oct 2014 20:12:56 +0000 (20:12 +0000)]
Cache corona occlusion buffer

Rather than creating and destroying the occlusion buffer every frame, cache it.
This improves performance slightly.

From: Alex Goins <agoins@nvidia.com>

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

10 years agoImplement GPU-side corona fading
divverent [Sat, 4 Oct 2014 20:12:51 +0000 (20:12 +0000)]
Implement GPU-side corona fading

Uses GL_ARB_query_buffer_object to retrieve query results directly into a
buffer. This allows corona fading to be moved into the fragment shader,
preventing a round-trip to the CPU and synchronous rendering. Depending on the
machine's configuration, it can give a dramatic performance boost.

From: Alex Goins <agoins@nvidia.com>

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

10 years agoDisable SDLmain.m for SDL2.
divverent [Thu, 28 Aug 2014 12:47:58 +0000 (12:47 +0000)]
Disable SDLmain.m for SDL2.

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

10 years agoMore Travis changes :) Use SDL2 in all builds now.
divverent [Thu, 28 Aug 2014 12:47:55 +0000 (12:47 +0000)]
More Travis changes :) Use SDL2 in all builds now.

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

10 years agoAdd Travis-CI integration for Xonotic.
divverent [Wed, 27 Aug 2014 12:46:22 +0000 (12:46 +0000)]
Add Travis-CI integration for Xonotic.

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

10 years agoFix build on OS X. Previously, building on OS X always assumed to be on an iDevice.
divverent [Wed, 27 Aug 2014 12:45:55 +0000 (12:45 +0000)]
Fix build on OS X. Previously, building on OS X always assumed to be on an iDevice.

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

10 years agofix a /* warning in a comment
havoc [Wed, 18 Jun 2014 04:08:58 +0000 (04:08 +0000)]
fix a /* warning in a comment

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

10 years agoraise system requirements to Pentium3 so that we can force the math
havoc [Sat, 14 Jun 2014 18:48:02 +0000 (18:48 +0000)]
raise system requirements to Pentium3 so that we can force the math
pipeline to SSE, this fixes lightmap alignment issues in several
usermade quake maps (where the x87 increased precision was resulting in
different rounding than in the map compiler)

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

10 years agoFixed many issues with q2bsp support, it now works properly.
havoc [Sun, 8 Jun 2014 16:57:58 +0000 (16:57 +0000)]
Fixed many issues with q2bsp support, it now works properly.

Added sv_mapformat_quake2 cvar so that qc can check for this map format and change behavior if needed (also added sv_mapformat_quake3 cvar).

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

10 years agoMake PAK loading case insensitive for quake2 pak files...
havoc [Sun, 8 Jun 2014 16:14:54 +0000 (16:14 +0000)]
Make PAK loading case insensitive for quake2 pak files...

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

10 years agoSome fixes to the keyboard handler:
divverent [Wed, 4 Jun 2014 09:08:42 +0000 (09:08 +0000)]
Some fixes to the keyboard handler:

------- WGL -------
* Keyboard handler now returns Unicode chars
* Fix numlock key interpreted as pause key
* Fix numlock, scrollock and capslock binds not working
* When numlock is off numeric keypad keys now return K_END, K_DOWNARROW,
* etc... Previously they always returned K_KP_<num>
regardless of numlock state

------- SDL -------
* Simulate press and release events when numlock and capslock get
* pressed, so that they can work similarly to the other keys
(excluding key repetition, it doesn't and will never work). It's a
workaround for the default SDL behaviour with these keys:
it generate a press event when a key gets enabled, a release event when
the key gets disabled. Scrollock already works as a
normal key.
* When numlock is off numeric keypad keys now return K_END, K_DOWNARROW,
* etc... Previously they always returned K_KP_<num>
regardless of numlock state

------- GLX -------
* Add numlock, scrollock and capslock keys

From: terencehill <piuntn@gmail.com>

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

10 years agoCorrected two comments regarding IBSP version of the Q2 bsp format.
havoc [Sun, 1 Jun 2014 08:15:00 +0000 (08:15 +0000)]
Corrected two comments regarding IBSP version of the Q2 bsp format.

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

10 years agoAdded Quake2 BSP support (IBSP38), this is a work in progress.
havoc [Sun, 1 Jun 2014 08:13:34 +0000 (08:13 +0000)]
Added Quake2 BSP support (IBSP38), this is a work in progress.

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

10 years agoClarify comment in CURL_fwrite.
divverent [Thu, 29 May 2014 20:04:10 +0000 (20:04 +0000)]
Clarify comment in CURL_fwrite.

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

10 years agoFixed a large number of WIN64 type conversion warnings.
havoc [Thu, 29 May 2014 20:01:57 +0000 (20:01 +0000)]
Fixed a large number of WIN64 type conversion warnings.

Changed FS_Write to do multiple write calls if the size exceeds 1GB, this is to accommodate WIN64 where write() takes a UINT rather than size_t.  We have no use of such large writes at this time, so this is a mostly theoretical feature.

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

10 years agoEnable multiprocessor compilation in the VS2012 projects, changed their build directo...
havoc [Thu, 29 May 2014 19:36:03 +0000 (19:36 +0000)]
Enable multiprocessor compilation in the VS2012 projects, changed their build directories to not conflict with eachother.

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

10 years agowhichpack: distinguish file not found from file is physical.
divverent [Wed, 28 May 2014 15:14:24 +0000 (15:14 +0000)]
whichpack: distinguish file not found from file is physical.
csqc: add cltime global.

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

10 years agochange the isserver builtin to just return sv.active rather than
havoc [Tue, 27 May 2014 21:23:33 +0000 (21:23 +0000)]
change the isserver builtin to just return sv.active rather than
checking maxclients and dedicated

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

10 years agodon't miscount the bgmvolume entry in the menu when CONFIG_CD is not
havoc [Wed, 21 May 2014 22:23:20 +0000 (22:23 +0000)]
don't miscount the bgmvolume entry in the menu when CONFIG_CD is not
defined

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

10 years agoChanged the collision code used by sv_gameplayfix_nudgeoutofsolid to not consider...
havoc [Tue, 13 May 2014 22:13:15 +0000 (22:13 +0000)]
Changed the collision code used by sv_gameplayfix_nudgeoutofsolid to not consider collision_impactnudge as that is already taken care of by the caller, and the way it was being done would typically reject such collisions anyway.

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

10 years agoRemoved collision_enternudge, collision_leavenudge, collision_startnudge, collision_e...
havoc [Tue, 13 May 2014 17:59:02 +0000 (17:59 +0000)]
Removed collision_enternudge, collision_leavenudge, collision_startnudge, collision_endnudge cvars, all replaced with their current value (0) as other values break collisions too badly to be of practical value.

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

10 years agoRemoved collision_prefernudgedfraction cvar and trace.realfraction field, this has...
havoc [Tue, 13 May 2014 17:43:21 +0000 (17:43 +0000)]
Removed collision_prefernudgedfraction cvar and trace.realfraction field, this has been 1 for a very long time and it is time to lock in that value, thus trace.realfraction no longer has any reason to exist.

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

10 years agoChanged collision_enternudge and collision_leavenudge back to 0 because of massive...
havoc [Tue, 13 May 2014 17:03:38 +0000 (17:03 +0000)]
Changed collision_enternudge and collision_leavenudge back to 0 because of massive sticking issues in terrain maps such as the Nexuiz 2.5.2 map ons-reborn.

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

10 years agoOverhauled the tracebox extending code, it now lives in collision.c rather than cl_co...
havoc [Thu, 8 May 2014 03:10:57 +0000 (03:10 +0000)]
Overhauled the tracebox extending code, it now lives in collision.c rather than cl_collision.c/sv_phys.c and has 3 cvars controlling it:
collision_extendmovelength - affects ALL engine traces (physics, etc), this has a higher value because of how important it is to not get stuck in things.
collision_extendtraceboxlength - affects only the qc tracebox builtin.
collision_extendtracelinelength - affects only the qc traceline builtin (in particular it is a bad idea to set this to a high value because it can interfere with trace_inwater/trace_inair reporting).
Changed collision_enternudge/collision_leavenudge to behave more like Quake2/Quake3, this means that you can not sink into a brush (assuming the brush is detected - see collision_extendmovelength).
Some beautification on the RecursiveHullCheck and RecursiveLightPoint code.

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

10 years agoReworked r_useportalculling to use expanded portal bboxes based on r_nearclip, this...
havoc [Thu, 8 May 2014 03:06:11 +0000 (03:06 +0000)]
Reworked r_useportalculling to use expanded portal bboxes based on r_nearclip, this resolves an issue where a portal could lie entirely behind the nearclip plane of the frustum, but still need to be recursed.

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

10 years agoFixed LightPoint code to deal better with lightmap bounds checking, this resolves...
havoc [Thu, 8 May 2014 01:02:39 +0000 (01:02 +0000)]
Fixed LightPoint code to deal better with lightmap bounds checking, this resolves several issues with item pickups in specific maps being lit wrong, thanks to jitspoe for discussion that led to this fix.

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

10 years agoFix a compile error when using COLLISION_PARANOID 3.
havoc [Thu, 8 May 2014 00:51:07 +0000 (00:51 +0000)]
Fix a compile error when using COLLISION_PARANOID 3.

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

10 years agoFix sv_jumpstep cvar, whose behavior was completely inverted (jump stepping worked...
havoc [Thu, 8 May 2014 00:48:59 +0000 (00:48 +0000)]
Fix sv_jumpstep cvar, whose behavior was completely inverted (jump stepping worked with it off, and did not work with it on).

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

10 years agofix compile error caused by mixing of SDL2 and SDL1 code
havoc [Wed, 7 May 2014 22:02:04 +0000 (22:02 +0000)]
fix compile error caused by mixing of SDL2 and SDL1 code

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

10 years agoTurn off alpha blending on vid_softsurface.
divverent [Wed, 7 May 2014 09:42:41 +0000 (09:42 +0000)]
Turn off alpha blending on vid_softsurface.

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

10 years agochanged macosx default LINK_LIB_JPEG from shared to dlopen as we still distribute...
havoc [Thu, 1 May 2014 01:50:34 +0000 (01:50 +0000)]
changed macosx default LINK_LIB_JPEG from shared to dlopen as we still distribute the jpeg62 version with it

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

10 years agoArgh, had to update the VM_sprintf extension spec. No code change.
divverent [Wed, 9 Apr 2014 13:05:42 +0000 (13:05 +0000)]
Argh, had to update the VM_sprintf extension spec. No code change.

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

10 years agopatch from graphitemaster that changes r_fxaa use of texture2D in
havoc [Wed, 9 Apr 2014 04:35:09 +0000 (04:35 +0000)]
patch from graphitemaster that changes r_fxaa use of texture2D in
default.glsl to use dp_texture2D instead (which resolves to the correct
texture function on later GL versions)

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

10 years agoMake r_fxaa also enable postprocessing shaders so only one cvar is
divverent [Sat, 5 Apr 2014 10:07:18 +0000 (10:07 +0000)]
Make r_fxaa also enable postprocessing shaders so only one cvar is
needed to enable FXAA.

From: graphitemaster

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

10 years agoProperly make the blur conditional on non empty uservecs 1 and 2.
divverent [Sat, 5 Apr 2014 10:07:15 +0000 (10:07 +0000)]
Properly make the blur conditional on non empty uservecs 1 and 2.

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

10 years agochanged dpmaster.deathmask.net ip4 address, added ip6 address
havoc [Sun, 16 Mar 2014 00:06:53 +0000 (00:06 +0000)]
changed dpmaster.deathmask.net ip4 address, added ip6 address

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

10 years agoFix very stupid typo by me in counting coverage() statements.
divverent [Sat, 15 Mar 2014 12:23:41 +0000 (12:23 +0000)]
Fix very stupid typo by me in counting coverage() statements.

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

10 years agoClarify what sprintf does on %1$s %s
divverent [Sat, 8 Mar 2014 17:57:10 +0000 (17:57 +0000)]
Clarify what sprintf does on %1$s %s

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

10 years agoincrease MAX_PARTICLEEFFECTNAME and MAX_PARTICLEEFFECTINFO limits
havoc [Tue, 4 Mar 2014 23:21:13 +0000 (23:21 +0000)]
increase MAX_PARTICLEEFFECTNAME and MAX_PARTICLEEFFECTINFO limits
(formerly 256,4096 and now 4096,8192)

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

10 years agomake R_View_UpdateEntityVisible more readable and consistent
havoc [Wed, 26 Feb 2014 02:38:43 +0000 (02:38 +0000)]
make R_View_UpdateEntityVisible more readable and consistent

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

10 years agodon't skip nearclip plane in R_CullBox as it is possible that the view
havoc [Mon, 24 Feb 2014 23:44:45 +0000 (23:44 +0000)]
don't skip nearclip plane in R_CullBox as it is possible that the view
is in ortho mode

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

10 years agoallow .rtlights files to have style values outside the range
havoc [Thu, 30 Jan 2014 02:05:50 +0000 (02:05 +0000)]
allow .rtlights files to have style values outside the range
0...MAX_LIGHTSTYLES - in particular, -1 is used by fte for unstyled
lights and this is a compatible behavior, just that the loader was
getting in the way.

for safety the MAX_LIGHTSTYLES comparison has been added to each use of
light->style in rendering.

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

10 years agoFix some d0_blind_id related bugs:
divverent [Fri, 24 Jan 2014 16:39:06 +0000 (16:39 +0000)]
Fix some d0_blind_id related bugs:

- Higher numbered CAs should have priority over lower numbered CAs,
  making CA 0 the "default" CA.
- Fix the "Authenticated connection to ..." message (no more -@- crap).

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

10 years agoAlways pass CDS_FULLSCREEN to ChangeDisplaySettings, fixes #1797.
divverent [Sat, 18 Jan 2014 11:19:45 +0000 (11:19 +0000)]
Always pass CDS_FULLSCREEN to ChangeDisplaySettings, fixes #1797.

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

10 years agosdl2: fix mouse wheel
divverent [Fri, 10 Jan 2014 18:53:30 +0000 (18:53 +0000)]
sdl2: fix mouse wheel

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

10 years agosdl2: fix compile.
divverent [Fri, 10 Jan 2014 18:38:11 +0000 (18:38 +0000)]
sdl2: fix compile.

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

10 years agoSupport statementprofiling in the fast interpreter.
divverent [Wed, 8 Jan 2014 16:02:04 +0000 (16:02 +0000)]
Support statementprofiling in the fast interpreter.

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

10 years agoRestructure profiling to allow easier statement coverage later.
divverent [Wed, 8 Jan 2014 16:02:01 +0000 (16:02 +0000)]
Restructure profiling to allow easier statement coverage later.

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

10 years agoUse PreError() for warnings too. Simpler code!
divverent [Wed, 8 Jan 2014 16:01:58 +0000 (16:01 +0000)]
Use PreError() for warnings too. Simpler code!

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

10 years agoUse an explicit jump table for QCVM instruction dispatch.
divverent [Tue, 7 Jan 2014 19:22:59 +0000 (19:22 +0000)]
Use an explicit jump table for QCVM instruction dispatch.

Also, duplicate the dispatch into the end of each case for additional
speedup (each of these branches gets a separate branch prediction slot
on many CPUs, which pays off quickly).

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

10 years agoBetter coverage output.
divverent [Tue, 7 Jan 2014 16:29:29 +0000 (16:29 +0000)]
Better coverage output.

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

10 years agoCOVERAGE! Also fixes prvm always running as PRVMSLOWINTERPRETER :(
divverent [Tue, 7 Jan 2014 16:29:25 +0000 (16:29 +0000)]
COVERAGE! Also fixes prvm always running as PRVMSLOWINTERPRETER :(

Very basic implementation. Needs a persistent store later, I suppose, as
well as better output (e.g. for statements and coverage(), also show
function, file and line).

prvm_coverage 1: report function call coverage
prvm_coverage 2: report coverage() builtin coverage (compiler aided)
prvm_coverage 4: report statement coverage (SLOW)

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

10 years agoFix some warnings.
divverent [Tue, 7 Jan 2014 16:29:21 +0000 (16:29 +0000)]
Fix some warnings.

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

10 years agoPatch by graphitemaster to support column number enhanced lno format.
divverent [Mon, 6 Jan 2014 10:00:04 +0000 (10:00 +0000)]
Patch by graphitemaster to support column number enhanced lno format.

From: Dale Weiler <killfieldengine@gmail.com>

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

10 years agoDisable r_water_hideplayer while in chase camera view
divverent [Mon, 6 Jan 2014 09:49:47 +0000 (09:49 +0000)]
Disable r_water_hideplayer while in chase camera view

From: Samual Lenks <samual@xonotic.org>

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

10 years agoCSQC entity sending rework.
divverent [Mon, 6 Jan 2014 09:48:46 +0000 (09:48 +0000)]
CSQC entity sending rework.

Properly support returning FALSE from a CSQC entity to mean "remove".

From: Rudolf Polzer <divverent@xonotic.org>

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

10 years agoKill csqcentityglobalhistory.
divverent [Mon, 6 Jan 2014 09:48:43 +0000 (09:48 +0000)]
Kill csqcentityglobalhistory.

From: Rudolf Polzer <divverent@xonotic.org>

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

10 years agoGive CSQC entity scopes names.
divverent [Mon, 6 Jan 2014 09:48:40 +0000 (09:48 +0000)]
Give CSQC entity scopes names.

From: Rudolf Polzer <divverent@xonotic.org>

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

10 years agoFix cl_curl_maxspeed 0 + sv_curl_maxspeed > 0.
divverent [Sat, 4 Jan 2014 12:46:04 +0000 (12:46 +0000)]
Fix cl_curl_maxspeed 0 + sv_curl_maxspeed > 0.

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

10 years agoUnbreak most of sv_ratelimitlocalplayer.
divverent [Fri, 3 Jan 2014 08:26:05 +0000 (08:26 +0000)]
Unbreak most of sv_ratelimitlocalplayer.

A redesign to move the rate stuff from function parameters into the
netconn struct needs doing.

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

10 years ago"log_file_stripcolors" cvar to strip colors from log_file;
divverent [Mon, 23 Dec 2013 10:52:33 +0000 (10:52 +0000)]
"log_file_stripcolors" cvar to strip colors from log_file;
Also add condump_stripcolors.

From: nitroxis <nitroxis@wtwrp.de>

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

10 years agoENTITYSIZEPROFILING: also log entity number and sendflags.
divverent [Thu, 19 Dec 2013 13:04:19 +0000 (13:04 +0000)]
ENTITYSIZEPROFILING: also log entity number and sendflags.

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

10 years agoUpgrade CL_VM_InputEvent to using floats rather than ints, this keeps
havoc [Sun, 15 Dec 2013 01:22:30 +0000 (01:22 +0000)]
Upgrade CL_VM_InputEvent to using floats rather than ints, this keeps
the precision on fractional absolute mouse positions.

Changed CL_VM_InputEvent passing of relative mouse moves to no longer
scale by vid_conwidth, vid_conheight as this goes against the intention
in most cases (where mouse turning or similar is being achieved).

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

10 years agodon't try to validate parameters to an opcode that is unrecognized
havoc [Sat, 14 Dec 2013 10:15:36 +0000 (10:15 +0000)]
don't try to validate parameters to an opcode that is unrecognized

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

10 years agoPatch from graphitemaster adding r_fxaa cvar, this enables the popular pseudo-antiali...
havoc [Sat, 30 Nov 2013 02:49:09 +0000 (02:49 +0000)]
Patch from graphitemaster adding r_fxaa cvar, this enables the popular pseudo-antialiasing method in postprocess.

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

10 years agopatch from Blub to make BSDmakefile work again, this also changes the
havoc [Fri, 29 Nov 2013 20:14:31 +0000 (20:14 +0000)]
patch from Blub to make BSDmakefile work again, this also changes the
build directories from obj/ to build-obj/ due to pmake having a peculiar
fondness for obj/

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

10 years agosuppress shadow entities when preparing an rtlight with shadows
havoc [Wed, 20 Nov 2013 06:06:41 +0000 (06:06 +0000)]
suppress shadow entities when preparing an rtlight with shadows
disabled, this way we don't call R_AnimCache_GetEntity on each one

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

11 years agoenable CONFIG_CD on Visual Studio projects, somehow only CONFIG_MENU was added.....
havoc [Mon, 4 Nov 2013 06:36:48 +0000 (06:36 +0000)]
enable CONFIG_CD on Visual Studio projects, somehow only CONFIG_MENU was added...  which meant the cd command was missing, so even if hardware cd playback was not wanted it also lost the ability to play music entirely.

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

11 years agoclarify in_pitch_* cvar descriptions about upward/downward values
havoc [Wed, 16 Oct 2013 20:53:13 +0000 (20:53 +0000)]
clarify in_pitch_* cvar descriptions about upward/downward values

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

11 years agoSoftware tcmod/tcgen: skip if pass needs no texcoords. Fixes #1326.
divverent [Sun, 13 Oct 2013 16:40:38 +0000 (16:40 +0000)]
Software tcmod/tcgen: skip if pass needs no texcoords. Fixes #1326.

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

11 years agoNetconn: when an encrypted connection is used, randomly set one or more of three...
divverent [Fri, 11 Oct 2013 14:43:19 +0000 (14:43 +0000)]
Netconn: when an encrypted connection is used, randomly set one or more of three unused NETFLAGs.

When AES encryption is enabled, this will then work around substring
matching in routers/IPS thanks to CBC and our method of IV selection.
See "startkeylogger". Note that this neither improves nor weakens
security - SSL e.g. has the very issue we're fixing here because it is
based on TCP, and thus resends always are identical payloads.

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

11 years agoUpdate m_draw prototype in dpdefs.
divverent [Thu, 10 Oct 2013 17:15:03 +0000 (17:15 +0000)]
Update m_draw prototype in dpdefs.

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

11 years agoAdd SLIF_CATEGORY for the server list, and a menu QC function to set it.
divverent [Thu, 10 Oct 2013 17:12:47 +0000 (17:12 +0000)]
Add SLIF_CATEGORY for the server list, and a menu QC function to set it.

Callback:
float m_gethostcachecategory(float entry_id) {
// Is supposed to use gethostcachestring() etc. and return a
// category integer.
// The server list is sorted by this category first if
// SLSF_CATEGORIES is set in the sort flags.
}

From: Samual Lenks <samual@xonotic.org>

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

11 years agoAllow refreshserverlist() to also clear the list like net_slist command.
divverent [Thu, 10 Oct 2013 17:09:20 +0000 (17:09 +0000)]
Allow refreshserverlist() to also clear the list like net_slist command.

Usage: refreshserverlist(TRUE);

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

11 years agosv_checkforpacketsduringsleep: perform a netconn master server frame
divverent [Thu, 10 Oct 2013 16:53:28 +0000 (16:53 +0000)]
sv_checkforpacketsduringsleep: perform a netconn master server frame
immediately. Fixes ping view in server browser.

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

11 years agoFix cl_curl_enabled 0.
divverent [Wed, 9 Oct 2013 12:55:05 +0000 (12:55 +0000)]
Fix cl_curl_enabled 0.

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

11 years agosupport "declaring" particle effects at the top of the effectinfo file
divverent [Mon, 30 Sep 2013 19:52:54 +0000 (19:52 +0000)]
support "declaring" particle effects at the top of the effectinfo file

Now "effect EFFECTNAME" without any fields set is harmless; the slot it creates
will be used by a later "effect EFFECTNAME" definition.

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

11 years agoInitialize host_dirtytime.
divverent [Sun, 29 Sep 2013 11:47:50 +0000 (11:47 +0000)]
Initialize host_dirtytime.

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

11 years agofix several visual studio projects which did not have CONFIG_MENU added
havoc [Thu, 26 Sep 2013 23:27:19 +0000 (23:27 +0000)]
fix several visual studio projects which did not have CONFIG_MENU added

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

11 years agofix a typo
havoc [Thu, 26 Sep 2013 20:54:23 +0000 (20:54 +0000)]
fix a typo

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

11 years agoadded GAME_SSAMMO
havoc [Thu, 26 Sep 2013 20:47:40 +0000 (20:47 +0000)]
added GAME_SSAMMO
added another column to gameinfo for the network filter name (gamename
for master server), and now replaces spaces with _ characters
automatically when using -customgamename, added
-customgamenetworkfiltername to override this if desired

this is necessary to resolve an issue where games whose names contain
spaces were not being supported by dpmaster

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

11 years agorestore the wrapping behavior on tcMod scroll for compatibility reasons
havoc [Sat, 21 Sep 2013 18:30:38 +0000 (18:30 +0000)]
restore the wrapping behavior on tcMod scroll for compatibility reasons
(this matches Quake3 logic)

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

11 years agoGLX: Fix desktopfullscreen size when we actually switched to it.
divverent [Fri, 20 Sep 2013 07:22:34 +0000 (07:22 +0000)]
GLX: Fix desktopfullscreen size when we actually switched to it.

Should fix a few possible issues with getresolution(-1) on a multihead
setup with some window managers.

Also, remove a superfluous memory allocation on GLX when not using
DPSOFTRAST.

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

11 years agoFix a compile error on win32 I introduced.
divverent [Fri, 20 Sep 2013 07:15:58 +0000 (07:15 +0000)]
Fix a compile error on win32 I introduced.

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

11 years agoRework game specific hacks to have a special group for Nexuiz-derived games.
divverent [Thu, 19 Sep 2013 12:19:24 +0000 (12:19 +0000)]
Rework game specific hacks to have a special group for Nexuiz-derived games.

From: Rudolf Polzer <divverent@xonotic.org>

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

11 years agoGame definitions for Vore Tournament
divverent [Thu, 19 Sep 2013 12:19:20 +0000 (12:19 +0000)]
Game definitions for Vore Tournament

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

11 years agoTEMPHACK_origin is no longer needed. Begone!
divverent [Thu, 19 Sep 2013 11:49:40 +0000 (11:49 +0000)]
TEMPHACK_origin is no longer needed. Begone!

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

11 years agovid_desktopfullscreen improvements; allow querying the desktop mode
divverent [Wed, 18 Sep 2013 09:33:21 +0000 (09:33 +0000)]
vid_desktopfullscreen improvements; allow querying the desktop mode

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

11 years agorename netwmfullscreen to desktopfullscreen; implement in other drivers (except agl)
divverent [Tue, 17 Sep 2013 19:38:35 +0000 (19:38 +0000)]
rename netwmfullscreen to desktopfullscreen; implement in other drivers (except agl)

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

11 years agoreworked tcmod to wrap shadertime every 9.1 hours (32768 seconds) rather
havoc [Tue, 17 Sep 2013 01:17:53 +0000 (01:17 +0000)]
reworked tcmod to wrap shadertime every 9.1 hours (32768 seconds) rather
than attempting to fixup precision issues in tcmod scroll, which was
breaking shaders that had other tcmod effects after tcmod scroll (or if
they used clampmap)

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

11 years agoset world.absmin and world.absmax in csqc
havoc [Sun, 15 Sep 2013 18:54:47 +0000 (18:54 +0000)]
set world.absmin and world.absmax in csqc

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

11 years agoFix loading of common.LANGUAGE.po.
divverent [Thu, 12 Sep 2013 12:43:08 +0000 (12:43 +0000)]
Fix loading of common.LANGUAGE.po.

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