]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
8 years agofix include paths so we can build with clang clang_includepath_fix
Matthias Krüger [Sat, 12 Mar 2016 21:01:16 +0000 (22:01 +0100)]
fix include paths so we can build with clang

8 years agov_yshearing: Make the cvar take the max angle to apply the effect to; remove the...
divverent [Mon, 7 Mar 2016 21:36:27 +0000 (21:36 +0000)]
v_yshearing: Make the cvar take the max angle to apply the effect to; remove the in_pitch hack for this as it is no longer needed then.

This makes Y shearing mode actually useful together with higer FOV (less
noticeable distortion).

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

8 years agov_yshearing: Make view and input behave more like Duke Nukem 3D ;)
divverent [Fri, 4 Mar 2016 20:41:09 +0000 (20:41 +0000)]
v_yshearing: Make view and input behave more like Duke Nukem 3D ;)

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

8 years agoFix initial state of autocvars.
divverent [Sun, 7 Feb 2016 01:53:31 +0000 (01:53 +0000)]
Fix initial state of autocvars.

From: Rudolf Polzer <divverent@xonotic.org>

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

8 years agoRemoved leftovers from progid.
divverent [Sun, 7 Feb 2016 01:53:23 +0000 (01:53 +0000)]
Removed leftovers from progid.

Replaced static animatemodel_cache with dynamically allocated per prog
instance.

From: Grigorii Kasymov <kasymovga@xsmail.com>

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

8 years agoRemoved globaldefindex_progid field from cvar struct.
divverent [Sun, 7 Feb 2016 01:53:20 +0000 (01:53 +0000)]
Removed globaldefindex_progid field from cvar struct.

From: Grigorii Kasymov <kasymovga@xsmail.com>

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

8 years agoInitialize globalindex for autocvars with -1 to prevent prog corruption.
divverent [Sun, 7 Feb 2016 01:53:16 +0000 (01:53 +0000)]
Initialize globalindex for autocvars with -1 to prevent prog corruption.

From: Grigorii Kasymov <kasymovga@xsmail.com>

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

8 years agoUnbreak Nexuiz weapon animation.
divverent [Mon, 4 Jan 2016 18:20:35 +0000 (18:20 +0000)]
Unbreak Nexuiz weapon animation.

Nexuiz uses h_*.dpm models that are mostly vertex-less (there are 6 dummy ones)
and merely move bones in order to move around the first-person weapon.

This means that these models (or rather, their surface meshes) will be
considered "non-animated" by the rendering code, given their dummy vertices are
never moved by animations.

However, a function to build animation subframes lists from animation group
numbers - which is called by gettaginfo and similar functions that locate
attachment points - falsely looked at the isanimated flag of the surface mesh
to decide whether to really build the list of subframes or not - and this was
wrong, given that statically displayed models that do move tags/bones do exist!

This commit removes this use of the isanimated flag and treats models with
animated and non-animated surface mesh the same for purposes of animation frame
evaluation.

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

8 years agoUnbreak "make sv-nexuiz" and "make nexuiz".
divverent [Mon, 4 Jan 2016 14:45:52 +0000 (14:45 +0000)]
Unbreak "make sv-nexuiz" and "make nexuiz".

(There was a typo in the Makefile of this target since r11992).

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

8 years agoDocument DP_SV_DISABLECLIENTPREDICTION.
divverent [Mon, 28 Dec 2015 21:20:56 +0000 (21:20 +0000)]
Document DP_SV_DISABLECLIENTPREDICTION.

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

8 years agoNew feature: disableclientprediction == -1.
divverent [Mon, 28 Dec 2015 21:20:53 +0000 (21:20 +0000)]
New feature: disableclientprediction == -1.

This forces client prediction in cases DP's own client side prediction cannot
handle, in particular, in case of non-WALK movetypes on a player entity.

To be useful, this requires CSQC code to perform player prediction instead.

From: Mario <mario@smbclan.net>

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

8 years agoOops. Add more ifdeffery to the NvOptimus stuff :)
divverent [Thu, 26 Nov 2015 14:48:26 +0000 (14:48 +0000)]
Oops. Add more ifdeffery to the NvOptimus stuff :)

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

8 years agoFix prvm_leaktest - it now really supports references from globals.
divverent [Thu, 26 Nov 2015 14:47:11 +0000 (14:47 +0000)]
Fix prvm_leaktest - it now really supports references from globals.

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

