Commit graph

4517 commits

Author SHA1 Message Date
Denis Pauk
dec5897052 images: Use only pcx manufacturer and version as ident 2024-07-11 23:34:45 +03:00
Denis Pauk
cfebe51ec9 Merge remote-tracking branch 'yquake2/master' 2024-07-11 23:33:04 +03:00
Yamagi
2a2f3e0b2f
Merge pull request #1123 from BjossiAlfreds/helpmsg-always
Workarounds for naggy help icons
2024-07-11 21:29:26 +02:00
Yamagi
7b6518060e
Merge pull request #1122 from devnexen/fix_dyn_symb_loading_sig
consistenly cast dynamic loading from generic pointer to fn pointer s…
2024-07-11 21:15:51 +02:00
BjossiAlfreds
6a25ba5118 Workarounds for naggy help icons 2024-07-09 13:11:12 +00:00
Denis Pauk
36f42a6a8b Merge remote-tracking branch 'yquake2/master' into images 2024-07-06 23:11:56 +03:00
David Carlier
2b4598d536
consistenly cast dynamic loading from generic pointer to fn pointer signature. 2024-07-06 18:40:13 +01:00
Yamagi
8c0904f0c8
Merge pull request #1121 from 0lvin/backport
Improve pcx support and cleanup soft render
2024-07-06 18:49:29 +02:00
Denis Pauk
3db882c6c8 renders: little bit revert pvx load code
Use additional checks from previous renders/files/pcx load code.
2024-07-06 18:52:01 +03:00
Denis Pauk
ac2a50cb4a soft: scale model texture s,t values
ref_gl renders use 0.0..1.0 float texture coordinates in gl commands
and skin ratio/resolution could be any.
ref_soft render uses absolute coordinates as result textures with
different to expected size are applied incorrectly.

Fix will not add support of scalled retextured skins, just fix case
when ratio is incorrect after scale down such or place a incorrect
pcx skin to the model directory.
2024-07-06 16:48:20 +03:00
Denis Pauk
79c71c7a68 soft: get rid unused R_PolysetUpdateTables 2024-07-06 16:41:52 +03:00
Denis Pauk
bfeb842bd3 pcx: fix support of bytes_per_line
https://github.com/yquake2/yquake2/issues/1119
2024-07-06 16:32:45 +03:00
Denis Pauk
c5841b7c2f pcx: fix support of bytes_per_line
https://github.com/yquake2/yquake2/issues/1119
2024-07-06 15:04:37 +03:00
Denis Pauk
50de5e091a renders: move m32 load to vid/image code 2024-07-06 15:03:57 +03:00
Denis Pauk
ce37d4b748 renders: move swl load to vid/image code 2024-07-06 15:03:57 +03:00
Denis Pauk
cf144ef2ca fix load mapfix for juggernaut/jug13 2024-07-06 14:30:48 +03:00
Denis Pauk
4c9a04efc5 Merge remote-tracking branch 'yquake2/master' 2024-07-06 14:27:25 +03:00
Yamagi
3f6a0a3689
Merge pull request #1118 from devnexen/few_more_build_chg
fix few warning builds.
2024-07-06 09:50:37 +02:00
Yamagi
af5a876be4 Fix a typo. 2024-07-06 09:20:04 +02:00
Yamagi
4c4759b73b
Merge pull request #1120 from BjossiAlfreds/jug13-mapfix
Mapfix for map jug13 (The Civic Center) in Juggernaut
2024-07-06 08:51:58 +02:00
BjossiAlfreds
298dd69def Mapfix for map jug13 (The Civic Center) in Juggernaut 2024-07-05 15:26:22 +00:00
David Carlier
a8a15ddff3
fix few warning builds. 2024-06-30 23:07:03 +01:00
Denis Pauk
689950068a soft: fix model skin textures
Soft render still uses downscalled skins and wall, code fixes case
when skin(s,t) size defined in model is slightly different to real
skin dementions. Code checks skin size in model and image asset size
and scale.
2024-06-30 23:30:32 +03:00
Denis Pauk
96b8707825 Merge remote-tracking branch 'yquake2/master' 2024-06-30 23:06:16 +03:00
Denis Pauk
25fa88ca9b renders: load swl as paletted image 2024-06-30 23:05:44 +03:00
Denis Pauk
161f703b90 renders: scale pcx before use 2024-06-30 23:05:35 +03:00
Denis Pauk
23ff8f6dea soft: update light code 2024-06-30 23:05:24 +03:00
Denis Pauk
214556728d renders: rename MAX_LBM_HEIGHT to MAX_LBM_WIDTH 2024-06-30 23:05:13 +03:00
Denis Pauk
e4849dc9d4 soft: remove unused R_PolysetUpdateTables 2024-06-30 23:03:21 +03:00
Yamagi
a315b15494
Merge pull request #1116 from devnexen/prev_fix_sec_optim
micro optimisations for previous security mitigations.
2024-06-30 20:54:08 +02:00
David Carlier
d0dc3e9926
micro optimisations for previous security mitigations.
also strtok_r uses its own provided buffer instead of the static one
even in a somewhat monothread context, it s still better.
2024-06-30 17:08:45 +01:00
Denis Pauk
ec36e98712 renders: replace paletted color with rgb 2024-06-25 00:00:23 +03:00
Denis Pauk
66515d9cde use gnumake on macos for release builds 2024-06-24 17:41:24 +03:00
Denis Pauk
e07cec2e13 renders: skip unused colormap allocation 2024-06-24 16:17:19 +03:00
Yamagi
1a1b32961b Refactor the download filter.
The first try didn't take into account that an evil server could
override the filter list by sending a stuff command. Fix this by
hardcoding the filters for .dll, .dylib and .so. Make sure that the
filters are always applied, either when the download is requested
through the `download` command or because game data is missing.

