Commit graph

1754 commits

Author SHA1 Message Date
Shpoike
2acb7b0e35 Avoid problems when bobcycle is 0. 2020-04-17 03:41:23 +01:00
Shpoike
b9c68480c6 Add support for dds textures. 2020-04-11 03:06:00 +01:00
Shpoike
9fc95cbff7 Fix glCompressedTexImage2D undefined on windows. 2020-04-11 01:40:55 +01:00
Shpoike
e5e8484a28 Merge branch 'master' of https://github.com/ericwa/Quakespasm 2020-04-07 02:35:09 +01:00
Shpoike
a03cdddfb0 Prevent crashes from improper viewmodel/viewframe/etc command usage. 2020-04-07 01:31:00 +01:00
Shpoike
9a25e03e45 Add avelocity support to MOVETYPE_PUSH entities, to go with rotated SOLID_BSP support (kinda pointless without this commit too tbh). 2020-04-07 00:58:07 +01:00
Shpoike
b69230e2fa Add proper collision support for angles on SOLID_BSP entities. 2020-04-07 00:56:15 +01:00
Shpoike
42b7972eed Allow poking entity fields in weird fun cheaty ways. Useful for debugging. 2020-04-07 00:54:29 +01:00
Shpoike
e65e816a3f Switch from LH's dead master to Eukara's live one. 2020-04-06 23:25:16 +01:00
Shpoike
16627f15e8 Fix server-crash bug when kicking people. 2020-04-06 23:24:22 +01:00
ewasylishen
7e7e13f933 Replace some uses of 9999/-9999, and 999999/-999999 with FLT_MAX/-FLT_MAX
Was sent a sample map where the texture scale was such that the
CalcSurfaceExtents mins/maxs were calculated incorrectly because of the
use of 999999 not being large enough magnitude, leading to a crash later
(maxs-mins was negative).

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1671 af15c1b1-3010-417e-b628-4374ebc0bcbd
2020-03-28 05:09:09 +00:00
ewasylishen
0794f3d08b Mod_LoadAliasFrame, Mod_LoadAliasGroup: error if posenum >= MAXALIASFRAMES
See: https://sourceforge.net/p/quakespasm/bugs/37/

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1670 af15c1b1-3010-417e-b628-4374ebc0bcbd
2020-03-28 05:09:07 +00:00
ewasylishen
8839a96e4e gl_sky.c (skybox_name): lazily increase array size from 32 to 1024.
See: https://sourceforge.net/p/quakespasm/bugs/38/

Also move its initializer to Sky_Init() and use q_strlcpy() instead
of strcpy() for copying to it in Sky_LoadSkyBox().

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1669 af15c1b1-3010-417e-b628-4374ebc0bcbd
2020-03-28 05:09:06 +00:00
Shpoike
27168ec47b Added support for my extended miptex stuff for high-colour map textures. 2020-03-07 09:03:46 +00:00
Shpoike
c2c9a68ff1 Fix a merge error of mine. 2020-02-29 02:13:06 +00:00
Shpoike
0713d5b89e Add some validation for gfx.wad. 2020-02-29 02:12:10 +00:00
Shpoike
915a8f300e Fix typo 2020-02-29 02:07:39 +00:00
Shpoike
8f0c65f104 Added cvars to change/disable the often-unwanted build-in sound effects. 2020-01-12 08:05:35 +00:00
Shpoike
3f8de2d99c Work around msvc's continued lack of C99 support. 2020-01-12 08:04:55 +00:00
Shpoike
d3f34bb4ad Ensure that Cmd_Args ALWAYS returns a valid string, avoiding crashes when only one arg was given. 2020-01-12 07:46:26 +00:00
Shpoike
1f0affcc91 Bump QC stack sizes, to reduce chances of overflows. 2020-01-12 07:45:41 +00:00
Shpoike
cbb1431d2e Remove some fixed-function logic from the worldsurf glsl. 2020-01-12 07:45:10 +00:00
sezero
3805c7f6f4 SDL2: rebuilt from hg-latest (r13387:8a12cc1abc9e)
Changes include a fix for a nasty locale issue on macOS.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1668 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-30 22:22:14 +00:00
sezero
016acd23de missed updating libmpg123 import libraries for Visual Studio in r6129..
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1667 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-30 02:10:08 +00:00
sezero
9916cfb789 oslibs, codecs: updated libmpg123 build.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1666 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-29 17:00:07 +00:00
sezero
fb91861fa9 snd_mp3tag.c: check for false positives if id3v1 is not at file's end.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1665 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-29 16:50:06 +00:00
Shpoike
dc6f750722 Merge branch 'master' of https://github.com/ericwa/Quakespasm 2019-12-29 16:28:23 +00:00
Shpoike
af7f137d91 Switch to unix endings on a windows file to try to avoid git being so awkward... 2019-12-29 16:28:19 +00:00
sezero
d25a745dde snd_mp3tags: let it consume all the tags at file end.
We do not know the order of ape, or lyrics3, or musicmatch tags,
so we loop until we consume all, scanning for each tag type once.
I don't yet care about freaky broken mp3 files with double tags.

