]> git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
8 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

8 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

8 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

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

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

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

9 years agoGet rid of some funny console spam on some invalid clientcommands.
divverent [Fri, 27 Feb 2015 20:21:27 +0000 (20:21 +0000)]
Get rid of some funny console spam on some invalid clientcommands.

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

9 years agoBetter handle invalid clc_ackframe commands.
divverent [Fri, 27 Feb 2015 20:21:24 +0000 (20:21 +0000)]
Better handle invalid clc_ackframe commands.

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

9 years agoGet rid of some funny console spam on some invalid clientcommands.
divverent [Fri, 27 Feb 2015 20:21:27 +0000 (20:21 +0000)]
Get rid of some funny console spam on some invalid clientcommands.

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

9 years agoBetter handle invalid clc_ackframe commands.
divverent [Fri, 27 Feb 2015 20:21:24 +0000 (20:21 +0000)]
Better handle invalid clc_ackframe commands.

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

9 years agoCrypto: handle properly whether the a server key is signed or not.
divverent [Mon, 9 Feb 2015 11:06:06 +0000 (11:06 +0000)]
Crypto: handle properly whether the a server key is signed or not.

Provide information about client key being signed or not to QC.

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

9 years agoCrypto: handle properly whether the a server key is signed or not.
divverent [Mon, 9 Feb 2015 11:06:06 +0000 (11:06 +0000)]
Crypto: handle properly whether the a server key is signed or not.

Provide information about client key being signed or not to QC.

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

9 years ago::stable-branch::reset=bb9d5e97ff495d6908929a7bdf832e609c825b2f
Rudolf Polzer [Mon, 9 Feb 2015 09:24:07 +0000 (10:24 +0100)]
::stable-branch::reset=bb9d5e97ff495d6908929a7bdf832e609c825b2f

9 years agoFix an useless NULL check, and a very funny overrun.
divverent [Mon, 9 Feb 2015 08:54:46 +0000 (08:54 +0000)]
Fix an useless NULL check, and a very funny overrun.

The overrun is in initialization of command line arguments, and thus not
exploitable.

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

9 years agoFix dodgy use of plane.normal[3] as alias to plane.dist using a union.
divverent [Mon, 9 Feb 2015 08:46:35 +0000 (08:46 +0000)]
Fix dodgy use of plane.normal[3] as alias to plane.dist using a union.

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

9 years agoOops, fix a printf.
divverent [Sat, 7 Feb 2015 21:15:41 +0000 (21:15 +0000)]
Oops, fix a printf.

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

9 years agoRemove an useless null check.
divverent [Sat, 7 Feb 2015 21:15:00 +0000 (21:15 +0000)]
Remove an useless null check.

These functions can't be used in any way without passing a pointer there
anyway.

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

9 years agoFix registered/shareware detection.
divverent [Sat, 7 Feb 2015 21:14:56 +0000 (21:14 +0000)]
Fix registered/shareware detection.

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

9 years agoTest return values of remove().
divverent [Sat, 7 Feb 2015 21:14:52 +0000 (21:14 +0000)]
Test return values of remove().

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

9 years agoFix userdir detection on Unix systems.
divverent [Sat, 7 Feb 2015 21:14:49 +0000 (21:14 +0000)]
Fix userdir detection on Unix systems.

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

9 years agoFix pak loading bugs.
divverent [Sat, 7 Feb 2015 21:14:45 +0000 (21:14 +0000)]
Fix pak loading bugs.

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

9 years agoMake FS_mkdir static, and test for errors.
divverent [Sat, 7 Feb 2015 21:14:40 +0000 (21:14 +0000)]
Make FS_mkdir static, and test for errors.

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

9 years agoDetect negative name size in pk3s.
divverent [Sat, 7 Feb 2015 21:14:36 +0000 (21:14 +0000)]
Detect negative name size in pk3s.

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

