Alibek Omarov
d202a6c572
engine: server: emulate pfnPEntityOfEntIndex bug only with explicitly enabled GoldSrc bug compatibility
2 years ago
Alibek Omarov
c326853617
engine: server: restore original PEntityOfEntIndex function, but still bug-compatible with GoldSrc
2 years ago
Alibek Omarov
f0a856d9c8
engine: server: fix writing message size for engine messages, as it's expected to be 2-bytes
2 years ago
Alibek Omarov
6f36edfd16
engine: various const qualifier fixes
2 years ago
Alibek Omarov
8445567ab4
engine: server: remove unused arguments passed to Con_Printf
2 years ago
Alibek Omarov
33d79ddb24
engine: server: fix possible array overruns
2 years ago
Alibek Omarov
51526948c0
engine: server: make PEntityOfEntIndex bug-compatible with GoldSrc
...
Add new undocumented GoldSrc eiface function, PEntityOfEntIndexAllEntities,
a bug-free version of PEntityOfEntIndex
Ref: https://github.com/ValveSoftware/halflife/issues/2272
2 years ago
Alibek Omarov
36d757c74a
engine: server: fix message trace output
3 years ago
Alibek Omarov
2fa964e939
engine: server: restore sv_trace_messages from old engine
3 years ago
Alibek Omarov
ca3544d559
engine: server: don't assert for NULL player in FatPAS/PVS if we don't need it
3 years ago
Alibek Omarov
a8c877c841
engine: server: fix ParseFile calls
3 years ago
SNMetamorph
ec95948b69
engine: server: implemented instant game library loading
3 years ago
Alibek Omarov
a547526e86
engine: fix some signed char cases
3 years ago
Alibek Omarov
49a20a9ac5
engine: server: fix memleak after previous commit
3 years ago
Alibek Omarov
8966172ce0
engine: server: avoid crash if map entity doesn't have classname (tfc map flagwar for example)
3 years ago
Alibek Omarov
42f47f51b5
server: implement GetFileSize and GetApproxWavePlayLen from HLSDK 2.4
4 years ago
Alibek Omarov
585ae28dd2
server: fix some int <> unsigned int conversions
4 years ago
Ivan Avdeev
012d1fa8bd
fix USE_MMAP usage
...
should fix CI failures
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
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
Andrey Akhmichin
1332381e2d
engine: server: simplified strings operations.
4 years ago
mittorn
3a416636f1
engine: mark GAME_EXPORT's
5 years ago
mittorn
bbd033c254
lib: restore dll loader support
5 years ago
Alibek Omarov
0fe18ae6dc
engine: fix -Wmaybe-uninitialized
5 years ago
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
5 years ago
mittorn
37cba10c14
lowmemory: fix sentences
5 years ago
Wei Mingzhi
88772a1c34
engine: GetGameDir should return gamedir only. Add proper stub functions for some engine APIs.
5 years ago
Alibek Omarov
d382f6886d
engine: fix build
5 years ago
Alibek Omarov
2f8fec6b70
Remove trailing spaces, convert mistakenly put spaces to tabs. The most useful commit ever.
5 years ago
Alibek Omarov
4beba75159
engine: fix various compiler warnings
5 years ago
Jonathan Poncelet
d14ce5ac39
SV_LoadProgs: Fixed potential memory leak if function failed ( #46 )
...
SV_LoadProgs: Fixed potential memory leak if function failed
5 years ago
Alibek Omarov
c215b89923
Apply 4483 update
6 years ago
Alibek Omarov
fe14a360b4
engine: fix fs_offset_t/size_t conversion, const qualifiers
6 years ago
Alibek Omarov
62f04137a5
engine: hide ref calls under Host_IsDedicated checks, replace ref function ptr checks by \!Host_IsDedicated
6 years ago
Alibek Omarov
743c5ca8d5
engine: make dedicated work again
6 years ago
mittorn
bf2f829382
Disable Mod_ClearUserData in SV_UnloadProgs (it is still called on restart)
6 years ago
Alibek Omarov
97aba69ed0
ref: implement API interface for ref_gl, get rid of RenderAPI, RenderInterface and vgui_support API references
6 years ago
Alibek Omarov
99bd7c81da
ref: render code moved out of engine, doesn't compile, first API prototype
6 years ago
Alibek Omarov
4d63eb4413
sv_game: fix pfnSetModel theoretically may ignore precached models
6 years ago
Jonathan Poncelet
35869586c9
Made various log messages more informative
6 years ago
mittorn
298393b653
Initial amd64 port
6 years ago
Alibek Omarov
aae3510763
Apply 4281 update
6 years ago
mittorn
5c738b3402
Apply 4253 update
6 years ago
Alibek Omarov
1e7f9d00c3
Apply 4150 update
6 years ago
Alibek Omarov
a539384a76
Apply 4143 update
6 years ago
Alibek Omarov
814b7eda07
Apply 4140 update
7 years ago
Alibek Omarov
0681209114
Remove useless host.type set, replace HOST_DEDICATED checks by Host_IsDedicated
7 years ago
Alibek Omarov
9bab7d222a
Apply 4097 update
7 years ago
Alibek Omarov
efe8ddf151
Fix missing const-qualifiers in engine code. Fix qboolean/int mixing in interface implementations(int is preferred). Replace long by int in COM_RandomLong.
7 years ago
Alibek Omarov
e8d13cd0d5
Rebrand from Xash3D to Xash3D FWGS. Add _format() attrubute to print-like functions
7 years ago