Commit graph

1816 commits

Author SHA1 Message Date
Ozkan Sezer
2a67d5bcb2 removed SDL version checks at runtime for compatibility with new SDL2:
With the new SDL2 versioning scheme, SDL_VERSIONNUM macro overflows the
minor version into the thousands digit after 2.9.0, e.g. encodes 2.23.0
as 4300, and we used to reject that thinking it is SDL v3 or something.
2022-05-24 20:55:04 +03:00
Ozkan Sezer
5ea6cdf51d image.c: accept type 1 (paletted) TGA files.
(from QSS - in case we need some day.)
2022-05-24 20:55:04 +03:00
Ozkan Sezer
03b7ef9f05 switch from libmikmod to libxmp for tracker music. 2022-05-14 10:37:10 +03:00
Ozkan Sezer
cb76b97926 external libs, codecs: updated libxmp builds. 2022-05-13 06:10:00 +03:00
Ozkan Sezer
ef3512ba84 remove Andrei's name per his request. 2022-05-05 23:50:40 +03:00
Ozkan Sezer
2bb154a03c Fix LAN config menu layout in Arcane Dimensions
Arcane Dimensions has an oversized gfx/p_multi.lmp
Noticed by Andrei Drexler.
2022-05-05 23:00:24 +03:00
Ozkan Sezer
a5750de9ae snd_xmp.c: use xmp_load_module_from_callbacks() if available 2022-05-03 23:01:02 +03:00
Ozkan Sezer
5f365331fa rebuilt SDL-1.2 for macOS 2022-04-28 11:32:10 +03:00
Ozkan Sezer
e50415c8ff constified pr_builtins and pr_numbuiltins 2022-04-27 17:00:02 +03:00
Ozkan Sezer
22dbb40b82 update SDL2 to 2.0.22-rc3 2022-04-24 04:39:50 +03:00
Ozkan Sezer
1c970af021 pr_edict.c: use q_snprintf() in all ValueString procs.
Avoids risk of writing past end of buffer - e.g. 'edicts' command with
ad_blasphemy. See: https://github.com/sezero/quakespasm/issues/25
2022-04-23 17:23:10 +03:00
Ozkan Sezer
33085c5449 bump version to 0.94.4, update documents. 2022-04-23 14:00:02 +03:00
Ozkan Sezer
ac880c5bf7 cl_parse.c: add CL_DumpPacket for debugging (from fteqw, commented out.) 2022-04-23 11:55:50 +03:00
Andrei Drexler
d7c8111ea0 Don't reset onground flag on new server message
This fixes physics issue with ramps/elevators when
the server is continuously sending messages without
client data in them (with updated onground info),
e.g. stuffcmds for fog animation, or tempentities