9 years agoCheck lseek return values.
divverent [Sat, 7 Feb 2015 21:14:32 +0000 (21:14 +0000)]
Check lseek return values.

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

9 years agoReject pk3s with obviously broken central directory.
divverent [Sat, 7 Feb 2015 21:14:27 +0000 (21:14 +0000)]
Reject pk3s with obviously broken central directory.

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

9 years agoMore coverity.
divverent [Thu, 5 Feb 2015 06:50:51 +0000 (06:50 +0000)]
More coverity.

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

9 years agoFix $# in aliases.
divverent [Wed, 4 Feb 2015 12:27:19 +0000 (12:27 +0000)]
Fix $# in aliases.

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

9 years agoKill more unreachable code.
divverent [Wed, 4 Feb 2015 12:24:22 +0000 (12:24 +0000)]
Kill more unreachable code.

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

9 years agoFix check order of keygen_i.
divverent [Wed, 4 Feb 2015 12:24:18 +0000 (12:24 +0000)]
Fix check order of keygen_i.

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

9 years agoFix dead code.
divverent [Wed, 4 Feb 2015 12:24:14 +0000 (12:24 +0000)]
Fix dead code.

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

9 years agoFix check/write order in LHNETADDRESS_ToString.
divverent [Wed, 4 Feb 2015 12:24:09 +0000 (12:24 +0000)]
Fix check/write order in LHNETADDRESS_ToString.

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

9 years agoMake vabuf static in rcon authentication check as it's returned.
divverent [Wed, 4 Feb 2015 12:24:06 +0000 (12:24 +0000)]
Make vabuf static in rcon authentication check as it's returned.

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

9 years agoUse the correct bones count when parsing E5_COMPLEXANIMATION.
divverent [Wed, 4 Feb 2015 12:24:00 +0000 (12:24 +0000)]
Use the correct bones count when parsing E5_COMPLEXANIMATION.

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

9 years agoKill an useless NULL check that only confuses.
divverent [Wed, 4 Feb 2015 12:23:55 +0000 (12:23 +0000)]
Kill an useless NULL check that only confuses.

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

9 years agoFix buffer size for injecting netname into demo files.
divverent [Tue, 3 Feb 2015 11:02:51 +0000 (11:02 +0000)]
Fix buffer size for injecting netname into demo files.

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

9 years agoDon't match *default.cfg for default config matching.
divverent [Sat, 31 Jan 2015 20:29:57 +0000 (20:29 +0000)]
Don't match *default.cfg for default config matching.

Only match default.cfg and */default.cfg.

Rationale is that someone in Xonotic created a file called
binds-default.cfg and didn't know about this magic here, leading to
https://gitlab.com/xonotic/xonotic-data.pk3dir/issues/1444 and
https://gitlab.com/xonotic/xonotic-data.pk3dir/issues/1448

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

9 years agoFix buffer size for injecting netname into demo files.
divverent [Tue, 3 Feb 2015 11:02:51 +0000 (11:02 +0000)]
Fix buffer size for injecting netname into demo files.

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

9 years agoDon't match *default.cfg for default config matching.
divverent [Sat, 31 Jan 2015 20:29:57 +0000 (20:29 +0000)]
Don't match *default.cfg for default config matching.

Only match default.cfg and */default.cfg.

Rationale is that someone in Xonotic created a file called
binds-default.cfg and didn't know about this magic here, leading to
https://gitlab.com/xonotic/xonotic-data.pk3dir/issues/1444 and
https://gitlab.com/xonotic/xonotic-data.pk3dir/issues/1448

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

9 years agoSet the proper @rpath in the OS X binaries.
divverent [Tue, 27 Jan 2015 13:30:15 +0000 (13:30 +0000)]
Set the proper @rpath in the OS X binaries.

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

9 years agoSet the proper @rpath in the OS X binaries.
divverent [Tue, 27 Jan 2015 13:30:15 +0000 (13:30 +0000)]
Set the proper @rpath in the OS X binaries.

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