Gleb Mazovetskiy
8a71b9ded3
libsmacker: Add `smk_palette_updated` changes
...
This is a DevilutionX-specific patch to enable efficient rendering
5 years ago
Gleb Mazovetskiy
d2a025e171
libsmacker: Add .editorconfig
5 years ago
Gleb Mazovetskiy
5a5c56c99b
Update libsmacker to 1.2.0r43
5 years ago
obligaron
9964bd9e49
Fix existing missiles check for Guardian/Townportal/Rune
5 years ago
Siddharth singh chouhan
bcb332b7b0
Move documentation from implementations to declarations
5 years ago
staphen
09b8afba4e
Fix OOB error in DrawString
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
Vladimir Olteanu
bcd7f89319
Have SDLWrap::AllocPalette allocate space for 256 colors by default
5 years ago
Vladimir Olteanu
3cb70f5042
Simplify SDLWrap with NonNull
5 years ago
Vladimir Olteanu
b87058a717
Error checking for GetOutputSurface
5 years ago
Vladimir Olteanu
d4d89077cd
Don't free PalSurface when it was obtained from SDL_GetVideoSurface
5 years ago
Vladimir Olteanu
4edafd2e37
Make RendererTextureSurface a SDLSurfaceUniquePtr
5 years ago
Vladimir Olteanu
aab7bf6e91
Make Palette a unique ptr
5 years ago
Vladimir Olteanu
e14504ae56
SVidPlayContinue: use SDLWrap::ConvertSurface*
5 years ago
Vladimir Olteanu
79d24fa840
Use SDLWrap::CreateRGBSurfaceWithFormat in LoadArt
5 years ago
Vladimir Olteanu
d226885672
Introduce SDLWrap::AllocPalette
5 years ago
Vladimir Olteanu
4a9ebf1460
Use SDLUniquePtr
5 years ago
Vladimir Olteanu
cc9ea97e0f
Introduce SDLWrap::CreateTexture
5 years ago
Vladimir Olteanu
e952137ac9
credits.cpp: get Rid of RenderText
5 years ago
Vladimir Olteanu
e9063c578f
Introduce SDLWrap::CreateRGBSurfaceWithFormatFrom
5 years ago
qndel
1f61b683a6
fix chat line wrapping
5 years ago
Siddharth singh chouhan
ba161f623e
Move documentation from implementations to declarations. ( #2858 )
5 years ago
Vladimir Olteanu
b853559573
Make CreateFileStream return optional, rather than unique_ptr
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
5607c58daa
🏷️ Add 'PickRandomlyAmong' function that picks one value from a set of values randomly
...
This will be used in a few places where we previously used a raw integer random to index into a local array for selection, simplifying that type of logic to a single statement.
5 years ago
Juliano Leal Goncalves
e39b33971f
♻️ Leverage 'IsAnyOf'
5 years ago
Juliano Leal Goncalves
5a69380074
♻️ Leverage 'ItemType' enum
5 years ago
Juliano Leal Goncalves
6323539fcc
🚚 Rename 'item_type' enum to 'ItemType'
5 years ago
Sid672
a12a7511a9
Functional documentation moved
5 years ago
qndel
a0461bd1c0
stop displaying 0's in tiledata debug command
5 years ago
qndel
d05316c67d
tiledata debug command
5 years ago
qndel
a3603d824e
debug X toggle
5 years ago
Anders Jenbo
db1f8495d8
Fix updating color cyceling
5 years ago
Juliano Leal Goncalves
094f308d22
🐛 Use 'Spell' instead of 'RSpell' for clearing used staff charges
...
Readied spell can be swapped to something else in between the cast and the hit frame, resulting in incorrect removal.
This is how currently belt and inventory scrolls are checked so we are now using a consistent strategy.
5 years ago
Juliano Leal Goncalves
776a3d4e84
🐛 Use 'Spell' instead of 'RSpell' for clearing used inventory scrolls
...
Readied spell can be swapped to something else in between the cast and the hit frame, resulting in incorrect removal.
This is how currently belt scrolls are checked so we are now using a consistent strategy.
5 years ago
Sid672
84c919f20f
Move doc from restrict.cpp to header
5 years ago
Anders Jenbo
e68c8cc834
Reuse EntranceBoundaryContains in portal logic
5 years ago
Juliano Leal Goncalves
8a93087fb7
♻️ Extract quest entrance boundary check to a member function on QuestStruct
5 years ago
Juliano Leal Goncalves
3e24a58ba6
♻️ Replace 'questxoff' and 'questyoff' globals with single 'questEntranceOffsets'
5 years ago
ephphatha
67ecea1a42
Always set the monster animation when ChangeAnimationData is called
...
Required updating AnimationInfo to handle being passed 0 for the total framecount, previously it would call clamp with min > max which was invalid.
5 years ago
ephphatha
8e155e011f
Rename helpers on Monster to match AnimationInfo
5 years ago
ephphatha
b62ee6a66e
Remove use of direction for towners with a single facing
5 years ago
ephphatha
87a33097a0
Rename ScrollDirection enum to follow convention
...
Pretty sure the backing type can be left to the default as well but I haven't had the time to investigate where it's used fully.
5 years ago
ephphatha
9ef77cb428
Use scoped enum for Direction16.
...
Allows renaming the members to share names with Direction members when
representing the same conceptual direction.
5 years ago
ephphatha
956dcc7fc9
Add helper for selecting animation sprites from Direction
...
The use on PlayerAnimationData could be further simplified by adding a helper to PlayerStruct but that'd be introducing another changed file to the PR... Something for later.
The monster version is only used once thanks to the helpers added in previous commits. This was mainly to highlight the similarity between PlayerAnimationData and AnimStruct, AnimStruct could inherit/extend PlayerAnimationData without much trouble.
5 years ago
ephphatha
dda9a5dda0
Remove redundant else statements in L1*OperateDoor functions
5 years ago
ephphatha
9c9426821d
Update MoveMissilePos to use Direction and Displacement types.
...
Remove explicit cases falling through to default case in MoveMissilePos
5 years ago
ephphatha
4158651eb4
Simplify IsPathBlocked logic
...
This could make use of path.cpp::path_solid_pieces if it weren't for path directions being completely unrelated to the Direction enum values.
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
Anders Jenbo
064a70a9b1
Fix double encoding of monster names
5 years ago