8 years agoSet NvOptimusEnablement.
divverent [Thu, 26 Nov 2015 13:52:27 +0000 (13:52 +0000)]
Set NvOptimusEnablement.

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

8 years agoLeaktest: store longer allocation origins.
divverent [Tue, 24 Nov 2015 14:58:00 +0000 (14:58 +0000)]
Leaktest: store longer allocation origins.

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

8 years agoLeaktest: disable support for following target/targetname by default.
divverent [Tue, 24 Nov 2015 14:57:58 +0000 (14:57 +0000)]
Leaktest: disable support for following target/targetname by default.

Instead, mark any entities created during initialization as non-leaky.
This should solve everything that the targetname support was meant to
solve (namely info_notnull entities), but is more general (e.g. would
also work with Xonotic's killtarget/target2/target3/target4 and
target0/name of Doom 3).

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

8 years agoMake the number of frames used for initial settling configurable.
divverent [Tue, 24 Nov 2015 13:39:23 +0000 (13:39 +0000)]
Make the number of frames used for initial settling configurable.

Quake uses two frames, which should normally be good enough anyway. This
is mainly for mods that use more than 2 frames for initialization to
avoid some minor odd effects to clients that connect that early.

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

8 years agoFix a recent typo-fix :)
divverent [Tue, 24 Nov 2015 13:33:03 +0000 (13:33 +0000)]
Fix a recent typo-fix :)

This fixes the centering of the window on Windows by default.

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

8 years agoFix several warnings with gcc-5 and an error with mingw (where
havoc [Sun, 8 Nov 2015 19:33:00 +0000 (19:33 +0000)]
Fix several warnings with gcc-5 and an error with mingw (where
HAVE_CLOCKGETTIME was somehow being defined)

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

8 years agoFix a type issue where SDL_GLContext * was being used instead of
havoc [Sun, 8 Nov 2015 19:18:33 +0000 (19:18 +0000)]
Fix a type issue where SDL_GLContext * was being used instead of
SDL_GLContext, this did no harm as the variable is never used...

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

8 years agoSDL2: add clipboard support for all platforms.
divverent [Sat, 17 Oct 2015 22:36:06 +0000 (22:36 +0000)]
SDL2: add clipboard support for all platforms.

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

9 years agoRevert motorsep's change r12222.
havoc [Sat, 8 Aug 2015 04:32:55 +0000 (04:32 +0000)]
Revert motorsep's change r12222.

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

9 years ago+ Added support for Doom 3 entity spawnargs ("name" and "target0") to allow smoother...
motorsep [Thu, 6 Aug 2015 02:34:11 +0000 (02:34 +0000)]
+ Added support for Doom 3 entity spawnargs ("name" and "target0") to allow smoother mapping experience using DarkRadiant level editor

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

9 years agoFix SolutionDir)) typo in Debug builds using VS2012 and VS2013 projects, thanks to...
havoc [Sat, 3 Oct 2015 22:34:59 +0000 (22:34 +0000)]
Fix SolutionDir)) typo in Debug builds using VS2012 and VS2013 projects, thanks to Willis for repotting this.

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

9 years agoAdd darkplaces.rc to the vcxproj files for sdl, sdl2 and dedicated targets.
havoc [Sun, 9 Aug 2015 20:54:26 +0000 (20:54 +0000)]
Add darkplaces.rc to the vcxproj files for sdl, sdl2 and dedicated targets.

Changed the CompanyName in the darkplaces.rc to "DarkPlaces Contributors", also changed the icon line to better match the standard ICON line in new VS2013 projects in case that matters.

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

9 years agoFixed two compile issues with vid_sdl.c.
havoc [Sun, 9 Aug 2015 18:30:47 +0000 (18:30 +0000)]
Fixed two compile issues with vid_sdl.c.

Added support for SDL2 compilation in vs2010, vs2012, vs2013.

