Commit graph

1711 commits

Author SHA1 Message Date
Ozkan Sezer
12f743d407 applied fix for SDL bug #4159
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1582 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-05-11 20:32:57 +00:00
Ozkan Sezer
a40d20da2c oslibs, codecs: rebuilt libxmp (lite version) from latest git
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1581 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-05-05 05:01:28 +00:00
Ozkan Sezer
a4da5cc43b SDL2 rebuild:
Windows:
- Remove the windows 10 mouse bug workaround: the issue is fixed in
  windows 10 version 1803 (i.e. the April 2018 update build 17134.)
 (see SDL bug #4152.)

- SDL_ShowWindow() should not activate the window if the window has
  the WS_EX_NOACTIVATE window flag (mainstream commit 11939.)

Mac OS X:
- fix pthread_mutex_trylock() error checks (mainstream commit 11950)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1580 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-05-03 17:42:24 +00:00
Ozkan Sezer
4dbd07fb9a bgmusic.c: mark *.opus files as cdrip types.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1579 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-04-27 17:30:38 +00:00
Ozkan Sezer
1ccd0b998a apply the same double precision change to PF_normalize() as was done to PF_vlen() in r1554.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1578 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-04-23 09:20:31 +00:00
Ozkan Sezer
39459b19cb net_udp.c (UDP_Init): lose the goto in OSX workaround, restrict the workaround to OSX builds only.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1577 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-04-20 14:35:32 +00:00
Ozkan Sezer
8b24098367 SDL2: rebuilt for windows after applying commit rev. 11938 from mainstream.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1576 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-03-26 23:55:17 +00:00
Ozkan Sezer
2242ca68e5 SDL2: rebuilt for macOS:
rebuilt using clang-5.0.1 and latest cctools-port (895) on an up-to-date
Fedora 27 / x86_64 setup.  the x86 part is built against 10.8.5 SDK, and
the x86_64 part is built against 10.12.4 SDK.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1575 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-03-26 21:20:39 +00:00
Ozkan Sezer
5a2c2cf1a6 snd_vorbis.c: remove leftovers, tidyup.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1574 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-03-26 21:10:07 +00:00
Ozkan Sezer
84c2c3c4ea lodepng sync with mainstream: merged commits d4d8f1aa and d03d7df9
(excluded 64 bit warning fix commits 9ab58e3 and 116f5b2e for now)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1573 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-03-26 21:04:10 +00:00
Ozkan Sezer
2beab62809 SDL2: updated SDL_cpuinfo.h (SDL bug 4103)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1572 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-03-17 08:01:50 +00:00
Ozkan Sezer
437324bf85 rebuilt vorbis after applying CVE-2018-5146 fixes (vorbis-1.3.6).
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1571 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-03-17 07:56:58 +00:00
Ozkan Sezer
29d6191d96 SDL-1.2: rebuilt after applying a patch for SDL bug 4108.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1570 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-03-14 14:00:17 +00:00
Ozkan Sezer
1a0c50ab4c cd_sdl.c: change SDL_CD error return checks from '== -1' back to '< 0'
SDL man pages are wrong. e.g. their macosx cdrom backend returns some
negative value, but not strictly -1.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1569 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-03-13 08:50:03 +00:00
Ozkan Sezer
9a4d4be105 SDL2: rebuilt for Mac OS X after applying a patch from Eric to cure a
mouse-wheel issue happening since SDL-2.0.6 as noticed by Steve. (SDL
changeset 11300:68a80d7afec3 for SDL bug 2293 - the patch reverts the
changes made to SDL_cocoamouse.m in that commit.)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1568 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-03-07 18:50:02 +00:00
Ozkan Sezer
b11c115a9c SDL2: rebuilt from SDL hg repo, rev.11911
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1567 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-28 17:24:10 +00:00
Ozkan Sezer
44e9a74877 oslibs, codecs: rebuilt mpg123 after applying a fix for a segfault
with bad files. (fix from mpg123 svn rev. 4373 -- release 1.25.10)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1566 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-28 17:20:51 +00:00
Ozkan Sezer
29b903bc84 host.c (Host_WriteConfiguration): don't VID_SyncCvars()
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1565 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-21 16:25:04 +00:00
Ozkan Sezer
1cd6ed55ed don't write the config file if we are Sys_Error()ing
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1564 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-21 07:33:07 +00:00
Ozkan Sezer
c82081e528 SDL-1.2 rebuild.
includes a backport of SDL bug #2976 (had missed that in prev. builds.)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1563 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-17 14:24:31 +00:00
Ozkan Sezer
f7bbea3dd2 doc update
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1562 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-16 07:00:40 +00:00
Ozkan Sezer
f8247e30bd host.c (Host_WriteConfiguration): change bitwise and into logical and.
seems like a typo in original quake source.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1561 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-16 06:03:25 +00:00
Ozkan Sezer
e62db0b9fb console.c (Con_TabComplete): don't change the length counter in arg completion.
issue seems to have been added in v0.90.1.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1560 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-16 05:57:54 +00:00
Ozkan Sezer
45ec3d87f0 SDL2: rebuilt for Mac and Win from the SDL hg repo, v2.0.8, rev. 11875.
dropped local patches which are accepted by mainstream.  changes since
the previous build from r11861 include fixes for SDL bugs #3739, 3920,
3947, 3950, 4027, 4075, 4078, 4079, 4080, and 4081, along with another
windows fullscreen-related fix (i.e. changeset 11874.)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1559 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-16 05:36:32 +00:00
Ozkan Sezer
ca534461fb SDL2: rebuilt for Mac and Win from the SDL hg repo, v2.0.8, r11861.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1558 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-11 09:10:22 +00:00
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