Commit Graph

463 Commits

Author SHA1 Message Date
Carlo Bramini f03832e8c8 NET: fix type mismatch for sa_len
setsockopt() and recvfrom() accept socklen_t and not an unsigned int.
See also PR #493
2025-10-10 20:01:59 +13:00
Carlo Bramini 5787ec29b0 WIN32: replace LOG_DEBUG() with LOG_DEBUG2()
Compiling dethrace rises this error when it is compiled with MinGW:

dethrace/src/harness/os/windows.c: In function 'OS_GetAdapterAddress':
dethrace/src/harness/os/windows.c:440:47: error: macro 'LOG_DEBUG' passed 2 arguments, but takes just 1
  440 |         LOG_DEBUG("name: %s", aa->FriendlyName); // Skip if name is provided and doesn't match FriendlyName
      |                                               ^

According to the content of dethrace/src/harness/include/harness/trace.h, I replaced with LOG_DEBUG2() macro and the problem has been solved.
2025-10-10 19:59:56 +13:00
BSzili a9f82ef975 French localization support 2025-10-10 19:59:18 +13:00
Anonymous Maarten 12a48ffddf
Fix demo compatibility (#494)
* Fix demo compatibility

Regression introduced in 81116169cf

* Decode gDecode_string (use macro's to show its definition)

* Fix IWANTTOFIDDLE cheat for demo

* Add demo support to tools/decode_datatxt.py
2025-10-03 01:23:11 +00:00
Anonymous Maarten 9c82a405bd
Add SDL3 platform driver (#454) 2025-10-02 22:56:47 +00:00
Anonymous Maarten ba41413396
Original (beta) demo does not have high resolution data (#497) 2025-10-02 22:56:28 +00:00
Dethrace Labs b6feda3b43 fixes cd audio not stopping during cutscenes 2025-10-01 14:34:21 +13:00
Dethrace Labs 426abacacc fixes incorrect EdgeU assembly match 2025-10-01 14:33:29 +13:00
Carlo Bramini 67a3da8eca WIN32: fix undefined reference to GetAdaptersAddresses on MinGW
This PR fixes issue #487.
2025-10-01 12:09:58 +13:00
BSzili 26a5d1813f Replace leftover magic numbers with NETMSGID_* enums 2025-10-01 12:08:14 +13:00
Anonymous Maarten 93c3699f2c
Fix compile errors with modern gcc (#480) 2025-09-26 16:15:25 +00:00
Dethrace Engineering Department 28b62c3b17
Update README.md 2025-09-26 11:34:52 +12:00
Dethrace Labs 4059a1282f bump BRender 2025-09-20 15:55:21 +12:00
Dethrace Labs efbc6ccfbd Reflex2D matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 2977ee40cc StretchMark 98% matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 3651325cdc SkidMark 98% matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 5e81408978 InitSkids matching 2025-09-20 15:55:21 +12:00
Dethrace Labs fab790f11d "ApplyPhysicsToCars 90% matching" 2025-09-20 15:55:21 +12:00
Dethrace Labs e7a43aec79 GetNetPos matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 2095fee8ba GetNonCars effectively matching 2025-09-20 15:55:21 +12:00
Dethrace Labs b15b9a786c ResetOldmat matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 22a000548d InterpolateCars 95% matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 2e64d1e5a1 FinishCars 94% matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 05f45b47d0 CalcEngineForce effectively matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 09aecbc839 ControlOurCar 97% matching 2025-09-20 15:55:21 +12:00
Dethrace Labs f2eda6906e RememberSafePosition 92% matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 12c31e8c6b GetFacesInBox 95% matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 195ba76b55 InitialiseNonCar matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 097269f848 SetInitialPosition matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 41885465bf InitialiseCar2 matching 2025-09-20 15:55:21 +12:00
Dethrace Labs 709be87bc9 fetch reccmp-report via http instead of checkout for forks 2025-09-20 13:17:25 +12:00
Dethrace Labs 80c2add845 show hash of reccmp-report 2025-09-19 22:40:48 +12:00
Anonymous Maarten 5bd38fe359 Divide with RAND_MAX in [FI]RandomBetween
On Linux, RAND_MAX == 2147483647 (0x7fffffff). So RAND_MAX + 1 = 0x80000000 == -2147483648.
Because of this, [FI]RandomBetween returned negative numbers for positive inputs
2025-09-19 09:45:06 +12:00
Anonymous Maarten eff7bec0b0 LoadInterfaceStrings: don't call fclose with a NULL FILE pointer 2025-09-19 09:45:06 +12:00
Dethrace Labs 85b44d0163 fix publish reccmp report in github actions 2025-09-19 08:36:21 +12:00
Dethrace Labs eb14cdf7bb use pull_request_target in github actions 2025-09-19 08:14:27 +12:00
Dethrace Labs 3763ddcf9d RenderTrack 84% 2025-09-12 12:16:11 +12:00
Dethrace Labs 2b89d3d0bc DrawColumns matching 2025-09-12 12:16:11 +12:00
Dethrace Labs 778e83b38f DrawColumns effectively matching 2025-09-12 12:16:11 +12:00
Dethrace Labs ee9c802cd1 FindNonCarsCB 92% matching 2025-09-12 12:16:11 +12:00
Dethrace Labs 7c8ae97ed7 StripBlendedFaces effectively matching 2025-09-12 12:16:11 +12:00
Dethrace Labs a65c0e14f1 XZToColumnXZ matching 2025-09-12 12:16:11 +12:00
Dethrace Labs cd158fa670 BlendifyMaterialTablishly matching 2025-09-12 10:39:49 +12:00
Dethrace Labs 9adbff7c5a AlreadyBlended matching 2025-09-12 10:39:49 +12:00
Dethrace Labs 78b94cdd25 DRistrcmp effectively matching 2025-09-12 10:39:49 +12:00
Dethrace Labs 4fedb2c6b2 EncodeFileWrapper effectively matching 2025-09-12 10:39:49 +12:00
Dethrace Labs c7a3524247 EncodeFile matching 2025-09-12 10:39:49 +12:00
Dethrace Labs 4efc5a0e0c EncodeLine2 matching 2025-09-12 10:39:49 +12:00
Dethrace Labs 077ba9986d DecodeLine2 matching 2025-09-12 10:39:49 +12:00
Dethrace Labs 0bfc9c409c StripCR matching 2025-09-12 10:39:49 +12:00