5bcd573821
engine: remove goldsrc meta delta table reinitialization
2024-10-14 06:54:41 +03:00
c5a291d9c7
engine: minor refactoring
2024-10-14 05:17:21 +03:00
fe2a4d0428
engine: common: net_encode: remove DT_SIGNED_GS flag just in case
2024-10-10 23:40:23 +03:00
ba7c789ec9
engine: common: add GoldSrc delta support
2024-10-08 03:28:02 +03:00
bc8bf9a9fb
engine: add const on delta functions
2024-09-30 04:00:28 +03:00
953ad98a16
engine: workaround buggy stringop-overflow
2024-09-30 04:00:28 +03:00
d56e53a347
Replace hardcoded functions names by __func__ macro
...
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
2024-06-19 06:53:42 +03:00
ca9d3d262a
engine: common: net_encode: directly call MSG_ReadSBitLong for DT_TIMEWINDOW_*, don't do the multiplier check for DT_TIMEWINDOW_BIG
2024-04-20 20:48:01 +03:00
a08f5e439d
engine: common: net_encode: fix comparing DT_TIMEWINDOW_* fields
...
Fixes: 35783bcec2
("engine: common: net_encode: fix inaccuracy in DT_TIMEWINDOW_* encoding")
2024-04-19 01:51:25 +03:00
87ac217887
engine: common: net_encode: add bitmask operation to delta tests
2024-04-18 16:44:15 +03:00
ac46164a6e
engine: common: net_encode: implement basic delta tests
2024-04-17 20:27:22 +03:00
6d12d84e94
engine: common: net_encode: apply post_multiplier to integer fields, like GoldSrc does
2024-04-17 06:23:22 +03:00
2a18cde60c
engine: common: net_encode: fix applying integer clamp before multiplier
...
Without this fix, data still might overflow after applying multiplier
and potentially send incorrect data.
2024-04-17 06:16:44 +03:00
35783bcec2
engine: common: net_encode: fix inaccuracy in DT_TIMEWINDOW_* encoding
...
By avoiding double rounding, we get more accurate time on client when timebase
gets rounded down and target time gets rounded up:
```
>>> round(123.1) - round(124.51)
-2
>>> round(123.1 - 124.51)
-1
```
2024-04-17 06:09:52 +03:00
350d8ccb7b
engine: common: cvar: unused variables cleanup
2023-12-05 10:46:26 +03:00
6ea8d141d9
engine: common: net_encode: fix usage of new Delta_ClampIntegerField, minor fixes
2023-06-28 14:30:06 +03:00
bdc2390d41
Revert "engine: common: net_encode: rewrite Delta_CompareField to be more efficient"
...
This reverts commit 82addf11bb
.
2023-06-28 14:26:42 +03:00
acc113309c
Revert "engine: common: net_encode: fix Delta_CompareField to include integer clamping, in case if no updates happen in significant bits"
...
This reverts commit 6a7b330463
.
2023-06-28 14:26:40 +03:00
5afda72290
engine: common: net_encode: simplify Delta_ClampIntegerField
2023-06-28 05:07:53 +03:00
6a7b330463
engine: common: net_encode: fix Delta_CompareField to include integer clamping, in case if no updates happen in significant bits
2023-06-28 04:47:12 +03:00
f5b9826fd9
engine: common: net_encode: directly access delta description struct than searching for it every time
2023-06-27 19:56:32 +03:00
82addf11bb
engine: common: net_encode: rewrite Delta_CompareField to be more efficient
2023-06-27 18:06:24 +03:00
26959cd280
engine: common: net_encode: use stdint.h types in Delta_CompareField
2023-06-06 00:20:56 +03:00
b16fa8eddc
public: remove Q_strcat and Q_strcpy, and patch the code that uses it
2023-04-26 05:20:45 +03:00
8d6ac3fad4
engine: common: net_encode: cosmetic changes, static-ize functions, move private macros
2023-04-18 05:16:57 +03:00
d4610e30fd
engine: common: net_encode: fix strict aliasing by converting it to use float_bits_t union
2023-03-14 21:29:35 +03:00
0e286f31c5
engine: client: fix DT_TIMEWINDOW_* signedness
2022-01-24 17:31:36 +03:00
ea5937bce0
engine: net_encode: remove naive clientdata/weapondata copy, only copy fields explicitly listed in deltalst
2022-01-14 14:46:52 +03:00
6e4ab74694
engine: net_encode: split delta "no changes" copy into separate function
2022-01-14 14:33:13 +03:00
f9d0fba05f
wscript: remove duplicated branches diagnostic for good
2022-01-04 09:01:08 +03:00
01b2266b7e
engine: net_encode: minor code style fix
2022-01-04 04:30:47 +03:00
29a8bfb1dc
engine: common: fix ParseFile calls
2021-10-08 17:31:32 +03:00
SNMetamorph
09d647182d
engine: net_encode: equality comparisions replaced with Q_equal macros
2021-07-09 14:57:49 +03:00
SNMetamorph
8b76ab93fb
engine: net_encode: made delta more GoldSrc consistant
2021-07-09 14:57:49 +03:00
6063149b93
engine: match DT_TIMEWINDOW_* behaviour to GoldSrc: it's always signed and it's more of an integer than float value
2021-06-07 17:31:54 +03:00
a28d15e519
engine: match DT_TIMEWINDOW_* behaviour to GoldSrc: it's always signed and it's more of an integer than float value
2021-06-07 17:30:40 +03:00
ddd48c420b
engine: decrease instanced baseline index by minus one to avoid zero offset which interpreted as no baseline at all
2021-06-01 21:52:33 +03:00
23974d24c3
engine: try to avoid broken -Werror=duplicated-branches for old GCCs 2
2021-03-24 19:11:17 +03:00
868947cbb4
engine: try to avoid broken -Werror=duplicated-branches for old GCCs
2021-03-23 23:49:08 +03:00
331a2046c8
engine: net: fix delta incorrect casts when field is signed
2021-03-10 21:51:21 +03:00
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:]]\+$//' {} \+
```
2021-01-04 20:55:10 +03:00
abd9778ef3
engine: common: simplified strings operations.
2020-11-28 23:20:14 +03:00
e3b547c8a9
public: rename mathlib to xash3d_mathlib.
2020-02-12 14:32:26 +05:00
3a416636f1
engine: mark GAME_EXPORT's
2020-01-19 08:15:54 +07:00
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
2019-11-24 03:52:08 +03:00
b175d8a0cb
engine: net_encode: due to bug in GCC <9, disable duplicated-branches here
2019-10-05 02:22:10 +03:00
2f8fec6b70
Remove trailing spaces, convert mistakenly put spaces to tabs. The most useful commit ever.
2019-07-19 20:23:08 +03:00
4beba75159
engine: fix various compiler warnings
2019-07-13 23:25:03 +03:00
f2c927906f
Merge 4511 update
2019-06-17 07:36:46 +03:00
b16529cc65
Apply 4511 update
2019-06-17 07:05:36 +03:00