Commit Graph
602 Commits
Author SHA1 Message Date
Eric Robinson 37daef5de3 Fix Resurrect Illegal Player State/Crash (#8349) 2025-12-11 20:12:40 -05:00
Eric Robinson dd7a06365c Remove unused CMD_ATTACKXY 2025-12-06 14:09:19 -05:00
Eric Robinson 7e8173e6ff Add Player hasNoLife helper (#8302) 2025-12-03 05:12:42 +00:00
staphen 9affb1a79b Process network packets independent of the game's tick rate 2025-11-29 22:49:11 +01:00
Yuri Pourre d8b1f00cb5 Load towners via tsv 2025-11-29 17:29:21 +01:00
LP f295e67b9f Add multiplayer event logging 2025-11-25 04:07:49 +01:00
staphen 942bebb664 Fix warnings about mismatched sign in comparisons 2025-10-26 00:30:16 +02:00
Gleb Mazovetskiy 1bbe8bfe08 SDL3: Even more migration 2025-10-09 01:28:37 +01:00
Gleb Mazovetskiy 842b23803f SDL3: Use endianness swap helpers throughout 2025-10-09 01:28:37 +01:00
Anders Jenbo 1c76897f2c Apply simple const rules using clang-tidy 2025-08-16 01:21:36 +02:00
obligaron 98f097997c Fix MSVC related warnings with sdl2 2025-06-29 13:58:07 +01:00
staphen bbc728a327 Remove overzealous validation logic in spell message handlers 2025-06-09 17:00:26 +02:00
staphen a6ad6e7d1c Validate messages that should not be sent in town 2025-05-25 15:46:01 +02:00
staphen 308399e31e Fix errors where Monster::enemy references garbage memory 2025-05-22 05:18:36 +02:00
staphen 1180f60d1e Reduce cognitive complexity in DeltaLoadLevel() 2025-05-18 09:01:43 +02:00
staphen 4b570e3c34 Reduce cognitive complexity in OnAutoGetItem() 2025-05-18 09:01:43 +02:00
staphen c9565f1f88 Reduce cognitive complexity in OnGetItem() 2025-05-18 09:01:43 +02:00
staphen fbb0668e90 Reduce cognitive complexity in OnRequestGetItem() 2025-05-18 09:01:43 +02:00
staphen 22c2195993 Rename SendPacket() to BufferMessage() and eliminate recursion 2025-05-18 09:01:43 +02:00
staphen 46c95f2c7b Use range-based for loops 2025-05-18 09:01:43 +02:00
staphen 6ee55435b9 Avoid using else after return 2025-05-18 09:01:43 +02:00
staphen 53e6da63a0 Avoid duplicating type name when casting 2025-05-18 09:01:43 +02:00
staphen 1becbfc455 Fix bugprone implicit conversions 2025-05-18 09:01:43 +02:00
staphen c9a8037837 Eliminate C-style casting 2025-05-18 09:01:43 +02:00
staphen 338af819c5 Apply case style suggestions for identifier names 2025-05-18 09:01:43 +02:00
staphen bb78f48043 Fix includes in sync.h 2025-05-11 04:47:25 +01:00
staphen e3460a072d Do not spawn monsters in town 2025-05-10 20:01:53 -04:00
staphen 8fe94efd47 Fix endian issues related to quest synchronization 2025-05-10 20:01:53 -04:00
staphen 8cf2380960 Fix ASAN alignment issues related to spawned monster deltas 2025-05-10 20:01:53 -04:00
staphen b761d3fef2 Validate network data when importing quest deltas 2025-05-10 20:01:53 -04:00
staphen 5e561d709a Validate network data when importing portal deltas 2025-05-10 20:01:53 -04:00
staphen 0d334eff3b Eliminate fatal errors in message handler functions 2025-05-10 20:01:53 -04:00
staphen 84546f85d4 Validate length of incoming deltas 2025-05-10 20:01:53 -04:00
staphen 1a2e0eb2e5 Validate length of incoming network messages 2025-05-10 20:01:53 -04:00
staphen f15548213d Fix size of sgRecvBuf 2025-05-10 20:01:53 -04:00
staphen a569d6808e Unify monster sync packet validation and delta validation 2025-05-10 20:01:53 -04:00
staphen 47bb51cd45 Validate item deltas on import 2025-05-10 20:01:53 -04:00
staphen 7831ed6ca1 Isolate monster sync packet validation using Monsters array 2025-05-10 20:01:53 -04:00
obligaron 3a1eb6bed7 Decouple Golems from Players and use SpawnMonster for Golem 2025-04-23 19:03:01 -04:00
obligaron 0ea60bf46c Replace CMD_KILLGOLEM with CMD_MONSTDEATH 2025-04-23 19:03:01 -04:00
staphen 63ee653d2f Fix CmdIdString() based on changes to the _cmd_id enum 2025-04-22 05:38:44 +02:00
Yggdrasill 176819a072 Make RecreateItem() take whole dwBuff flag as argument (#7870) 2025-03-21 15:16:39 +00:00
Gleb Mazovetskiy d94bc424df sgOptions -> GetOptions()
In C++, globals initialization order accross translation units is not
defined. Accessing a global via a function ensures that it is initialized.

This will be needed for #7638, which will statically initialize change
handlers after the Options object has been initialized.
2025-01-13 11:57:25 +00:00
staphen 7a6a6a6c32 Don't send spell level in spell casting network message 2025-01-12 16:28:38 +01:00
Gleb Mazovetskiy a49b1f2d58 Extract Is{Any,None}Of out of engine.hpp
Untangles some of the dependencies
2025-01-08 09:54:56 +09:00
Eric Robinson cdd22626b4 Fix Knockback direction (#7093) 2024-09-23 00:46:33 +00:00
Stephen C. Wills cfe9a8ccdd Introduce xoshiro RNG to generate dungeon seeds (#7030) 2024-09-17 23:34:44 +02:00
qndel 24f108f193 fix many typos (#7322) 2024-08-09 21:13:42 +02:00
Gleb Mazovetskiy e9c29fa806 Switch to ankerl::unordered_dense 2024-08-05 01:17:13 +01:00
staphen 753633f2ad Don't validate items in Single Player 2024-06-24 04:01:34 +02:00