<rant> MP3 standard has no metadata format, so everyone invented
their own thing, even with extensions, until ID3v2 became dominant:
Hence the impossible mess there.</rant>

Also remove inline directive from a few detection procedures there.

(updates from my code in SDL_mixer.)

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1664 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-23 21:35:16 +00:00
sezero
648cfe71ca SDL2: rebuilt from hg-latest (r13382:7cc4fc886d9e)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1663 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-23 21:29:17 +00:00
ewasylishen
b955bc0552 r_world.c: workaround Intel UHD 600 driver bug
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1662 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-15 23:52:13 +00:00
sezero
caa4f0333a snd_mpg123.c: use mp3_skiptags(). tidy-up a little.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1661 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-12 14:10:14 +00:00
sezero
a0bc61954d snd_mp3tag.c: tidy-up return code. add a failsafe for fshandle_t.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1660 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-12 14:04:01 +00:00
sezero
830745d235 snd_mp3.c: move skiptags() call to codecopen(), print error if it fails.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1659 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-12 14:01:02 +00:00
sezero
c9e8874ddf snd_mp3.c: moved mp3 tag stuff into a separate module snd_mp3tag.c
so that it can be used in snd_mpg123.c, too, if needed.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1658 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-12 11:37:32 +00:00
sezero
2e51ec0037 snd_mp3.c: removed unnecessary file rewind calls in tag detection code.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1657 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-12 08:23:12 +00:00
sezero
840a193336 snd_mp3.c: Tag detection fixes, updates, and clean-ups:
- Updates from my code in SDL_mixer:
- Fix APE header presence detection: APEv2 doesn't guarantee header.
  We rely on bit31 of the flags field of the header/footer, instead.
- Add code to skip Lyrics3 v1 / v2 tags.
- Remove the non-standard 'Extended ID3v1' tag support: None of the
  significant libraries like getID3, taglib or libid3tag support it.
  Not supported in most, if not all mp3 players, either.
- The 'APE before ID3v1' was duplicated code because we removed the
  TAG+ support: removed it.
- Add a FIXME note about handling possible double-ID3v1 tags.
- Add a FIXME note about order of tags at the end of the file.
- A few minor tidy-ups.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1656 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-08 14:00:50 +00:00
sezero
ec9afad9bf oslibs: rebuilt libmikmod with updates applied from mainstream
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1655 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-12-08 13:29:33 +00:00
Shpoike
d4db22a449 Merge branch 'master' of https://github.com/ericwa/Quakespasm 2019-11-20 05:11:26 +00:00
ewasylishen
d40ff71625 Reject lit files if they're the wrong size (eg hipnotic/start.bsp vs id1/start.lit or just a bsp that no longer has any coloured lits, etc).
From Spike.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1654 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-20 02:47:04 +00:00
Shpoike
93d8adae91 Reject lit files if they're the wrong size (eg hipnotic/start.bsp vs id1/start.lit or just a bsp that no longer has any coloured lits, etc). 2019-11-19 21:26:45 +00:00
sezero
39669b94e6 oslibs, codecs: updated libflac and libopusfile builds.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1653 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-18 09:51:03 +00:00
sezero
cc2c53b6ea lodepng.c: fix LODEPNG_RESTRICT for gcc
previously, it ignored any gcc with __GNUC_MINOR__ == 0.
(patch submitted to upstream at github as PR/120)

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1652 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-18 09:47:04 +00:00
sezero
2f0a418604 minor update from SDL-1.2 mainstream tree. (our binaries don't change.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1650 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-13 11:55:04 +00:00
sezero
20a4a27bb0 revert r1647
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1649 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-12 07:35:22 +00:00
sezero
1c4af13133 lodepng.c: minor update (cf. mainstream PR/119)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1648 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-11 22:14:22 +00:00
sezero
766eb2de10 oslibs: rebuilt libflac decoder after applying a fix from mainstream
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1647 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-11 11:38:59 +00:00
sezero
d8ec39dfdb lodepng.c (lodepng_zlib_compress): Fix alloc fail check.
From https://github.com/lvandeve/lodepng/pull/118

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1646 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-11 09:37:06 +00:00
sezero
d07b36135b r_brush.c (AllocBlock): add a FIXME note about a valgrind warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1645 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-11 09:35:19 +00:00
sezero
3f0e330e33 SDL2: rebuilt from latest SDL2-hg-r13229.
fixes a missing export in previous build.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1644 af15c1b1-3010-417e-b628-4374ebc0bcbd
2019-11-05 07:01:09 +00:00