Ozkan Sezer
fb87b63d19
lodepng: fixed MSVC C4334 warnings in 64 bit builds
...
1>D:\sezero\quakespasm-git\Quake\lodepng.c(689,54): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
1>D:\sezero\quakespasm-git\Quake\lodepng.c(708,39): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
1>D:\sezero\quakespasm-git\Quake\lodepng.c(5467,33): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
c.f.: https://github.com/lvandeve/lodepng/pull/142
2022-03-26 05:00:32 +03:00
Ozkan Sezer
a4b630a8ce
updated SDL, libmikmod and libxmp builds.
2022-03-23 10:02:50 +03:00
Ozkan Sezer
d239a8911d
snd_umx.c (get_objtype): make sure that 'sig' array is initialized.
2022-03-21 20:21:24 +03:00
Andrei Drexler
065c158254
Quad/pentagram dlights for 2021 rerelease
2022-03-11 23:55:10 +03:00
temx
6cf0547d01
Fix SZ_GetSpace server crashes
...
See https://github.com/Novum/vkQuake/pull/438 . Also see
https://github.com/andrei-drexler/ironwail/issues/32
Note: Changing that 24 to 39 does prevent the crash, but
the buffer size is still insufficient, so some entities
(e.g. nails) are missing occasionally. A MAX_DATAGRAM of
48000 seems enough to fix that (MAX_DATAGRAM in ironwail
has been bumped to 64000.) Long term though, it would be
much better to add support for pkt fragmentation like in
QSS since this jumbo packet size is only used in single-
player mode - multiplayer uses the much smaller value of
DATAGRAM_MTU (just 1400 bytes.)
2022-03-11 23:55:10 +03:00
Andrei Drexler
32b1ebb828
Fix mouse input truncation with non-integral sensitivity
2022-03-11 23:55:10 +03:00
Ozkan Sezer
c5a45e7e58
move DEG2RAD macro to mathlib.h.
...
From a patch by Andrei Drexler
2022-03-11 23:55:10 +03:00
Ozkan Sezer
144b43f333
update lodepng to 20220109 version from mainstream.
2022-03-01 14:20:02 +03:00
Ozkan Sezer
b76d5e1b9f
miniz updates:
...
- update from mainstream master to fix mainstream PR/159#issuecomment-1046220324
- fixes by Alice Rowan for mainstream issue 220
2022-03-01 11:56:10 +03:00
Andrei Drexler
14b7338946
Fix intermission camera angles during demo playback
...
(see https://github.com/sezero/quakespasm/issues/18 )
2022-03-01 11:20:10 +03:00
Andrei Drexler
ec49ef2441
Add 'horde' cvar (for 2021 rerelease)
2022-03-01 11:20:10 +03:00
Andrei Drexler
9582f6c7b6
Change STRUCT_FROM_LINK to avoid potential undefined behavior
2022-03-01 11:20:10 +03:00
Andrei Drexler
a1f522701a
Tweak PF_findradius
2022-03-01 11:20:10 +03:00
Andrei Drexler
6642ad63b7
Raise window after showing it
...
Potential fix for https://github.com/andrei-drexler/ironwail/issues/27 :
The focused window is not the game window on initial startup until the
game window is clicked on with mouse. Confirmed that it doesn't happen
with only one screen.
2022-03-01 11:20:10 +03:00
Ozkan Sezer
743c983060
miniz: updates from mainstream PR/159
...
--
2022-01-27 08:10:04 +03:00
Ozkan Sezer
f260464d96
miniz: fixed a bad return introduced in previous update.
2022-01-23 10:02:02 +03:00
Ozkan Sezer
b5bb9976c2
fixed typo in changelog
2022-01-22 20:10:24 +03:00
Andrei Drexler
8f4c5b3dfa
Skip leading whitespace in Q_atoi and Q_atof
...
This matches the standard library and also fixes the following bug:
- load ad_sepulcher and move to an area where water is visible
- open up the console
- save waterbug
- load waterbug
Water is now invisible as long as the console is still active.
The issue stems from the fact that cvar_set is called at startup
with the arguments ("r_wateralpha", ftos(liquid_alpha)) [1],
and ftos pads its output (" 0.6"). Without skipping the leading
whitespace, Q_atof ends up returning 0, which then gets assigned
to r_wateralpha. This makes the water invisible until a stuffcmd
that sets r_wateralpha again is later received from the server.
With the console open at startup, however, the stuffcmd message
can be delayed indefinitely.
[1] 320f1cec45/world.qc (L641)
2022-01-09 01:25:50 +03:00
Ozkan Sezer
6071c47c91
miniz: fix shadowing warnings (from a patch by Axel Gneiting)
2022-01-07 11:03:04 +03:00
Ozkan Sezer
9c53316dcf
updates to miniz:
...
merges upstream PRs 159, 217, and 220, tweaks to MZ_FORCEINLINE macro,
tweaks to mz_int64 typedefs for older MSVC.
2022-01-03 02:56:04 +03:00
Ozkan Sezer
1439cc0547
snd_umx: don't overzealously restrict the loader to known upkg versions.
2021-12-28 03:21:10 +03:00
Ozkan Sezer
2e0146c7fb
disable assert()s by default in miniz
2021-12-23 15:55:02 +03:00
Ozkan Sezer
09396fd9ca
bump version to 0.94.3, update documents.
2021-12-05 15:11:10 +03:00
Andrei Drexler
7f4e1c13e7
Handle sky textures with non-standard sizes
2021-12-05 14:10:50 +02:00
Ozkan Sezer
9502aaff25
SDL2-2.0.18 final windows build.
2021-12-04 12:50:00 +03:00
Andrei Drexler
e3d2fb9fd9
Check that sky texture size is 256x128
...
(taken from quakespasm-gl4 fork.)
2021-12-04 11:11:10 +03:00
Andrei Drexler
eeda766f12
Allow loading textures not aligned to 16 pixels
...
This fixes the mg1/horde2 loading error
(taken from quakespasm-gl4 fork.)
2021-12-04 11:11:10 +03:00
Ozkan Sezer
a4dcdda3d9
common.c (LOC_ParseArg): remove unused local var 'start'
2021-12-04 11:11:10 +03:00
Ozkan Sezer
0b946eda0e
merged a minor update to miniz.h from mainstream
2021-12-04 11:11:10 +03:00
Andrew J. Hesford
b311f7e231
Fix format overflow warning with 32-bit gcc
...
(taken from vkquake.)
2021-12-04 11:11:10 +03:00
Ozkan Sezer
d5e9d1270c
more parentheses around vector macro arguments.
2021-12-04 11:11:10 +03:00
Andrei Drexler
9c78f028f6
Add parentheses around vector macro arguments
...
(taken from quakespasm-gl4 fork.)
2021-12-04 11:11:10 +03:00
Ozkan Sezer
3eab2a705b
newer windows SDL2-2.0.18 build,
...
fixing mainstream SDL bug 5026 .
2021-11-29 01:24:24 +03:00
Ozkan Sezer
5ec821c274
upgrade SDL2 to 2.0.18
2021-11-28 17:00:02 +03:00
Ozkan Sezer
d8162f932b
oslibs: rebuilt SDL-1.2 from mainstream.
2021-11-28 12:55:10 +03:00
Ozkan Sezer
3f831f67e0
oslibs: updates to SDL-1.2 headers from mainstream.
2021-11-25 17:21:20 +03:00
Ozkan Sezer
6cf4bbc198
reverted the previous NO_WINSDKVER_H patch - not needed after latest SDL
2021-11-06 12:00:00 +03:00
Ozkan Sezer
2492689d9e
define NO_WINSDKVER_H for windows SDL2 builds
...
SDL_config_windows.h from development version of SDL added inclusion of
winsdkver.h which may not be available in old SDKs. we have no use for
the functionality provided by it, therefore disable it.
2021-11-05 10:51:10 +03:00
Ozkan Sezer
3fbb11b048
bump version to 0.94.2, update documents.
2021-10-10 05:11:02 +03:00
Ozkan Sezer
7ed46cc3fd
support for playing 2021 re-release latest update.
2021-10-10 05:10:50 +03:00
Ozkan Sezer
602b34f414
finaleFinished (builtin 79) of 2021 rerelease actually returns a boolean
2021-10-10 05:10:10 +03:00
Ozkan Sezer
081e73c709
host_cmd.c: make a lot of procedures static.
2021-10-01 11:10:04 +03:00
Ozkan Sezer
b58efad209
fix looking for QuakeEX.kpf under userdir
2021-10-01 11:02:02 +03:00
Ozkan Sezer
bf85bbb3e8
look for QuakeEX.kpf under userdir too.
...
Closes https://github.com/sezero/quakespasm/issues/8
2021-09-20 14:55:50 +03:00
Andrei Drexler
e632b79725
Start the light trace for alias models from slightly above their origin
...
This fixes the black candles in the DOTM start map (see vkQuake issue:
https://github.com/Novum/vkQuake/issues/367 )
2021-09-20 11:55:10 +03:00
Andrei Drexler
a1f9cce1f4
Fix pitch black models in lit areas in DOTM (mg1).
...
See: https://github.com/sezero/quakespasm/issues/7
2021-09-20 11:55:10 +03:00
Ozkan Sezer
96a8ba1d78
updated XCode project files.
2021-09-08 23:50:50 +03:00
Ozkan Sezer
483757e68e
oslibs, codecs: rebuilt mpg123 with an ID3 fix applied.
2021-09-08 17:00:04 +03:00
Ozkan Sezer
e67dc8c0d1
added a safeguard, just in case..
2021-09-05 11:37:10 +03:00
Ozkan Sezer
68c17d38f7
remove FitzTest_f - doesn't seem to test anything..
2021-09-05 11:37:10 +03:00