Changed the build directories for all vs2010, vs2012, vs2013 projects - they are now more consistent (output binaries go into SolutionDir, intermediate files have a fully qualified directory so they don't conflict between builds).

Audited and reduced differences between vs2010, vs2012, vs2013 projects.

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

9 years agoOops, should also have fixed the uses inside AdjustWindowBounds.
divverent [Mon, 3 Aug 2015 17:57:03 +0000 (17:57 +0000)]
Oops, should also have fixed the uses inside AdjustWindowBounds.

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

9 years agoAlso, rect shouldn't be a reference in AdjustWindowBounds but a pointer. Grr...
divverent [Mon, 3 Aug 2015 17:50:43 +0000 (17:50 +0000)]
Also, rect shouldn't be a reference in AdjustWindowBounds but a pointer. Grr...

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

9 years agoFix type of AdjustWindowBounds - this is C, not C++.
divverent [Mon, 3 Aug 2015 17:14:47 +0000 (17:14 +0000)]
Fix type of AdjustWindowBounds - this is C, not C++.

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

9 years agoOnly abort the move of a MOVETYPE_TOSS entity if it is actually supposed to
divverent [Mon, 3 Aug 2015 16:48:44 +0000 (16:48 +0000)]
Only abort the move of a MOVETYPE_TOSS entity if it is actually supposed to
stop moving.

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

9 years agoCompile with IPv6 support by default
divverent [Mon, 3 Aug 2015 16:25:36 +0000 (16:25 +0000)]
Compile with IPv6 support by default

Invert logic of SUPPORTIPV6 define by changing to NOSUPPORTIPV6.

Include commented-out entry in makefile to allow for disabling IPv6
support should the user be burdened by their operating system.

From: Jeremy Visser <jeremy@visser.name>

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

9 years agoColor code editing
divverent [Mon, 3 Aug 2015 16:24:24 +0000 (16:24 +0000)]
Color code editing

Console edit line: make the color code visible when the cursor is inside it and r_font_disable_freetype is 0

From: terencehill <piuntn@gmail.com>

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

9 years agoadjust window position and size to the available desktop area (= screen size adjusted...
divverent [Mon, 3 Aug 2015 16:22:14 +0000 (16:22 +0000)]
adjust window position and size to the available desktop area (= screen size adjusted by taskbar location and size)

From: hbeham <horst@beham.biz>

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

9 years ago+ Added a new game, Steel Storm: Revenants
motorsep [Sun, 19 Jul 2015 21:13:29 +0000 (21:13 +0000)]
+ Added a new game, Steel Storm: Revenants

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

9 years agoq1bsp: Warn if a texture has an altframe but no frame.
divverent [Tue, 16 Jun 2015 19:59:01 +0000 (19:59 +0000)]
q1bsp: Warn if a texture has an altframe but no frame.

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

9 years agoq1bsp: Warn if an animated texture has exactly one frame.
divverent [Tue, 16 Jun 2015 19:58:57 +0000 (19:58 +0000)]
q1bsp: Warn if an animated texture has exactly one frame.

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

9 years agoq1bsp: Only warn once per "bad animating texture".
divverent [Tue, 16 Jun 2015 19:58:53 +0000 (19:58 +0000)]
q1bsp: Only warn once per "bad animating texture".

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

9 years agoFix an annoying bug in the d0_blind_id protocol handling: xonotic-v0.8.1
divverent [Tue, 25 Aug 2015 01:27:49 +0000 (01:27 +0000)]
Fix an annoying bug in the d0_blind_id protocol handling:

If a server uses the protocol but is not signed, the code previously did
not let a client connect to the server more than once per instance.

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

9 years agoAdded MSVC++ 2013 projects, fixed a casting issue in C++ compilation of r_shadow.c.
havoc [Sat, 6 Jun 2015 04:17:56 +0000 (04:17 +0000)]
Added MSVC++ 2013 projects, fixed a casting issue in C++ compilation of r_shadow.c.

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

9 years agoAdd a cvar: r_water_cameraentitiesonly.
divverent [Mon, 1 Jun 2015 09:40:54 +0000 (09:40 +0000)]
Add a cvar: r_water_cameraentitiesonly.

If set, water-style effects are only allowed when CL_VM_TransformView
would be called (in other words, for CSQC-generated cameras/portals).

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

9 years agoAdd a cvar: r_shadow_realtime_world_importlightentitiesfrommap
divverent [Sat, 21 Mar 2015 22:09:26 +0000 (22:09 +0000)]
Add a cvar: r_shadow_realtime_world_importlightentitiesfrommap

0: Never import lights from the .bsp/.ent file on map load.
1: Import lights from the .bsp/.ent file on map load if no rtlights are present.
2: Always use the .bsp/.ent's light entities, ignore rtlights files.

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

9 years agoFix a crash when playing q2bsp maps where t->currentframe is dereferenced, and it...
havoc [Fri, 20 Mar 2015 06:43:08 +0000 (06:43 +0000)]
Fix a crash when playing q2bsp maps where t->currentframe is dereferenced, and it is a dangling pointer that was left corrupt by the loader - fixed that as well.

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

9 years agoLimit number of particles created at once.
divverent [Tue, 10 Mar 2015 10:45:32 +0000 (10:45 +0000)]
Limit number of particles created at once.

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

9 years agoTE_EXPLOSION2: don't crash on colorLength == 0.
divverent [Mon, 9 Mar 2015 13:59:44 +0000 (13:59 +0000)]
TE_EXPLOSION2: don't crash on colorLength == 0.

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

9 years agoFix a curl-related hang when exiting.
divverent [Mon, 9 Mar 2015 11:24:27 +0000 (11:24 +0000)]
Fix a curl-related hang when exiting.

Fix a NULL crash when creating a sound without a worldmodel (harmless
NULL, but exploitable by svc_disconnect svc_sound in a single packet).

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

9 years ago::stable-branch::reset=704d101890948f0f496ce4fe73be523137c62117
Rudolf Polzer [Fri, 6 Mar 2015 20:36:12 +0000 (21:36 +0100)]
::stable-branch::reset=704d101890948f0f496ce4fe73be523137c62117

9 years agoFix rephrased altstr code.
divverent [Thu, 5 Mar 2015 12:27:18 +0000 (12:27 +0000)]
Fix rephrased altstr code.

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

9 years agoFix warnings.
divverent [Thu, 5 Mar 2015 12:27:16 +0000 (12:27 +0000)]
Fix warnings.

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

9 years agoRephrase VM_altstr_prepare to no longer annoy Coverity.
divverent [Thu, 5 Mar 2015 12:15:43 +0000 (12:15 +0000)]
Rephrase VM_altstr_prepare to no longer annoy Coverity.

(I think the previous code had no bug, but was hard to follow)

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

9 years agoFix a coverity false positive.
divverent [Thu, 5 Mar 2015 11:26:10 +0000 (11:26 +0000)]
Fix a coverity false positive.

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

9 years agoAccessing invalid palette colors now access black.
divverent [Thu, 5 Mar 2015 10:53:02 +0000 (10:53 +0000)]
Accessing invalid palette colors now access black.

Was uninitialized before.

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

9 years agoFix overrun in buf_loadfile.
divverent [Thu, 5 Mar 2015 10:48:43 +0000 (10:48 +0000)]
Fix overrun in buf_loadfile.

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

9 years agoFix crash in inputline.
divverent [Thu, 5 Mar 2015 10:48:41 +0000 (10:48 +0000)]
Fix crash in inputline.

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

9 years agoDon't crash on too-many-water-planes.
divverent [Thu, 5 Mar 2015 10:48:37 +0000 (10:48 +0000)]
Don't crash on too-many-water-planes.

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

9 years agoCoverity fix.
divverent [Thu, 5 Mar 2015 10:48:34 +0000 (10:48 +0000)]
Coverity fix.

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

9 years agoFix a dpsnprintf use.
divverent [Thu, 5 Mar 2015 10:48:32 +0000 (10:48 +0000)]
Fix a dpsnprintf use.

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

9 years agoFix an overrun in altstr_prepare.
divverent [Thu, 5 Mar 2015 10:48:29 +0000 (10:48 +0000)]
Fix an overrun in altstr_prepare.

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

9 years agoFix buffer overrun in font loading.
divverent [Thu, 5 Mar 2015 10:48:27 +0000 (10:48 +0000)]
Fix buffer overrun in font loading.

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

9 years agoAnother NULL with broken worldmodel.
divverent [Thu, 5 Mar 2015 09:33:09 +0000 (09:33 +0000)]
Another NULL with broken worldmodel.

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

9 years agoFix a NULL with missing worldmodel.
divverent [Thu, 5 Mar 2015 09:28:00 +0000 (09:28 +0000)]
Fix a NULL with missing worldmodel.

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

9 years agoFix a dead initialization. Fix a use of an uninitialized value.
divverent [Thu, 5 Mar 2015 09:21:45 +0000 (09:21 +0000)]
Fix a dead initialization. Fix a use of an uninitialized value.

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

9 years agoFix a mdfour.c oops, sorry. Forgot the argument.
divverent [Wed, 4 Mar 2015 17:31:23 +0000 (17:31 +0000)]
Fix a mdfour.c oops, sorry. Forgot the argument.

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

9 years agoFix clang-analyzer false positives.
divverent [Wed, 4 Mar 2015 17:30:20 +0000 (17:30 +0000)]
Fix clang-analyzer false positives.

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

9 years agoFix (harmless) use-after-free in zone.c.
divverent [Wed, 4 Mar 2015 17:30:16 +0000 (17:30 +0000)]
Fix (harmless) use-after-free in zone.c.

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

9 years agoFix uninitialized gunangles.
divverent [Wed, 4 Mar 2015 17:30:12 +0000 (17:30 +0000)]
Fix uninitialized gunangles.

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

9 years agoMake mdfour thread-safe.
divverent [Wed, 4 Mar 2015 17:30:08 +0000 (17:30 +0000)]
Make mdfour thread-safe.

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

9 years agoFix a return-from-stack error.
divverent [Wed, 4 Mar 2015 17:30:03 +0000 (17:30 +0000)]
Fix a return-from-stack error.

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

9 years agoFix memory corruption in loadconfig while in game/menu.
divverent [Wed, 4 Mar 2015 14:59:32 +0000 (14:59 +0000)]
Fix memory corruption in loadconfig while in game/menu.

Autocvars are engine strings to QC, so we can't just let them die.
Instead, reset them to default, which is what the progs would expect
anyway.

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

9 years agoFix another buffer overrun in loadfont.
divverent [Wed, 4 Mar 2015 13:15:37 +0000 (13:15 +0000)]
Fix another buffer overrun in loadfont.

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

9 years agoFix underflow in various commands when using an empty file name.
divverent [Wed, 4 Mar 2015 11:49:15 +0000 (11:49 +0000)]
Fix underflow in various commands when using an empty file name.

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

9 years agoFix NULL crash in QW_CL_RequestNextDownload without connection.
divverent [Wed, 4 Mar 2015 11:49:12 +0000 (11:49 +0000)]
Fix NULL crash in QW_CL_RequestNextDownload without connection.

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

9 years agoRemove some useless paranoid comparisons.
divverent [Wed, 4 Mar 2015 11:49:10 +0000 (11:49 +0000)]
Remove some useless paranoid comparisons.

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

9 years agoFix some signed/unsigned mess. Not a real problem though.
divverent [Wed, 4 Mar 2015 11:49:07 +0000 (11:49 +0000)]
Fix some signed/unsigned mess. Not a real problem though.

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

9 years agoFix overrun in fullinfo.
divverent [Wed, 4 Mar 2015 08:36:58 +0000 (08:36 +0000)]
Fix overrun in fullinfo.

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

9 years agoFix NULL in pause command.
divverent [Wed, 4 Mar 2015 08:36:55 +0000 (08:36 +0000)]
Fix NULL in pause command.

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

9 years agoFix memory corruption in loadconfig while in game/menu.
divverent [Wed, 4 Mar 2015 14:59:32 +0000 (14:59 +0000)]
Fix memory corruption in loadconfig while in game/menu.

Autocvars are engine strings to QC, so we can't just let them die.
Instead, reset them to default, which is what the progs would expect
anyway.

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

9 years agoFix another buffer overrun in loadfont.
divverent [Wed, 4 Mar 2015 13:15:37 +0000 (13:15 +0000)]
Fix another buffer overrun in loadfont.

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

9 years agoFix underflow in various commands when using an empty file name.
divverent [Wed, 4 Mar 2015 11:49:15 +0000 (11:49 +0000)]
Fix underflow in various commands when using an empty file name.

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

9 years agoFix NULL crash in QW_CL_RequestNextDownload without connection.
divverent [Wed, 4 Mar 2015 11:49:12 +0000 (11:49 +0000)]
Fix NULL crash in QW_CL_RequestNextDownload without connection.

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

9 years agoRemove some useless paranoid comparisons.
divverent [Wed, 4 Mar 2015 11:49:10 +0000 (11:49 +0000)]
Remove some useless paranoid comparisons.

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

9 years agoFix some signed/unsigned mess. Not a real problem though.
divverent [Wed, 4 Mar 2015 11:49:07 +0000 (11:49 +0000)]
Fix some signed/unsigned mess. Not a real problem though.

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

9 years agoFix overrun in fullinfo.
divverent [Wed, 4 Mar 2015 08:36:58 +0000 (08:36 +0000)]
Fix overrun in fullinfo.

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

9 years agoFix NULL in pause command.
divverent [Wed, 4 Mar 2015 08:36:55 +0000 (08:36 +0000)]
Fix NULL in pause command.

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

9 years agoJust in case, make collision cache sequence numbers unsigned too.
divverent [Mon, 2 Mar 2015 21:25:57 +0000 (21:25 +0000)]
Just in case, make collision cache sequence numbers unsigned too.

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

9 years agoJust in case, make loadsequence unsigned too.
divverent [Mon, 2 Mar 2015 21:25:50 +0000 (21:25 +0000)]
Just in case, make loadsequence unsigned too.

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

9 years agoMake the move sequence an unsigned int.
divverent [Mon, 2 Mar 2015 21:25:42 +0000 (21:25 +0000)]
Make the move sequence an unsigned int.

This fixes an out-of-bounds write to movement_count because C's modulo
operation is considered harmful.

Many thanks to afl-fuzz!

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

9 years agoFix a VERY LONG loop caused by high unreliable sequence numbers.
divverent [Mon, 2 Mar 2015 21:25:35 +0000 (21:25 +0000)]
Fix a VERY LONG loop caused by high unreliable sequence numbers.

Many thanks to afl-fuzz!

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

9 years agoRemove an unused type.
divverent [Mon, 2 Mar 2015 13:31:35 +0000 (13:31 +0000)]
Remove an unused type.

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

9 years agoFix warnings for missing prototypes.
divverent [Mon, 2 Mar 2015 13:31:32 +0000 (13:31 +0000)]
Fix warnings for missing prototypes.

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

9 years agoAdd a Code::Blocks project file for the SDL build.
divverent [Mon, 2 Mar 2015 13:31:28 +0000 (13:31 +0000)]
Add a Code::Blocks project file for the SDL build.

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

9 years agoArgh. Fix my last fix :( changed the wrong field to GL_TEXTURE_2D.
divverent [Mon, 2 Mar 2015 08:52:30 +0000 (08:52 +0000)]
Argh. Fix my last fix :( changed the wrong field to GL_TEXTURE_2D.

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

9 years agoFix texture type of renderbuffers (was random crap, now is GL_TEXTURE_2D).
divverent [Sun, 1 Mar 2015 18:54:11 +0000 (18:54 +0000)]
Fix texture type of renderbuffers (was random crap, now is GL_TEXTURE_2D).

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

9 years agoJust in case, make collision cache sequence numbers unsigned too.
divverent [Mon, 2 Mar 2015 21:25:57 +0000 (21:25 +0000)]
Just in case, make collision cache sequence numbers unsigned too.

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

9 years agoJust in case, make QW sequence numbers unsigned too.
divverent [Mon, 2 Mar 2015 21:25:53 +0000 (21:25 +0000)]
Just in case, make QW sequence numbers unsigned too.

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

9 years agoJust in case, make loadsequence unsigned too.
divverent [Mon, 2 Mar 2015 21:25:50 +0000 (21:25 +0000)]
Just in case, make loadsequence unsigned too.

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

9 years agoJust in case, make decalsequence always unsigned too.
divverent [Mon, 2 Mar 2015 21:25:46 +0000 (21:25 +0000)]
Just in case, make decalsequence always unsigned too.

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

9 years agoMake the move sequence an unsigned int.
divverent [Mon, 2 Mar 2015 21:25:42 +0000 (21:25 +0000)]
Make the move sequence an unsigned int.

This fixes an out-of-bounds write to movement_count because C's modulo
operation is considered harmful.

Many thanks to afl-fuzz!

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

9 years agoFix a VERY LONG loop caused by high unreliable sequence numbers.
divverent [Mon, 2 Mar 2015 21:25:35 +0000 (21:25 +0000)]
Fix a VERY LONG loop caused by high unreliable sequence numbers.

Many thanks to afl-fuzz!

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

9 years agoRemove an unused type.
divverent [Mon, 2 Mar 2015 13:31:35 +0000 (13:31 +0000)]
Remove an unused type.

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

9 years agoFix warnings for missing prototypes.
divverent [Mon, 2 Mar 2015 13:31:32 +0000 (13:31 +0000)]
Fix warnings for missing prototypes.

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