Anders Jenbo
96e1d5caba
Fix spell properties incorrectly being capped at 8
...
Fixes #3187
Revert #3021
destParam3 had been typed ad Direction, but is also sometimes used for
other values.
4 years ago
qndel
d81de165d4
code cleanup ( #3235 )
4 years ago
Anders Jenbo
b4f699f0a3
Validate item network messages
4 years ago
Anders Jenbo
a56452eec3
Validate player sync
4 years ago
Andrew James
e0aafcaf7d
Use correct pointer arithmetic in OnLevelData ( #3094 )
...
Previously was incrementing the pointer 5 places due to the way pointers to complete objects are handled.
see https://en.cppreference.com/w/cpp/language/operator_arithmetic#Additive_operators
4 years ago
KPhoenix
2c8d29b10d
Update msg.cpp
...
Fixes problem where you cannot cast spell on other players in the dungeon
4 years ago
Anders Jenbo
1024973093
Fix equipping weapon not updating current spell
...
Fixes #3074
4 years ago
Anders Jenbo
31ba8e2bc6
Validate additional network messages
5 years ago
obligaron
6b8b6ba77b
Fix OnSpellTile check ( #3021 )
5 years ago
Anders Jenbo
5b3ac35fad
Validate 2 more network messages
5 years ago
Anders Jenbo
403f507d79
Validate spell network messages
5 years ago
Anders Jenbo
614fba6af6
Cleanup package slicing
5 years ago
Anders Jenbo
2443a188a9
Validate param1 messages
5 years ago
Anders Jenbo
ab1046072b
Clean up NetSendCmdString
5 years ago
Anders Jenbo
58257c7cdc
Remove unessesery null checks in multi_msg_add
5 years ago
Anders Jenbo
d227ff33da
Validat input to a few simple network messages
5 years ago
Anders Jenbo
7001ead263
Mark network pointers as const
5 years ago
Anders Jenbo
2708b16c05
Validate CMD_SYNCDATA ( #2968 )
5 years ago
qndel
873e426952
fix light stealing ( #2992 )
5 years ago
Juliano Leal Goncalves
9ac324b8e1
🐛 Prevent manipulation of spell type being cast ( #2856 )
...
This prevents frame-perfect manipulated of the spell type after the command has already been sent.
5 years ago
ephphatha
b12de6fe12
Use scoped enum for Direction
...
Identified and removed an instance of Direction being used as an argument for a bool parameter
Removed a single-use temporary variable being cast from sprite frame to direction to size_t
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Fix alignment of WalkSettings array
5 years ago
Juliano Leal Goncalves
ce23cd6bce
🚚 Rename 'QuestData' global array to 'QuestsData'
...
This will allow us to disambiguate from the 'QuestDataStruct' after the 'Struct' suffix is removed.
5 years ago
Juliano Leal Goncalves
0d3d4c14f6
🚚 Rename 'Dead' concept to 'Corpse' everywhere ( #2808 )
5 years ago
Juliano Leal Goncalves
0baffa6e33
🚚 Rename 'QuestStruct' to 'Quest'
5 years ago
Juliano Leal Goncalves
bbf529c65a
🚚 Rename 'PlayerStruct' to 'Player'
5 years ago
Anders Jenbo
4044fadeb5
Clean up some players references
5 years ago
BC Ko
4df798808e
2435 refactor global variable Items part 2 ( #2673 )
5 years ago
Anders Jenbo
d7c6d8b189
Use proper Direction type for AddMissile midir
5 years ago
qndel
3d92b6eea5
Rewrite manashield into not using a missile
5 years ago
qndel
d76158ca03
reflect without missile! ( #2659 )
5 years ago
Anders Jenbo
d4bd409472
Deduplicate manashild/reflect code
5 years ago
Anders Jenbo
5ddcd90ff9
Make NetSendCmdQuest() take a quest structure as input
5 years ago
BC Ko
1a6562e16d
Merge pull request #2648 from bcko/2435_refactor_Missiles_3
5 years ago
qndel
7ba878fd4d
fix reflect on loading
5 years ago
BC Ko
14b7e3bdc1
2435 refactor missiles part 2 ( #2635 )
5 years ago
BC Ko
e5434e03b3
2602 Use range-based for-loop for Quests ( #2612 )
5 years ago
qndel
6ce32f8d6a
fix incorrect golem removal
5 years ago
Anders Jenbo
9b2cbbdb38
Clean up checks for open warp gates
5 years ago
qndel
1538f84ddc
apply enum and fix invalid check
5 years ago
qndel
640d32a750
make ReadySpellFromEquipment have correct item data
5 years ago
Juliano Leal Goncalves
f64521a722
🐛 Centralize readied spell update on equipment change
...
This ensures all equipment changes will undergo the check to see if the readied spell needs to change, including auto-equipping items on pickup and with shift click.
5 years ago
Anders Jenbo
9c4e34f988
Player by reference
5 years ago
Anders Jenbo
8ba3bbb6a4
Have PosOkPlayer take PlayerStruct as input ( #2430 )
5 years ago
Vladimir Olteanu
9ac3e49d6e
msg.cpp: get rid of excessive indentation
5 years ago
Vladimir Olteanu
d8da397795
Use std::list to manage TMegaPkts
5 years ago
Anders Jenbo
0889780923
Remove more usage of miniwin types
5 years ago
Vladimir Olteanu
dd4b70a24b
* dthread.cpp: replace TMegaPkt with DThreadStruct
...
* consistently use uint8_t for pnum
* get rid of checks that never fail
* use atomic_bool for dthread_running
* dthread: eliminate superfluous memory copies
* Pass correct-sized buffer to DeltaExportJunk
* dthread: Fix crash when list is empty
* DthreadHandler: eliminate delay
* Dthread: use SdlMutex and lock_guard
* dhtread: explicitly provide T for lock_guard
5 years ago
Anders Jenbo
78124fb389
Add GolemHoldingCell
5 years ago
Anders Jenbo
9c0760e780
♻️ Clean up various checks in monster logic
5 years ago
Vladimir Olteanu
7271e5558c
Get rid of unchecked calls to malloc
5 years ago