Commit graph

1686 commits

Author SHA1 Message Date
Ozkan Sezer
ce23527ad5 oslibs, codecs: rebuilt libmad after applying patches from Debian to fix
CVE-2017-8372, CVE-2017-8373 and CVE-2017-8374.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1557 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-10 07:45:34 +00:00
Eric Wasylishen
f910bae881 in_sdl: Change controller movement to use cubic easing by default; added
"joy_exponent_move" cvar.

Previously movement was linear.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1556 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-05 06:37:50 +00:00
Ozkan Sezer
3e2ee378b3 rebuilt SDL2 for windows and macosx after applying some fixes from
mainstream.  some of the changes relevant to our supported targets
include:

- all:     - SDL2 hg r11769 (SDL bug #3996)

- mac:     - SDL2 hg r11709 (SDL bug #3951)
           - SDL2 hg r11710 (SDL bug #3976)
           - SDL2 hg r11786

- windows: - SDL2 hg r11716
           - SDL2 hg r11721 (SDL bug #3990)
           - SDL2 hg r11722 (SDL bug #3990)
           - SDL2 hg r11725
           - SDL2 hg r11758 (SDL bug #3931)
           - SDL2 hg r11761 (SDL bug #3931)
           - SDL2 hg r11803 (SDL bug #4019)
           - SDL2 hg r11815 (SDL bug #4018)
           - SDL2 hg r11824
           - SDL2 hg r11825 (SDL bug #4043)
           - SDL2 hg r11835 (SDL bug #3985)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1555 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-03 11:51:24 +00:00
Eric Wasylishen
a89063a5ff PF_vlen: add casts to double to force 64-bit precision
Fixes https://sourceforge.net/p/quakespasm/bugs/26/
(travail qte1m2.bsp button near 2772 767 -584 hurting the player
sm179_otp.bsp: left button causing the player to get stuck)

This change should probably be applied to more places in pr_cmds.c
and elsewhere, but this specific change is enough to fix these corner
cases

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1554 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-01-17 07:44:26 +00:00
Ozkan Sezer
77a45cbbbe lodepng.c (lodepng_encode): check for preProcessScanlines() errors.
(patch by 'yoch', from https://github.com/lvandeve/lodepng/pull/66)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1553 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-01-11 07:00:02 +00:00
Eric Wasylishen
ae38737ada keys.c: increase CMDLINES (history.txt lines) from 32 to 64
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1552 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-01-10 04:40:31 +00:00
Ozkan Sezer
9dd0a76812 r1550 merged a bad patch. merging the correct one...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1551 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-01-08 15:28:05 +00:00
Ozkan Sezer
a7deed353e Mod_DecompressVis: warn every case of vis data buffer overrun, not once.
also remove the #if 0'ed out code.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1550 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-01-08 08:28:17 +00:00
Ozkan Sezer
03ddf3522d updated docs after latest changes
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1549 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-01-08 07:10:06 +00:00
Eric Wasylishen
413272b977 Mod_DecompressVis: don't overflow output buffer given invalid visdata
Fixes crash on death32c.bsp:
http://sourceforge.net/p/quakespasm/bugs/25/

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1548 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-01-08 05:02:14 +00:00
Eric Wasylishen
e4b71e6268 TexMgr_Imagedump_f: fix buffer overflow by setting GL_PACK_ALIGNMENT
reported by ASan

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1547 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-12-28 18:51:40 +00:00
Eric Wasylishen
ec4b6115d1 world shader: avoid matrix multiplication in the fragment shader
alias shader: sync fog implementation with world shader

Thanks to Axel for the suggestion.

Add a FIXME where our shader differs from vkQuake in treatment of
alpha transparent faces + fog.

see:
https://sourceforge.net/p/quakespasm/bugs/24/
https://github.com/Novum/vkQuake/blob/master/Shaders/world.vert
https://github.com/Novum/vkQuake/blob/master/Shaders/world.frag

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1546 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-12-24 18:59:44 +00:00
Ozkan Sezer
a3f395b0f7 bump version to 0.93.1, update changelog.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1545 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-12-20 06:28:28 +00:00
Eric Wasylishen
c227b42c51 GLWorld_CreateShaders: do fog fully in the fragment shader.
Fixes a regression introduced in 0.93.0 when we switched from
fixed-function fog to GLSL (for world polys), reported by ItEndsWithTens

It was visible on large polygons.
For a test case, see: https://sourceforge.net/p/quakespasm/bugs/24/

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1544 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-12-20 03:04:39 +00:00
Ozkan Sezer
da83b3b018 oslibs, codecs: correction to opus restrict patch applied at r1541.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1543 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-12-16 21:04:52 +00:00
Ozkan Sezer
8d66877da3 oslibs, codecs:
- rebuilt opusfile after updating to 0.10 release and applying two
  int64 overflow fixes from xiph.org git.
- rebuilt libvorbis after applying fixes for CVE-2017-14632 and
  CVE-2017-14633.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1542 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-12-15 15:55:22 +00:00
Ozkan Sezer
e507e05b5c oslibs, codecs, opus/opus_defines.h update:
restrict is broken with gcc < 4, don't use:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6392

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1541 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-12-15 15:46:51 +00:00
Ozkan Sezer
d73b0f5867 oslibs: rebuilt mpg123 (prev. build had some debug prints left in.)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1540 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-12-05 18:20:32 +00:00
Ozkan Sezer
089c3cd6b7 oslibs: rebuilt libmpg123 after syncing with changes from 1.25.8 release.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1539 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-12-04 15:20:24 +00:00
Ozkan Sezer
ba94a8385b minor doc editing.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1537 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-16 19:20:02 +00:00
Eric Wasylishen
c91dd567e8 main_sdl.c: override sys_throttle to 0 during timedemo
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1536 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-16 18:21:38 +00:00
Ozkan Sezer
a23a75efa3 gl_model.c (Mod_SetExtraFlags): remove bogus !mod->name check.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1535 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-16 07:00:02 +00:00
Eric Wasylishen
d3377b9358 gl_model.c: (Mod_LoadModel): change Sys_Error to Host_Error for missing
model to be less annoying when testing a broken mod

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1534 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-14 07:20:29 +00:00
Eric Wasylishen
e03d2b9750 cangelog: additions since 0.93.0-RC1
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1533 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-13 18:25:48 +00:00
Eric Wasylishen
caceebb7a3 r_alias.c: display skin 0 instead of checkerboard for invalid skin num
metlslime says:

> I was the one that at added the blue checkerboard feature.
> I didn't realize at the time how many mods relied on the behavior of
> vanilla quake to show skin 0 when the mod asks for an invalid skin. So
> I now agree, the engine should replicate vanilla quake's permissive
> behavior and maybe just put up a non-spamy console warning when the
> bad skin is first set.

TODO: The warning is currently spammy (but only if developer 1).
Would be a bit of a pain to make non-spammy.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1532 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-12 22:16:34 +00:00
Ozkan Sezer
7ac26b0a66 SDL2 rebuild:
- osx fix for #3949 (SDL2 hg rev. 11696)
- another osx fix (SDL2 hg rev. 11697)
- fix for bug 3947 (not yet in SDL2 hg)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1531 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-12 20:50:51 +00:00
Ozkan Sezer
76b1442351 oslibs: add missing tremor builds for windows.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1530 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-12 16:39:20 +00:00
Ozkan Sezer
39bee8371f dslibs, codecs: vorbis rebuild
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1529 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-11 12:55:52 +00:00
Ozkan Sezer
c5b2c6a848 pr_edict.c (ED_ParseEpair): remove a developer.value check before the Con_Dwarning call added by r1527
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1528 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-10 05:55:04 +00:00
Eric Wasylishen
78970b5323 ED_ParseEpair: don't read garbage into vectors if the string is too short
This is a bug from vanilla.
Shows up in qump_vingal.bsp from QUMP, which has func_illusionary
entities with "origin" "". Example are the torch holders before
the first door in the map.
Prior to this commit the vector would possibly get a garbage value,
depending on what was on the stack.

see: http://celephais.net/board/view_thread.php?id=61523&start=53&end=61

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1527 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-07 21:49:32 +00:00
Ozkan Sezer
bbcdd9cbac SDL-1.2 rebuild: applied a fix for SDL bug #3739.
changed bug #3332 patch to use the SDL_ToUnicode
function wrapper instead of ToUnicode() directly.
some minor tweaking about SDL_stroull on windows.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1526 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-05 17:55:35 +00:00
Ozkan Sezer
0887c985a6 SDL2: rebuilt for osx and windows after applying fixes for SDL bugs
3920, 3921, 3926, and 3739. (only the bug/3926 patch is in official
SDL repo, for now.)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1525 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-02 14:32:42 +00:00
Eric Wasylishen
ac42683f58 r_world.c: rewrite R_DrawTextureChains_Multitexture_VBO to use GLSL
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1524 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-11-01 04:01:02 +00:00
Ozkan Sezer
ff3afb8ba3 rebuilt watcom versions of libvorbis after fixing a nasty asm mistake.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1523 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-27 23:03:04 +00:00
Ozkan Sezer
97b5dfc86d rebuilt SDL2 for osx and windows from official SDL2-2.0.7 release.
osx version has SDL changeset r11654 applied to fix a minor issue.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1522 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-26 18:25:11 +00:00
Ozkan Sezer
2b8f031b62 SDL2: rebuilt (again) after fixing a stupid typo..
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1521 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-21 05:16:50 +00:00
Ozkan Sezer
f921e86db7 Rebuilt SDL2 for windows and osx after applying patches from mainstream:
fixes SDL bugs 3887 (windows), 3890 (proper CVE-2017-2888 fix) and 3883

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1520 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-20 15:50:49 +00:00
Ozkan Sezer
2289896f55 SDL2: rebuilt after applying multiple fixes from the mainstream hg repo:
addresses SDL bugs 2307, 3849, 3848, 3851, 3866, 3867, 3868, 3869, 3871,
3874, and 3875.  SDL2-2.0.6 bugs 2157, 3845, 3846, 3876, and 3878 still
are not resolved.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1519 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-14 13:01:14 +00:00
Ozkan Sezer
289b228a34 SDL2: rebuilt after applying fixes for SDL bugs #3857 and 3865. Also
applied Eric's suggested patch for bug #3851.
- SDL-2.0.6 bugs #2157, 3845, and 3848 still not resolved.
- SDL2 bug #3846: possibly a dup of #3851
- SDL2 bug #3858: possibly a dup of #3848 (and 3849)
- Windows version is built using VS2013-update5 with the WinXP option.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1518 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-08 18:55:18 +00:00
Ozkan Sezer
7577250380 SDL2: rebuilt after applying fixes for SDL bugs #3855, 3857, and 3862.
Also applied Eric's memmove() suggestion for bug #3849.
- Windows version is built using VS2013-update5 with the WinXP option.
- SDL-2.0.6 bugs #2157, 3845, 3846, 3848, and 3851 still not resolved.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1517 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-07 08:33:11 +00:00
Ozkan Sezer
c7e4215b79 SDL1.2, win32: lose the _GNU_SOURCE define to avoid the unnecessary
MINGW_ANSI_STDIO stuff when building against mingw.org headers..

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1516 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-05 20:24:43 +00:00
Eric Wasylishen
d4d06b4a78 view.c: New "gl_cshiftpercent_contents", "gl_cshiftpercent_damage", "gl_cshiftpercent_bonus", "gl_cshiftpercent_powerup" cvars for tuning the strength of specic view blends.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1515 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-03 19:49:04 +00:00
Ozkan Sezer
bd354f4159 MacOSX/AppController.m: fix unused warnings in SDL2 builds
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1514 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-02 20:11:04 +00:00
Ozkan Sezer
f1c6595996 SDL2: rebuilt after applying fixes for SDL bugs 3051, 3814, 3842, 3847, 3852, 3854.
- Windows version is now built using VS2013-update5 with the WinXP option.
- SDL-2.0.6 bugs #3845, 3846, 3848, 3849, and 3851 are still not resolved.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1513 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-01 20:47:25 +00:00
Ozkan Sezer
b9e5285607 compiler.h: added clang version of FUNC_NO_OPTIMIZE.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1512 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-01 18:11:29 +00:00
Ozkan Sezer
cc987b449b oslibs, SDL1.2: minor.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1511 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-01 18:03:37 +00:00
Ozkan Sezer
152b5d3627 rebuilt libmpg123 after syncying with fixes in mpg123-1.25.7 release (mpg123 svn rev.4356)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1510 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-10-01 18:01:08 +00:00
Ozkan Sezer
5fba56326f SDL2 for Windows and OSX: rebuilt using SDL2-2.0.6 official release
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1509 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-22 21:03:08 +00:00
Ozkan Sezer
f636f433f4 rebuilt libmpg123 after applying a fix (svn rev. 4355) from mpg123 svn repository.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1508 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-22 17:15:21 +00:00
Ozkan Sezer
151bcb5786 SDL2 for Windows and OSX: rebuilt from SDL hg-11511:833d4fbb3d76
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1507 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-21 14:52:08 +00:00