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
bbf529c65a
🚚 Rename 'PlayerStruct' to 'Player'
5 years ago
qndel
045921813b
some useless code removal
5 years ago
Anders Jenbo
9217e8c7f0
Test CreatePlayer
5 years ago
Anders Jenbo
069249f318
🚚 Move local function to anonymous namespace i-p
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
8a7ec56d3a
Player by reference part 2
...
This mostly change player to be by reference instead of by index.
But additionally it does stript checks for gold in the belt, move some
value types to the initialization and short circute a few functiongs.
5 years ago
obligaron
d97131349e
Unify player_graphic memory handling
5 years ago
Juliano Leal Goncalves
d55cd99dd5
🚚 Rename 'direction' enum to 'Direction'
5 years ago
obligaron
b94e599f5e
ADL: Advance skipped Frames in SetNewAnimation and remove logic from PM_XYZ
5 years ago
Anders Jenbo
c11945e62b
🎨 Fix line endings
5 years ago
obligaron
1de46a8495
Rename member variables
5 years ago
obligaron
0b5183f63e
Introduce AnimationInfo
...
Update AnimationInfo.DelayLen comment
5 years ago
obligaron
08233cc31b
player_test - Fix wrong extern definition for PM_DoGotHit
5 years ago
Anders Jenbo
275404029e
♻️ Cleanup player temp variables
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
53a3657b29
🚚 Move tests to a standard folder
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
aba0a8fc44
✅ Clean up name spacesage in tests
5 years ago
Anders Jenbo
69b11edace
[hellfire] 🐛 Apply the zen fix
...
Going over the change history of Hellfire and Diablo appears that the
difference was an early version of the fix from patch 1.07
5 years ago
Anders Jenbo
a2656637e4
🎨 Format source
5 years ago
Anders Jenbo
17803d5923
♻️ Apply proper types to PlayerStruct
5 years ago
Anders Jenbo
c71efb5960
✅ Better assertions on item generation tests
...
[Diablo/Hellfire] Also clear PkItemStruct when calling PackItem() to
avoid garbage data ending up in the saves.
5 years ago
Anders Jenbo
94e7ee9496
Add test for PM_DoGotHit
...
This maintains the lack of zen combination in Hellfire but uses the
frame spacing from Diablo for both.
5 years ago