ephphatha
db1d776539
Deduplicate PItem and DItem
4 years ago
staphen
ca93d852d2
Fix comparison checking for invalid quest state in DeltaSyncJunk
4 years ago
obligaron
234a053863
Change Missiles Array to std::list
4 years ago
KPhoenix
34266ff4c7
Show correct death animation ( #3953 )
...
Shows death animation based on what armor you are wearing while dying. Dropping items on death results in showing light armor animation.
4 years ago
staphen
5b21e0188f
Fix order of operations during game initialization
4 years ago
obligaron
35dc64312e
Show preview CelSprite for player actions (Introduce PlayerStruct.pPreviewCelSprite and UpdatePreviewFrame)
4 years ago
KPhoenix
a08026097a
Chat Interface Revision ( #3840 )
...
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
obligaron
635f378722
Add OptionEntry Experience Bar
4 years ago
ephphatha
18658f6a42
Remove duplicate argument to DeleteItem
4 years ago
ephphatha
baa1cd65c5
Make FindGetItem return an index into ActiveItems
...
This allows the calling code in DeltaLoadLevel to behave the same as every other use of DeleteItem, making it possible to remove the duplicate argument and ensure that the ActiveItems/AvailableItems arrays are treated appropriately.
4 years ago
ephphatha
1d560601f2
Remove duplicated argument to InvGetItem
...
This was obscuring efforts to track how ActiveItems and Items are referenced, hopefully can switch back to the Item& soon.
4 years ago
Anders Jenbo
da05319909
Correct OnNewLevel validation
4 years ago
ephphatha
87651aa2f5
Check the item at the target position before searching all items
4 years ago
Andrew James
8104432db4
Use object reference (and self-id lookup) for BreakBarrel
4 years ago
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG ( #3135 )
4 years ago
Gleb Mazovetskiy
3d308983a8
Migrate to libmpq
...
libmpq is a much simpler alternative to StormLib for reading MPQ archives.
We use our own fork of libmpq: https://github.com/diasurgical/libmpq
Impact:
* DevilutionX is now a lot more portable. Unlike StormLib, libmpq only
needs platform-specific code for Windows.
* Locks around file access **removed** (instead we duplicate the file descriptor for streamed audio only).
* RAM usage is **300 KiB** lower than StormLib.
* Stripped release linux_x86_64 binary is **32 KiB** smaller.
* Amiga build now hangs instead of crashing.
4 years ago
qndel
b00feb4c3d
sync monster mWhoHit and hitpoints
4 years ago
Andrew James
021c7a652f
Add helpers for checking object type ( #3357 )
...
* Add helper to test if an object is a trap source
* Add helper to test if an object is a barrel
* Add helper to test if an object is a crucifix
* Add helpers to check if an object is a chest (and statuses)
* Add helpers to check if an object is a (basic) shrine
4 years ago
Andrew James
7dcc6d15f7
Update some quest object activation functions to use references ( #3356 )
...
- rename with a hopefully more descriptive name
4 years ago
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