Ozkan Sezer
673a4a7315
Image_WritePNG: image should be freed using lodepng_free
2022-07-01 20:00:10 +03:00
Ozkan Sezer
09216eb65f
Makefiles: added basic dependency tracking, and tidied-up a bit.
2022-06-28 03:02:56 +03:00
Ozkan Sezer
c1c9f3b7fe
stb_image_write.h: applied mainstream PR/1337 patch
...
fixes potential invalid memory access
https://github.com/nothings/stb/pull/1337
2022-06-27 14:04:20 +03:00
Ozkan Sezer
520397d93e
image.c: targa_header needn't be global.
...
as noticed in vkQuake.
2022-06-26 14:15:32 +03:00
Ozkan Sezer
3f251ed5fc
bump version to 0.94.6, update documents.
2022-06-25 23:02:02 +03:00
Andrei Drexler
fe15bc1ddd
Server: fix protocol size checks for sounds and particles
...
6643f532bd
2022-06-25 20:56:10 +03:00
Ozkan Sezer
3581ff989d
can't use C11 _Generic macros with C++
2022-06-22 05:50:00 +03:00
Ozkan Sezer
d24b969990
updated SDL2-2.0.22 builds with several backports from SDL2 main branch.
2022-06-22 04:35:10 +03:00
Ozkan Sezer
c00aa578d0
updated changelogs for v0.94.5
2022-06-14 17:10:00 +03:00
Ozkan Sezer
71159d174c
updated SDL2-2.0.22 builds with several backports from SDL2 main branch.
2022-06-12 14:37:00 +03:00
Ozkan Sezer
02b953e993
use C11 _Generic macros for q_min, q_max and CLAMP, if available.
...
.. if not, then use GCC expression macros for them, if available.
2022-06-12 14:32:28 +03:00
Ozkan Sezer
2012cb5484
miniz.h: lose '#pragma once' and use proper header guard
2022-06-12 14:29:50 +03:00
Ozkan Sezer
44af62a16c
gl_fog.c (Fog_FogCommand_f): simpler to use Q_atof there
2022-06-12 14:29:00 +03:00
Ozkan Sezer
9811d8354f
minor style tidy-up.
2022-06-12 14:28:28 +03:00
Andrei Drexler
373ad04e92
Clamp fog color
2022-06-12 14:27:00 +03:00
Ozkan Sezer
bd0cb0c583
updated changelogs
2022-06-02 17:15:40 +03:00
Ozkan Sezer
a82e3dd75e
Fog_FogCommand_f: remove function calls from CLAMP and q_max macros
2022-06-02 14:33:10 +03:00
Ozkan Sezer
16d813859f
R_DrawSequentialPoly: don't use function calls from CLAMP() macro.
2022-06-02 14:33:10 +03:00
Ozkan Sezer
35b2d77661
TexMgr_SafeTextureSize: don't use function calls from q_min() macro
2022-06-02 14:33:10 +03:00
Ozkan Sezer
6c9bde021c
Con_Init: don't use function calls from q_max() macro.
2022-06-02 14:33:10 +03:00
Ozkan Sezer
4c63468831
menu.c (M_Quit_Draw): fixes and simplifications
2022-06-02 14:33:10 +03:00
Ozkan Sezer
284b182a1c
gl_fog.c (Fog_ParseServerMessage): fix reading time for svc_fog.
...
max() macro forces double read of its arguments, so MSG_ReadShort()
was being called twice, therefore it has always been broken since
more than 20 years, and not to mention its definition change going
from fitzquake v0.60 to v0.65. Darkplaces svn r1778 changelog says:
"minor cleaning of obsolete protocol stuff (svc_fog is now considered unused, because it really never was used)"
http://svn.icculus.org/twilight?view=rev&revision=1778
524e813007
FTEQW does it right by doing a single message read (svcfitz_fog)
We now do a single message read like FTEQW, as it should have been.
svc_fog message has probably never been emited by any mod's qc, so
no worries.
2022-06-02 14:33:10 +03:00
Ozkan Sezer
fe62465d9e
add -lm to SDL-1.2 project too, move -lm to end of list in SDL2 project.
2022-06-02 14:32:40 +03:00
DusteD
fa9e18c160
Add linker option -lm to fix undefined reference to GLIBC error
2022-06-02 12:18:54 +02:00
Ozkan Sezer
57a32b567f
r_alias.c: (R_DrawAliasModel): avoid a possible undefined behavior.
...
See https://github.com/Novum/vkQuake/issues/476 for original discussion.
2022-06-01 14:15:00 +03:00
Ozkan Sezer
74f1621e0f
updated SDL2-2.0.22 builds with several backports from SDL2 main branch.
2022-05-26 11:55:00 +03:00
Ozkan Sezer
0dd1c12dd9
bump version to 0.94.5, update documents.
2022-05-24 20:55:04 +03:00
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