Commit graph

4220 commits

Author SHA1 Message Date
Alibek Omarov
8fd5a5af96 filesystem: simplify ambient number bound check 2024-11-17 13:04:44 +03:00
Alibek Omarov
229f1560b0 engine: fix some possible off by one errors 2024-11-17 13:04:20 +03:00
Alibek Omarov
8f7f311f60 engine: mod_bmodel: simplify wadlist parser 2024-11-17 06:28:02 +03:00
Alibek Omarov
721c8043f1 public: optimize COM_FileExtension 2024-11-17 06:20:52 +03:00
Alibek Omarov
31a86d8af2 engine: use new Q_splitstr to work with single character delimited strings 2024-11-17 05:35:36 +03:00
Alibek Omarov
ac7617990a public: add Q_splitstr function 2024-11-17 05:34:29 +03:00
Alibek Omarov
0813d2c7ce engine: mod_bmodel: merge Mod_LoadColoredLightmap and Mod_LoadDeluxemap into a single function 2024-11-17 04:59:52 +03:00
Alibek Omarov
0ceb0d9e11 engine: provide compatible replacement for CompareFileTime function 2024-11-17 04:33:13 +03:00
Alibek Omarov
30db748dcb engine: net_http: don't consider EISCONN an error, just proceed to next step 2024-11-17 03:13:39 +03:00
Alibek Omarov
399d549d0c engine: net_ws: request Winsock 2 2024-11-17 03:13:39 +03:00
Alibek Omarov
77fb2d0eb2 engine: net_ws: fix misleading error when comparing IPv6 addresses 2024-11-15 16:41:42 +03:00
Alibek Omarov
ea88bb88b2 engine: add secondary master server 2024-11-15 15:25:40 +03:00
Alibek Omarov
190e4a5e8a engine: client: don't kill entity's beams if this entity number was never used on client
Fixes issue when beam was sent over to client before it's start point entity
(due to PVS, for example)
2024-11-15 08:07:21 +03:00
Alibek Omarov
823dc3d46f engine: net_http: don't consider EALREADY on connect() an error 2024-11-14 22:55:27 +03:00
Alibek Omarov
779cb2f721 engine: server: use calloc in SV_AllocString, allocate strings at stringspool preventing memory leaks. Fix strings deduplication on 64-bits. 2024-11-13 23:36:53 +03:00
Alibek Omarov
88c42d50f2 engine: server: always allocate svgame.stringspool, it's used to track temp string allocations like in SV_CopyString
Potentially fixes memory leakage on 64-bit when game uses instanced baselines or consistency lists
2024-11-13 23:35:45 +03:00
Alibek Omarov
a749bb8ef1 engine: server: reset str64 statistics on server deactivate 2024-11-13 23:32:05 +03:00
Alibek Omarov
723cd8e26c engine: server: adjust 64-bit string pool size depending on max_edicts value (65k for each 1024 edicts) 2024-11-13 23:30:54 +03:00
Alibek Omarov
a6592e7776 public: add test to check that pair Q_buildos and Q_buildarch return expected (for this build) data 2024-11-12 21:24:48 +03:00
Alibek Omarov
4342689e73 engine: net_http: fix build with dedicated server 2024-11-12 14:46:06 +03:00
Alibek Omarov
8a2a7d1180
engine: rework how HTTP finite-machine works, use function pointers instead of enum. Preliminary chunked transfer and compression support. (#1862) 2024-11-11 10:30:15 +03:00
Vladimir
199e226758
Documentation updates and additions (#1875)
* Documentation: actualize and prettify entity tools instructions

* Documentation: added article about NAT bypass feature

* Documentation: updated GoldSrc protocol support article
2024-11-11 10:29:24 +03:00
Alibek Omarov
16ed6cbdcb engine: mark some functions as never returning nullptr 2024-11-07 16:11:58 +03:00
Alibek Omarov
b51d1a4e2e public: mark some functions as never returning nullptr 2024-11-07 16:11:40 +03:00
Alibek Omarov
534adc9630 common: xash3d_types: add returns nonnull attribute 2024-11-07 15:46:10 +03:00
Alibek Omarov
d15949d2e8 Rename _format to FORMAT_CHECK 2024-11-07 14:24:07 +03:00
Alibek Omarov
43609bc77c mainui: update 2024-11-07 14:12:21 +03:00
Alibek Omarov
3917e096ea engine: client: the most important change since forever, move downloading message a bit to the right so it looks better on 640x480 2024-11-07 14:12:10 +03:00
Alibek Omarov
d1a571201b engine: client: s_mix: attempt to fix S_InterpolateCubic2x buffer overflow 2024-11-07 14:12:10 +03:00
Alibek Omarov
8a8cdd2927 engine: client: another possible null pointer dereference 2024-11-07 14:12:10 +03:00
Alibek Omarov
3ef4acecb5 Documentation: ports: clarify support for some merged but not tested ports. Add Dreamcast port repository by @maximqaxd 2024-11-07 11:23:21 +03:00
Alibek Omarov
e8c1fc958f mainui: update 2024-11-07 10:18:16 +03:00
Alibek Omarov
08bc4ccec4 3rdparty: opus: wscript: implement looking for C99 VLA or alloca 2024-11-07 10:15:19 +03:00
Alibek Omarov
6ae62e3bb1 engine: platform: posix: include sys/filio.h to have FIONBIO declaration for networking code 2024-11-07 07:42:07 +03:00
Alibek Omarov
397f2f208a engine: wscript: link libsocket on Solaris 2024-11-07 07:41:37 +03:00
Alibek Omarov
8bebf698ef ref: fix out of bound access when the entity is marked as player but has invalid number
It's possible when client.dll passes a self allocated entity and wants to draw
it as player but doesn't initialize or set the entity number correctly.
2024-11-07 07:18:14 +03:00
Alibek Omarov
6a2a2c33ee engine: client: don't go out of bounds if studio model don't have any sequences
Fixes models/null.mdl in Master Sword Rebirth. It's technically a valid model, though
completely useless for renderer.
2024-11-07 07:13:20 +03:00
Alibek Omarov
0adda483c5 public: add definitions for Solaris 2024-11-07 07:12:30 +03:00
Alibek Omarov
d8eb918cea filesystem: rename IVFileSystem009 to IFileSystem to avoid UBsan errors when debugging a mod that calls this interface using original headers 2024-11-06 19:46:22 +03:00
Alibek Omarov
96b95db7c8 filesystem: compile with rtti, but still disable exceptions 2024-11-06 19:46:22 +03:00
Alibek Omarov
b1915106b0 vgui_support: update 2024-11-06 19:46:22 +03:00
Alibek Omarov
0d2a8488ae engine: client: replace illegal for infostring characters in server info got from TSource Engine Query 2024-11-06 19:46:22 +03:00
Alibek Omarov
a52c8aa291 ref: soft: as an experiment, reformat ref_soft as it's easier to notice config inaccuracies 2024-11-06 02:41:38 +03:00
Alibek Omarov
fbbafb45a3 Add uncrustify config file [skip ci] 2024-11-06 02:40:26 +03:00
Alibek Omarov
659adca473 ref: soft: remove dead, commented out code 2024-11-06 02:17:06 +03:00
Alibek Omarov
38e8a581b6 engine: server: fix possible NULL dereference 2024-11-06 01:39:46 +03:00
Alibek Omarov
06e476e8c8 engine: reorder mstudiocache_t fields for better memory efficiency 2024-11-06 01:39:46 +03:00
Alibek Omarov
f529f06ea1 engine: use designated initializers to define BSP lumps. Reorder mlumpinfo_t for better memory efficiency 2024-11-06 01:39:46 +03:00
Alibek Omarov
159ded433d ref: gl: don't touch polygon offset when not drawing debug hulls as it breaks decals with VBO
Also correctly restore polygon offset state so decals gets drawn even with VBO
2024-11-06 01:39:46 +03:00
Alibek Omarov
c3b6422ad0 engine: common: add lzss fixes by nillerusr 2024-11-06 01:39:46 +03:00