Alibek Omarov
ab0c0b18c2
engine: server: remove limit on sv_zmax value as it breaks Natural Selection mod
2024-10-04 19:07:08 +03:00
Alibek Omarov
29fd5f9fbe
engine: server: remove FCVAR_SERVER flag from sv_zmax
...
The problem is that FCVAR_SERVER flagged cvars get saved to listenserver.cfg.
The game code usually sets sv_zmax value to worldspawn parameters and
listenserver.cfg gets generated before server DLL gets initialized.
2024-10-04 19:04:34 +03:00
Alibek Omarov
882d8afc93
engine: server: stub SV_RestartDecals for dedicated server
2024-10-04 01:28:22 +03:00
Alibek Omarov
e11635d15c
engine: server: slight refactoring, hide client calls under XASH_DEDICATED, remove useless dedicated stub
2024-10-04 01:22:59 +03:00
Alibek Omarov
5d79d93aac
engine: server: use safe cvar unlinking for mods that deallocate cvars (like HL Unified SDK)
2024-10-03 15:32:14 +03:00
Alibek Omarov
7ccf651fd0
engine: cvar: implement safer cvar unlinking in case when game deallocates cvar
2024-10-03 15:32:14 +03:00
Alibek Omarov
67af41cce8
engine: common: net_ws: more minor refactoring, avoid memcpy for same type structs
2024-10-02 23:30:42 +03:00
Alibek Omarov
e2c96e62e1
engine: common: net_ws: drop IPv4 mapped as IPv6 support, it's an artifact from dual-stacking experiments and not used anymore
2024-10-02 23:26:28 +03:00
Alibek Omarov
2ecae442fc
engine: common: net_ws: minor refactoring
2024-10-02 23:25:12 +03:00
Alibek Omarov
a1060b0eb5
engine: add v6only master servers, add v6only flag for NET_StringToAdrNB
2024-10-02 23:23:08 +03:00
Alibek Omarov
ddd8de888f
engine: add macro XASH_NO_IPV6_RESOLVE to completely skip resolving addresses with family AF_INET6
2024-10-02 23:21:25 +03:00
Alibek Omarov
a758dffbc1
public: avoid useless copy in Q_timestamp
2024-10-02 22:18:16 +03:00
Alibek Omarov
87775faeca
engine: common: properly check if we can destroy resolve mutexes. Add net_resolve_debug cvar to enable printing resolve thread debug messages.
2024-10-02 22:16:51 +03:00
Alibek Omarov
ef0fc46ed8
wscript: allow async resolving for NSwitch
2024-10-02 00:55:53 +03:00
Alibek Omarov
138b4fa247
wscript: allow async resolving for PSVita
2024-10-02 00:55:53 +03:00
Alibek Omarov
47d1f3459c
engine: common: try to implement DNS resolve thread through SDL2 functions if SDL2 build is enabled
2024-10-02 00:55:53 +03:00
Alibek Omarov
4712aae834
engine: server: move autoprecaching wads after parsing reslists
...
An attempt to avoid assert() in HL Unified SDK.
2024-09-30 18:46:01 +03:00
Ivan Avdeev
2900ee1cde
engine: allow specifying screenshot filenames in command directly
2024-09-30 17:15:09 +03:00
Alibek Omarov
c6c4178dd2
engine: client: set TE_SPRAY to collide with world, fixes c7ad8e4bf
2024-09-30 04:15:22 +03:00
Alibek Omarov
a3ce0e6b1b
public: tests: test_efp: mark Test_ExtractFilePath as static
2024-09-30 04:00:28 +03:00
Alibek Omarov
0b1ad3b7f0
engine: imagelib: fix mismatched dealloc in a test
2024-09-30 04:00:28 +03:00
Alibek Omarov
37fb46f092
wscript: enable mismatched-dealloc and free-nonheap-object, now that we mark all malloc-like functions with malloc attribute
2024-09-30 04:00:28 +03:00
Alibek Omarov
bc8bf9a9fb
engine: add const on delta functions
2024-09-30 04:00:28 +03:00
Alibek Omarov
9e28c98911
engine: print to stderr if writing message to logfile failed
2024-09-30 04:00:28 +03:00
Alibek Omarov
0a1269d52d
filesystem: zip: fix non-heap object dealloc
2024-09-30 04:00:28 +03:00
Alibek Omarov
2e5bc31c9e
filesystem: set malloc like attribute for imported zone memory allocator functions
2024-09-30 04:00:28 +03:00
Alibek Omarov
1b335fd945
ref: soft: set malloc like attribute for imported zone memory allocator functions
2024-09-30 04:00:28 +03:00
Alibek Omarov
0c8b2d007a
ref: gl: set malloc like attribute for imported zone memory allocator functions
2024-09-30 04:00:28 +03:00
Alibek Omarov
9ee1b32e2d
engine: set malloc like and warn_unused_result attributes on common allocation functions, fs, image and soundlib
2024-09-30 04:00:28 +03:00
Alibek Omarov
953ad98a16
engine: workaround buggy stringop-overflow
2024-09-30 04:00:28 +03:00
Alibek Omarov
1357057bd8
common: add GCC malloc and warn_unused_result attribute macro
2024-09-30 04:00:28 +03:00
Alibek Omarov
35c9323de6
public: make vec3_origin and identity matrix inlined
2024-09-30 00:15:47 +03:00
Alibek Omarov
13a0afef06
public: reorganize mathlib, inline more functions
2024-09-30 00:15:47 +03:00
Alibek Omarov
c7ad8e4bf6
engine: client: more accurate implementation of TE_SPRAY and TE_SPRITE_SPRAY
2024-09-29 20:36:09 +03:00
Alibek Omarov
f1754bdd5f
wscript: disable cast-align diagnostic, it's mostly useless
2024-09-29 20:36:09 +03:00
Alibek Omarov
c462a1c500
wscript: add commented out freevgui subproject
2024-09-29 20:36:09 +03:00
Alibek Omarov
0bba184994
public: add VectorUnpack macro to read vector values into variables
2024-09-29 20:33:33 +03:00
Alibek Omarov
178602ea1f
engine: fix loading map in Dark Future mod with broken mark surface id
2024-09-05 15:23:23 +03:00
Alibek Omarov
2eb8f88a20
engine: move attenuation none sound spatialize fix to bugcomp mode, as Xash native games use this
2024-09-05 13:50:15 +03:00
Alibek Omarov
96d11df06c
Revert "engine: client: sounds with zero attenuation must get spatialized anyway"
...
This reverts commit 0870536405
.
2024-09-05 13:27:54 +03:00
Alibek Omarov
950d210ec5
Revert ABI2, it wasn't meant to end up in master branch.
2024-09-05 04:31:50 +03:00
Alibek Omarov
55c1bddac5
ref: gl: implement generating VBO only when gl_vbo was set to 1
...
* Make it safer by creating a function that returns VBO state, was it
generated or enabled by user
2024-09-05 04:10:56 +03:00
Alibek Omarov
ac50c762d7
ref: gl: slight refactoring, split large R_RenderBrushPoly to smaller functions
...
* Use R_RenderDetailsForSurface in R_AddSurfToVBO instead of copypaste
* Use existing VBO's R_CheckLightMap in R_RenderLightmapForSurface
2024-09-05 02:40:57 +03:00
Alibek Omarov
5c2ab150b3
ref: gl: move forcing gl_vbo to 0 after checking GL extensions out from R_GenerateVBO
2024-09-05 01:47:14 +03:00
Alibek Omarov
0870536405
engine: client: sounds with zero attenuation must get spatialized anyway
2024-09-05 01:28:55 +03:00
Alibek Omarov
b47ede477a
engine: server: strip 64-bit string pool stuff for now, to not mess up abi2
2024-09-05 01:28:55 +03:00
Alibek Omarov
eef5cc17b3
breaking engine headers by replacing int with string_t where it's supposed to be
2024-09-05 01:28:55 +03:00
Alibek Omarov
ad2191333d
engine: add _st64 prefix to load abi2 binaries
2024-09-05 01:28:55 +03:00
SNMetamorph
a85cac497d
ref: disabled verbose reporting about tracer invalid color index
2024-09-03 15:31:51 +03:00
SNMetamorph
e0c69d7df5
gha: fixed binaries signing in Windows workflow
2024-08-30 07:34:40 +03:00