https://www.celephais.net/board/view_thread.php?id=61381&start=660&end=665
2022-04-23 11:33:50 +03:00
Ozkan Sezer
ae4bf378c0 fix getting stuck with loading plaque upon loading bad saves using menu
also change bad save versions to Host_Error and change a Sys_Error into
Host_Error.
2022-04-23 11:03:20 +03:00
Ozkan Sezer
c0cfba160d implemented PF_localsound && svc_localsound for 2021 re-release. 2022-04-22 18:11:20 +03:00
Ozkan Sezer
f86f1595f3 minor error messages / whitespace tidy-up & small stuff. 2022-04-22 17:50:02 +03:00
Ozkan Sezer
ddd1caebf5 SV_SendServerinfo: fixed off-by-one nummodels/numsounds for protocol 15 2022-04-22 11:41:20 +03:00
Ozkan Sezer
22c69dd59c actually, svc_strings[lastcmd] is always legal there... 2022-04-22 01:32:02 +03:00
Ozkan Sezer
707507e9a3 cl_parse.c: make sure not to out-of-bounds read svc_strings[] array 2022-04-22 01:20:00 +03:00
Ozkan Sezer
87a08ae157 more svc_?? macro updates, update cl_parse.c:svc_strings for reference 2022-04-22 01:10:50 +03:00
Ozkan Sezer
13907a2df2 added PF_walkpathtogoal stub for 2021 re-release update3 2022-04-21 23:55:10 +03:00
Ozkan Sezer
533a00262c protocol.h: added 2021 re-release server message defines
from https://steamcommunity.com/sharedfiles/filedetails/?id=2679459726
2022-04-21 23:55:10 +03:00
Ozkan Sezer
7bd751327d PF_sound: Remove the volume, attenuation, and channel boundary checks:
they are already checked the same way in SV_StartSound()
2022-04-21 23:55:10 +03:00
Ozkan Sezer
ee3e65cc78 update SDL2 to 2.0.22-rc2 2022-04-21 21:50:02 +03:00
Ozkan Sezer
530cbecc7d update PR_PatchRereleaseBuiltins further:
invent and use an exbuiltin_t table. a good side-effect of this is that
it makes sure that the ex_??? builtins' first_statement is actually 0.
2022-04-21 11:33:32 +03:00
Ozkan Sezer
c17a750569 update PR_PatchRereleaseBuiltins for Quake 2021 rerelease update 3:
Quake 2021 release update 3 changes rerelease-specific builtins to be looked up
by name rather than hardcoded builtin nums to avoid conflict with other engines.
(https://steamcommunity.com/games/2310/announcements/detail/3177861894960065435)
Patch them to use the indices, and also add its new builtins.
2022-04-21 03:25:24 +03:00
Ozkan Sezer
43a85fb24f added PR_PatchRereleaseBuiltins for Quake 2021 rerelease update 1,
and removed the relevant centerprint, bprint, and sprint entries
from pr_builtins[].

cherry-picked from the original patch for vkQuake by Andrei Drexler
2022-04-21 03:25:24 +03:00
Ozkan Sezer
d119208ab2 silence 'Unknown command "scr_usekfont"' message from 2021 re-release. 2022-04-21 03:25:24 +03:00
Ozkan Sezer
1711f6ecc4 rebuilt SDL-1.2 for mac from latest git source. 2022-04-13 18:24:04 +03:00
Ozkan Sezer
9aaad50acf rebuilt SDL2 for macOS 2022-04-09 14:55:11 +03:00
Ozkan Sezer
60191aefa0 upgrade to SDL2-2.0.22-rc1 2022-04-09 14:33:02 +03:00
Ozkan Sezer
963646b6cd rename QuakeSpasm-SDL2-64.xcscheme too. 2022-04-06 14:04:00 +03:00
Ozkan Sezer
23782d657f Xcode, Info.plist: changed x86_64 min target to 10.6 for compatibility 2022-04-06 12:55:40 +03:00
Ozkan Sezer
0974ef4024 Xcode: removed irrelevant OTHER_CFLAGS / OTHER_LDFLAGS from x64 target 2022-04-06 12:55:24 +03:00
Ozkan Sezer
f53706392e Xcode: renamed QuakeSpasm-SDL2-64 target to QuakeSpasm-SDL2-x64 2022-04-06 12:55:10 +03:00
Ozkan Sezer
40423a1d2c remove irrelevant xcuserdata from Xcode project 2022-04-06 12:32:56 +03:00
atsb
7bca6a764d 2 new targets within the original xcode project 2022-04-05 20:47:13 +02:00
Andrei Drexler
e6d65c5aa4 Don't autoplay next demo after a timedemo
This happened when starting the game
with either -fitz or cl_startdemos 1
and then executing 'timedemo demo1'
while a title demo was still playing
2022-04-02 11:50:10 +03:00
Andrei Drexler
f943e742dc Add cl_startdemos cvar
https://github.com/andrei-drexler/ironwail/issues/21
2022-04-02 11:50:10 +03:00
Andrei Drexler
0b30541ab9 Replace manual demo cdtrack parsing with evil fscanf
This fixes the missing music in hipdemo1 caused by a leading space
character before the cdtrack number, which ended up being parsed
incorrectly.  https://github.com/andrei-drexler/ironwail/issues/60

Note: original issue with fscanf (mentioned in the code comments)
was caused by the inclusion of the newline in the format string.
We work around it by reading the newline character separately.
2022-04-02 11:50:10 +03:00
Ozkan Sezer
ae97a7b5ed Key_Console: change strcpy to memmove for K_UPARROW and K_DOWNARROW 2022-03-31 23:02:20 +03:00
Ozkan Sezer
633fa48842 use _Static_assert for COMPILE_TIME_ASSERT if available 2022-03-31 17:01:02 +03:00
Ozkan Sezer
1baf872843 Mod_PointInLeaf: make declaration match its definition. 2022-03-29 23:02:02 +03:00
Ozkan Sezer
b0767dbc90 add back snd_modplug (disabled, for future ref.), update project files. 2022-03-29 17:04:02 +03:00
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