Commit Graph

565 Commits

Author SHA1 Message Date
Dethrace Labs 6af5c19f1b Merge branch 'main' of https://github.com/dethrace-labs/dethrace into opponent_matching 2025-10-10 20:05:12 +13:00
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
Dethrace Labs ac8d99c4c2 fix compile errors in opponent.c on modern compiler 2025-10-10 19:57:29 +13:00
Dethrace Labs 4b1afc1618 ProcessCompleteRace matching 2025-10-10 17:08:46 +13:00
Dethrace Labs 7f2c20de50 MaterialFromIndex matching 2025-10-09 17:38:35 +13:00
Dethrace Labs a0e679e06f FarFromLine2D effectively matching 2025-10-09 16:50:04 +13:00
Dethrace Labs ca850f3888 CopStartPointInfo effectively matching 2025-10-09 09:32:51 +13:00
Dethrace Labs 697bda321f ToggleOneWayNess matching 2025-10-09 09:13:28 +13:00
Dethrace Labs 4c75798d1a DeleteOppoPathNodeAndJoin matching 2025-10-09 09:11:41 +13:00
Dethrace Labs 6ab02b1a72 ShowSectionInfo2 matching 2025-10-09 09:07:33 +13:00
Dethrace Labs e64e3f4ef3 PullOppoPoint matching 2025-10-09 07:23:13 +13:00
Dethrace Labs 88d0ff2e29 RecalcNearestPathSectionSpeed matching 2025-10-08 15:12:04 +13:00
Dethrace Labs e5739d06ab DropNodeOnNodeAndStopElasticating matching 2025-10-08 14:56:48 +13:00
Dethrace Labs 5750a0a666 DropDeadEndNode matching 2025-10-08 14:54:16 +13:00
Dethrace Labs 17228e2bbd InsertAndElasticate effectively matching 2025-10-08 14:52:52 +13:00
Dethrace Labs c66e6536a3 DropElasticateyNode matching 2025-10-07 14:14:06 +13:00
Dethrace Labs 8921347760 WriteOutOppoPaths effectively matching 2025-10-06 17:32:49 +13:00
Dethrace Labs b6ec95b653 ShowOppoPaths matching 2025-10-06 12:26:58 +13:00
Dethrace Labs b48b524580 ConsistencyCheck effectively matching 2025-10-06 12:25:21 +13:00
Dethrace Labs a6ac8f6c24 RebuildOppoPathModel effectively matching 2025-10-06 12:05:53 +13:00
Dethrace Labs d531e28942 ReallocModelFacesAndVertices effectively matching 2025-10-06 11:47:12 +13:00
Dethrace Labs 67065ade28 MakeCube matching 2025-10-06 09:27:18 +13:00
Dethrace Labs 8d038acea3 MakeSection matching 2025-10-06 09:25:00 +13:00
Dethrace Labs 5cea39b84f CalcNegativeXVector effectively matching 2025-10-04 18:09:31 +13:00
Dethrace Labs 32bba9c88a RecalcNearestPathSectionWidth matching 2025-10-03 22:35:37 +13:00
Dethrace Labs 2d7f86925a RecalcNearestPathSectionSpeed effectively matching 2025-10-03 22:19:02 +13:00
Dethrace Labs add05b0417 InsertThisNodeInThisSectionHere matching 2025-10-03 21:09:32 +13:00
Dethrace Labs e3ad6e61c1 DeleteSection matching 2025-10-03 20:46:26 +13:00
Dethrace Labs ba90f7bc9b RepairOpponentsSystems matching 2025-10-03 19:55:42 +13:00
Dethrace Labs 87f5b3e5c7 RecordOpponentTwattageOccurrence effectively matching 2025-10-03 19:36:28 +13:00
Dethrace Labs 926dcc74d3 GetOpponentsSectionMaxSpeed matching 2025-10-03 19:24:24 +13:00
Dethrace Labs a67985120a GetOpponentsSectionMinSpeed effectively matching 2025-10-03 15:14:17 +13:00
Dethrace Labs 212ae53758 GetOpponentsSectionWidth matching 2025-10-03 14:59:44 +13:00
Dethrace Labs 55523ec8b3 GetOpponentsSectionStartNodePoint matching 2025-10-03 14:58:07 +13:00
Dethrace Labs abb728db7c GetOpponentsSectionFinishNode matching 2025-10-03 14:55:00 +13:00
Dethrace Labs d0253aa023 GetOpponentsSectionStartNode matching 2025-10-03 14:35:04 +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
Dethrace Labs ecfea9d767 GetOpponentsNextSection matching 2025-10-03 14:16:05 +13:00
Dethrace Labs c3950b6162 GetOpponentsFirstSection matching 2025-10-03 14:08:31 +13:00
Dethrace Labs 83d4045825 GetOpponentsRealSection matching 2025-10-03 14:05:54 +13:00
Dethrace Labs 16d88a21a2 GetOpponentSpecFromCarSpec matching 2025-10-03 14:01:32 +13:00
Dethrace Labs 7cd5afd754 GetDriverName matching 2025-10-03 13:57:40 +13:00
Dethrace Labs 19a6fde158 GetCarSpec effectively matching 2025-10-03 12:24:52 +13: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 5c2c7f847b GetCarCount matching 2025-10-03 11:51:34 +13:00
Dethrace Labs e257f862ce WakeUpOpponentsToTheFactThatTheStartHasBeenJumped matching 2025-10-03 11:37:40 +13:00
Dethrace Labs 48479f3719 DisposeOpponents effectively matching 2025-10-03 05:38:22 +13:00