Alibek Omarov
6063149b93
engine: match DT_TIMEWINDOW_* behaviour to GoldSrc: it's always signed and it's more of an integer than float value
4 years ago
Alibek Omarov
a28d15e519
engine: match DT_TIMEWINDOW_* behaviour to GoldSrc: it's always signed and it's more of an integer than float value
4 years ago
Alibek Omarov
94959110f6
engine: fix typo, #488
4 years ago
Alibek Omarov
9313f7e80e
engine: replace pool pointer by pool handle
4 years ago
Alibek Omarov
43f1137565
engine: use substring search for mpfilter
4 years ago
exstrim401
b7922368bd
engine: Haiku OS support ( #478 )
4 years ago
Alibek Omarov
ddd48c420b
engine: decrease instanced baseline index by minus one to avoid zero offset which interpreted as no baseline at all
4 years ago
Alibek Omarov
d54a648792
engine: common: avoid sign bit loss in MSG_WriteBitLong
4 years ago
Alibek Omarov
585955eb19
engine: filesystem: add an error message if we're trying to get a handle of a compressed file in ZIP archive
4 years ago
Bohdan Shulyar
ddc4d76668
engine: common: add quote symbol escaping support ( #411 )
4 years ago
Alibek Omarov
f5e400de69
server: fix wrong xashid key on server, it's uuid now
4 years ago
Alibek Omarov
9c8059ea96
engine: imagelib: add BGRA saving for PNG
...
Fix incorrect output, when input format has alpha but flags don't
have set IMAGE_HAS_ALPHA.
Flags are meant to control output format, but input format may be arbitrary,
as usually given by video driver(screenshots, etc)
4 years ago
Alibek Omarov
c62db950f1
server: implement rcon redirection, add redirect command from old engine
4 years ago
Alibek Omarov
acaf15c5d2
engine: increase MAX_LEGACY_SERVERS limit
4 years ago
Alibek Omarov
23974d24c3
engine: try to avoid broken -Werror=duplicated-branches for old GCCs 2
4 years ago
Alibek Omarov
868947cbb4
engine: try to avoid broken -Werror=duplicated-branches for old GCCs
4 years ago
Alibek Omarov
f2ab4c0d0e
engine: cfgscript: don't let scr vars overwrite existing variables
...
we don't use them for storing settings anyway
only for reference in UI
4 years ago
Alibek Omarov
0ba1a8e7bc
engine: cfgscript: reduce copypasted code
4 years ago
Alibek Omarov
26404315cb
engine: filesystem: avoid unnecessary padding in private structs
4 years ago
Alibek Omarov
be1958473b
engine: filesystem: fix liblistgam converting to gameinfo when rodir was enabled
4 years ago
Alibek Omarov
331a2046c8
engine: net: fix delta incorrect casts when field is signed
4 years ago
Alibek Omarov
9120d40ce5
engine: redefine CVAR_DEFINE_AUTO through CVAR_DEFINE macro
4 years ago
Alibek Omarov
155eb1ba58
engine: fix various warnings
4 years ago
Alibek Omarov
efaf7ac622
engine: fix UB on MSG_BigShort
4 years ago
Alibek Omarov
fe2c4af8c2
engine: soundlib: make Sound_GetApproxWavePlayLen behave like in GoldSrc
4 years ago
Alibek Omarov
3e7dd30fd7
engine: soundlib: use stdint definitions for WAV headers
4 years ago
Alibek Omarov
e77957bc81
client: decrease visibility of some cvars
4 years ago
Andrey Akhmichin
75210b1ff6
engine: common: filesystem.c: add binary search for files from zip-archives.
4 years ago
Ivan Avdeev
1b426b67e7
partially fix amd64 build on windows
...
Quality of this commit is questionable. I have no idea whether what I did
here makes sense or not.
But it compiles and runs (provided with hlsdk-xash3d amd64 build, which
is another story).
This omits necessary waf changes that are necessary to make a valid
64-bit build. Apparently it's not enough to just pass `-8` on Windows,
you also need to hack wscript to add `x64` target to MSVC. I'll do that
later when I figure out how.
This change is a precursor for RTX Vulkan effort --
VK_KHR_ray_tracing_pipeline and friends are only available on 64-bit
nvidia drivers (no idea about AMD, pls send GPUs onegai).
4 years ago
Alibek Omarov
d7b3c7b681
engine: proper order for XASH_LOW_MEMORY definitions
4 years ago
Gleb Mazovetskiy
6d614e028a
Fix COM_LibraryError newline handling
...
1. Do not append a trailing newline to the result of COM_GetLibraryError.
2. Fix call sites.
4 years ago
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
4 years ago
Alibek Omarov
766ef84af4
engine: ref: try to bruteforce all available renderers if we're failed to load requested one
4 years ago
Alibek Omarov
61fe9fd1fe
engine: fix some left shifts on signed integers
4 years ago
Gleb Mazovetskiy
2106eef4b2
system.c: Fix `Sys_Warn/Error` text buffer sizes
...
This was using the wrong define
E.g. `-dev 2 -help` output did not fit into it
4 years ago
Gleb Mazovetskiy
69e15e9c7b
gl4es: Fix `so` name and add to renderer collector
...
1. `libref_gles2_gl4es.so` -> `libref_gl4es.so` because this is what's
passed to `R_LoadRenderer`.
2. Add `gl4es` to `DEFAULT_RENDERERS` so that `R_CollectRendererNames`
finds it.
4 years ago
Andrey Akhmichin
abd9778ef3
engine: common: simplified strings operations.
4 years ago
Andrey Akhmichin
c53985c0bc
engine: common: imagelib: img_tga.c: refactor Targa encoder.
4 years ago
Alibek Omarov
2aaa6c6e04
public: build: add ARMv8 32-bit support, in case of someone actually uses it
4 years ago
Alibek Omarov
d4003f9527
crashhandler: fix build
4 years ago
Alibek Omarov
d30605c09f
engine: fixes for dedicated
4 years ago
Alibek Omarov
9ff6d44178
crashhandler: remove unknown arch error
4 years ago
Andrey Akhmichin
065811cc46
engine: common: filesystem.c: do not load zip-archives with zip extension as bullet proof.
4 years ago
Andrey Akhmichin
e69956c9ea
engine: common: imagelib: img_png.c: set IMAGE_HAS_ALPHA flag only for RGBA images.
4 years ago
mittorn
bef873e1f8
platform/android: enable dynamic dladdr, fix build
5 years ago
Alibek Omarov
0db1a7743d
engine: try to fix -Wmaybe-uninitialized that may be enabled with -Wuninitialized. Diagnostic is prone to false-positives, as compiler don't have enough data for this
5 years ago
Alibek Omarov
a641488b98
engine: imagelib: img_bmp: add paranoid checks for estimated file size to not exceed real buffer. Needs proper testing.
5 years ago
Alibek Omarov
46b0590e4e
engine: imagelib: refactor to use stdint.h definitions, use spaces for alignment instead of tabs
5 years ago
Alibek Omarov
9b22149509
engine: host: execute server.cfg right before main loop starts
5 years ago
Alibek Omarov
e0dfc4c0b4
launcher: oops, enable NOCONHOST only for Win32
5 years ago