obligaron
b2750c99e7
Call SyncPortals() only once for a level load
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
ephphatha
b8b220311a
Remove AvailableItems, no longer required
4 years ago
ephphatha
18658f6a42
Remove duplicate argument to DeleteItem
4 years ago
ephphatha
f60cc3bfd9
Update calls to DeleteItem to use ActiveItems inline
...
This highlights how all (except one) call sites duplicate the i argument. With the exception of the use in msg.cpp this can be treated as a offset into activeItems and doesn't care about the real index.
4 years ago
ephphatha
55a52b82c2
Use unsigned types for Items array indexes consistently
...
Actual type used varied based on context, this addresses some type conversion warnings.
4 years ago
ephphatha
84302c45f3
Extract common logic for saving items to a save file
...
This was duplicated for saving from the menu and transitioning to a new level
4 years ago
ephphatha
71e39dda6f
Extract common logic for loading items from a save
...
This was duplicated for loading a save from the menu and transitioning to a new level
4 years ago
Gleb Mazovetskiy
720d210d95
utils/mpq* -> mpq/*
4 years ago
Gleb Mazovetskiy
23406b6fc5
Replace mpqapi.h with the MpqWriter class
...
This is a cleanup, heading in the direction of allowing us to reuse
some of the code between reading and writing MPQs.
4 years ago
Gleb Mazovetskiy
b8affd5fe5
Fix a few build warnings
4 years ago
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG ( #3135 )
4 years ago
qndel
bee45d61d6
make monster lights compatible with vanilla
4 years ago
Anders Jenbo
b77686213a
🐛 Correctly wipe temp data from saves
...
Fixes #3167
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
e567953bc9
Sharing automap exploration in multiplayer
4 years ago
Anders Jenbo
0e3c1321fb
🐛 Fix scavenger groups getting stuck
4 years ago
Thomas Christlieb
7013ee8349
rename variable in new code
4 years ago
ThomasChr
d72e590183
add light source for berserk monster
4 years ago
Anders Jenbo
3be7ffbc48
🐛 Adjust save buffer to a safe value
4 years ago
Anders Jenbo
b4f699f0a3
Validate item network messages
4 years ago
Anders Jenbo
a0009b0ff8
Correct name of IPL_LASTDIABLO
5 years ago
Anders Jenbo
0c5bdf5dbf
🐛 Reject items that would cause an OOB to
5 years ago
obligaron
74a1810576
Remove most uses of BFLAG_MONSTLR
5 years ago
obligaron
c7dec38b96
Player: rename _pVar4 to spellLevel
5 years ago
obligaron
c3c91f6e28
Remove _pVar5 and most uses of BFLAG_PLAYERLR
5 years ago
Siddharth singh chouhan
bcb332b7b0
Move documentation from implementations to declarations
5 years ago
Juliano Leal Goncalves
379a27b64a
♻️ Convert 'ItemType' enum to enum class
...
🎨 Rename 'ItemType' elements to enum class standards
5 years ago
Juliano Leal Goncalves
6323539fcc
🚚 Rename 'item_type' enum to 'ItemType'
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
obligaron
836bb92e8e
MoveMissileAndCheckMissileCol: Call CheckMissileCol only once for a tile and target
5 years ago
ephphatha
af61b21a23
Add whitespace around loops for readability
5 years ago
ephphatha
cdf2db1d94
SaveItem by reference
5 years ago
ephphatha
8ab229e7e8
LoadItemData by reference
5 years ago
ephphatha
78fa540ec9
Save/LoadObject by reference
5 years ago
Juliano Leal Goncalves
4ea9cd539e
🚚 Rename 'PortalStruct' struct to 'Portal'
5 years ago
Juliano Leal Goncalves
a91074d470
🚚 Rename 'LightStruct' struct to 'Light'
5 years ago
Juliano Leal Goncalves
0d3d4c14f6
🚚 Rename 'Dead' concept to 'Corpse' everywhere ( #2808 )
5 years ago
Juliano Leal Goncalves
1f7cfcf945
♻️ Replace 'ReturnLvlX' and 'ReturnLvlY' globals with single 'ReturnLvlPosition'
5 years ago
Juliano Leal Goncalves
940a120bf9
♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition'
5 years ago
Juliano Leal Goncalves
6e1d05187e
🚚 Rename 'MissileStruct' to 'Missile'
5 years ago
Juliano Leal Goncalves
ef74b6f92d
🚚 Rename 'ObjectStruct' to 'Object'
5 years ago
Juliano Leal Goncalves
20db8d1a11
🚚 Rename 'MonsterStruct' to 'Monster'
5 years ago
Juliano Leal Goncalves
69a7cb66d4
♻️ Convert 'MON_MODE' enum to 'MonsterMode' enum class
5 years ago
Juliano Leal Goncalves
bb2dfdfb73
🚚 Rename 'ItemStruct' to 'Item'
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
Anders Jenbo
866bc56008
Clean up remaning usages of Missiles[]
5 years ago
BC Ko
536121f038
rename _miVar# to var#
5 years ago
BC Ko
4df798808e
2435 refactor global variable Items part 2 ( #2673 )
5 years ago