This is just a poor mans fix, trying to rule out an obvious way to
inject code into the client.
2024-06-24 11:56:11 +02:00
Denis Pauk
623b003f6f client: use rgb color in cparticle_t 2024-06-24 00:55:42 +03:00
Denis Pauk
3121849500 client: use rgb color in particle_t 2024-06-24 00:46:12 +03:00
Denis Pauk
bcda8cccaf vid: cache colormap 2024-06-23 19:16:35 +03:00
Denis Pauk
4268fedce0 filesystem: fix maps autocomplete for Anachronox 2024-06-23 19:15:34 +03:00
Denis Pauk
6a3859cd9e renders: sync readfile_t type with FS_LoadFile
Usage of FS_LoadFile as readfile_t is unsupported for now as requires
usage FS_FreeFile instead just copy of file content.

Fixes memory leak for sin models load.
2024-06-23 13:19:09 +03:00
Denis Pauk
d15bb81e58 Merge remote-tracking branch 'yquake2/master' 2024-06-22 23:57:29 +03:00
Yamagi
852cec05e7 Filter .., :, / and \\ from al_driver and cl_libcurl.
This is a poor mans safeguard against malicious server trying to
download and inject libraries.
2024-06-22 17:22:22 +02:00
Yamagi
5e6a73dc3f Include downloads into the security considerations. 2024-06-22 16:57:30 +02:00
Yamagi
468f90ad48 Implement a simple download filter.
`cl_nodownload_list` is a whitespace seperated list of strings, files
containing one of these strings in their name are never downloaded. Set
to `.dll .dylib .so` by default to prevent downloading libraries which
can be injected into client.

Closes #1114.
2024-06-22 16:56:42 +02:00
Yamagi
d5c7845271 Fix formating of the cvarlist. 2024-06-22 16:50:54 +02:00
Yamagi
93178d0f6b Implement a Q_strcasecmp() library replacement function.
It will be used in a later commit. While at it change Q_strcasecmp() and
Q_strncasecmp() to take the arguments as const, matching the signatures
of the non-replacement versions.
2024-06-22 16:47:19 +02:00
Denis Pauk
330b1352fb Add macos test build on release tag 2024-06-22 17:35:25 +03:00
Denis Pauk
a06c0703a7 renders: share palette load by refimport_t 2024-06-22 14:06:14 +03:00
Denis Pauk
1ce49294e7 renders: reuse VID_ImageDecode 2024-06-22 12:09:35 +03:00
Denis Pauk
9f84e40ab7 cin: move image load to separate file 2024-06-22 12:09:35 +03:00