staphen
bb78f48043
Fix includes in sync.h
10 months ago
staphen
e3460a072d
Do not spawn monsters in town
10 months ago
staphen
8fe94efd47
Fix endian issues related to quest synchronization
10 months ago
staphen
8cf2380960
Fix ASAN alignment issues related to spawned monster deltas
10 months ago
staphen
b761d3fef2
Validate network data when importing quest deltas
10 months ago
staphen
5e561d709a
Validate network data when importing portal deltas
10 months ago
staphen
0d334eff3b
Eliminate fatal errors in message handler functions
10 months ago
staphen
84546f85d4
Validate length of incoming deltas
10 months ago
staphen
1a2e0eb2e5
Validate length of incoming network messages
10 months ago
staphen
f15548213d
Fix size of sgRecvBuf
10 months ago
staphen
a569d6808e
Unify monster sync packet validation and delta validation
10 months ago
staphen
47bb51cd45
Validate item deltas on import
10 months ago
staphen
7831ed6ca1
Isolate monster sync packet validation using Monsters array
10 months ago
obligaron
3a1eb6bed7
Decouple Golems from Players and use SpawnMonster for Golem
11 months ago
obligaron
0ea60bf46c
Replace CMD_KILLGOLEM with CMD_MONSTDEATH
11 months ago
staphen
63ee653d2f
Fix CmdIdString() based on changes to the _cmd_id enum
11 months ago
Yggdrasill
176819a072
Make RecreateItem() take whole dwBuff flag as argument ( #7870 )
1 year ago
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.
1 year ago
staphen
7a6a6a6c32
Don't send spell level in spell casting network message
1 year ago
Gleb Mazovetskiy
a49b1f2d58
Extract Is{Any,None}Of out of engine.hpp
...
Untangles some of the dependencies
1 year ago
Eric Robinson
cdd22626b4
Fix Knockback direction ( #7093 )
2 years ago
Stephen C. Wills
cfe9a8ccdd
Introduce xoshiro RNG to generate dungeon seeds ( #7030 )
2 years ago
qndel
24f108f193
fix many typos ( #7322 )
2 years ago
Gleb Mazovetskiy
e9c29fa806
Switch to ankerl::unordered_dense
2 years ago
staphen
753633f2ad
Don't validate items in Single Player
2 years ago
Eric Robinson
a30f7c0b8e
Randomize Unique Item Generation (Reverse compatible) ( #7060 )
...
Co-authored-by: staphen <staphen@gmail.com>
2 years ago
matheusgomes28
7848ab731e
Splitting CheckInvPaste() into smaller functions ( #6984 )
2 years ago
staphen
9e682afe13
Rename glSeedTbl
2 years ago
staphen
ab601eeb11
Apply Hellfire spellbook validation to PItem packet handling
2 years ago
obligaron
2a3ef25f9e
SpawnMonster: Override old monster delta information
2 years ago
Gleb Mazovetskiy
25c1c5b372
Fix a few -Wsign-compare warnings
2 years ago
obligaron
51ab0106ab
Sync monster spawn in multiplayer
2 years ago
obligaron
cd840513b9
Introduce Player::isLevelOwnedByLocalClient
2 years ago
obligaron
ccaf8d1dac
Use uint8_t in msg/multi/sync and fix MSVC warnings ( #6856 )
...
* Fix MSVC warnings in msg.cpp
* Move TBuffer to multi.cpp
* Fix MSVC warnings in multi.cpp
* SNet* change databytes to size_t
* msg/muli/sync: Change playerId to uint8_t
2 years ago
obligaron
fae6b3d817
Change Player::getId() and MyPlayerId to uint8_t
2 years ago
obligaron
81d738e303
Introduce Monster::occupyTile
2 years ago
obligaron
79a43dc1de
Introduce AddMissile overloads specific for player and monster
2 years ago
KPhoenix
b8738ab4cf
Validation: Validate Item Drop Packets
2 years ago
Gleb Mazovetskiy
e350d9be06
Remove SNetGet/SetLastError
...
The only named code that was ever set is `STORM_ERROR_NO_MESSAGES_WAITING`.
There was also a call in `menu.cpp` which as far as I can tell is not
needed (if it is, it should be replaced by something else).
2 years ago
obligaron
b810c808f5
Msg: Change OnXYZ to get a Player reference instead of a player index
2 years ago
Anders Jenbo
bb2e189327
Convert _sfx_id in to class enum
2 years ago
qndel
de721e4ccc
[skip ci] fix typos
2 years ago
Gleb Mazovetskiy
5355146d51
Use structured bindings
3 years ago
ephphatha
e6890cc5cc
Move MaxCharacterLevel to playerdat and add helpers for the various uses
3 years ago
ephphatha
14639cd096
Replace _pNextExper with getter method
...
No real need to persist this value
3 years ago
ephphatha
da76e131e4
Add getter/setter for character levels to ensure _pNextExper stays synced
3 years ago
ephphatha
d92d152576
Use unsigned type for character levels
3 years ago
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
3 years ago
Gleb Mazovetskiy
c19bfe87fa
Remove utils/stdcompat/algorithm.hpp
3 years ago
Gleb Mazovetskiy
62d067b653
Remove utils/stdcompat/abs.hpp
3 years ago