Gleb Mazovetskiy
c2b5cad662
Fix SPLICONLAST for zero-based frame indexing
...
Follow-up to https://github.com/diasurgical/devilutionX/pull/4221
4 years ago
ephphatha
aab970dcde
Use GetIventorySize(Item) instead of SetICursor in inv.cpp
...
Also use mod for testing if item dimensions are even. Lets assume the release build can optimise this into a bitmask, probably wont need to do this anyway after a refactor.
4 years ago
ephphatha
5f788a6e04
Be explicit about the cursor overlap checks when acting on inventory cells
4 years ago
Stephen C. Wills
24813302c8
Fix frame index of Level Up icon ( #4442 )
4 years ago
Andrew James
8ed94ec365
Use zero-based arch indexes
...
fixes #4434
4 years ago
Andrew James
6dca3b50c1
Remove use of SetICursor and related globals from CheckStashPaste ( #4429 )
4 years ago
ephphatha
6a04d441c1
Expand hot area of stash cell to include bottom-right border
...
This matches the behaviour of inventory cell hit logic. Previously it was possible to click exactly on a border and be unable to put an item in the stash.
4 years ago
Gleb Mazovetskiy
a66ca44695
Zero-based frame indexing
...
Index frames starting at 0 instead of 1.
4 years ago
Gleb Mazovetskiy
127615c33f
Fix conversion of C-string literal to `char*`
4 years ago
Gleb Mazovetskiy
7f695c2835
Use SoundSample for music
...
Unifies audio handling between sound effects and music.
4 years ago
Gleb Mazovetskiy
ade8aba822
Fix some more warnings
4 years ago
Anders Jenbo
4b8eba1768
Update zerotier_native.h
4 years ago
Vladimir Olteanu
0e497b10f9
Use Miniset in drlg_l4
4 years ago
Gleb Mazovetskiy
21c64fd0af
Hardware cursor: Simplify initialization
...
Set the palette at load time.
Since we only support hardware cursors in SDL2, we can take advantage of
its reference-counted palettes.
4 years ago
Vladimir Olteanu
25d412d1ac
Remove duplicate code in DoLighting
4 years ago
Anders Jenbo
c5a3d138e0
Avoid using HeldItem in CheckInvSwap
4 years ago
staphen
33b27f630f
Clean up logic for 1-handed weapons in CheckInvPaste()
4 years ago
Gleb Mazovetskiy
9b8347996a
Fix OpenDingux/RetroFW builds
...
Follow-up to https://github.com/diasurgical/devilutionX/pull/4414 ,
which removed the `state` field.
4 years ago
Anders Jenbo
34201c7881
Do not set scaling hint with out a render
4 years ago
Anders Jenbo
ce5bd1df74
Show failing line in error messages
4 years ago
Anders Jenbo
d42fdd7745
Bump dvl_multicast_addr in preperation for 1.4.0
4 years ago
Anders Jenbo
b55ab39fe3
[ganepad] Do not repeat spell if modefier is pressed
4 years ago
Anders Jenbo
b9b7e9698a
Revert IPL_TARGAC description
...
Lets give it a better one later
4 years ago
Anders Jenbo
122ec0ac9d
Fix crash when switching to English
4 years ago
Anders Jenbo
c667e69554
[gamepad] Fix repeated spell casting getting stuck if there is no target
4 years ago
staphen
af9ab6d9e2
Restore durability to items in stores
4 years ago
Anders Jenbo
3792b9238c
[touch] Hook up action repeat
4 years ago
Anders Jenbo
66d7a3c222
[gamepad] Reuse repeat logic from mouse
4 years ago
Gleb Mazovetskiy
12de70550b
Fix an OOB in CEL/CL2 outline rendering
...
This OOB happened when rendering a sprite so that it is exactly
off-screen (touching the border but not visible) on top/bottom
while also being only partly off-screen on the left or right.
4 years ago
Gleb Mazovetskiy
b312edee49
Fix snd_deinit called even if snd_init failed
...
We were previously setting `was_sound_init` to true unconditionally
after calling `snd_init`.
However, `snd_init` can fail. Use `gbSndInited` instead.
4 years ago
Gleb Mazovetskiy
3488b2225c
Split up store title from "Your gold"
4 years ago
Gleb Mazovetskiy
a8b7de498c
Fix -Wswitch in misc_msg.cpp
4 years ago
Gleb Mazovetskiy
1209355a0b
Reduce debug log output of misc_msg
4 years ago
Gleb Mazovetskiy
0bddde1644
Reduce debug log output of MpqWriter
4 years ago
Gleb Mazovetskiy
235451ae5a
Reduce debug log output of Control
4 years ago
Gleb Mazovetskiy
82093bd255
Reduce debug log output of Keymapper
4 years ago
Gleb Mazovetskiy
4808d5c3ab
Reduce debug log output of OpenAsset
4 years ago
staphen
aad12e50e7
Do not process button held events in character panel
4 years ago
staphen
27b7a71132
Do not process held events for action buttons in main menu
4 years ago
staphen
075953a1f3
Enable use of L2/R2 on joystick
4 years ago
Gleb Mazovetskiy
1d4a7fa3a2
Fix `SoundSample::DuplicateFrom` mp3
...
Fixes #4392
4 years ago
Anders Jenbo
c68af7a5bf
[touch] Allow interacting with the spell book
...
Fixes #4393
4 years ago
Anders Jenbo
ee629e79e0
Fix crash from badly init stash
4 years ago
Anders Jenbo
3b86c7fac4
[touch] Spend stat points when clicking the buttons
...
Fixes #4387
4 years ago
staphen
d16c2f0086
Avoid recreating items in PutItem locally
4 years ago
qndel
e3019b43b0
fix armor pierce on uniques and display affix values
4 years ago
staphen
84475f29ae
[Windows] Recreate the whole window if the renderer would otherwise freeze
4 years ago
staphen
cf41911417
Use appropriate spell ID when quick casting from scroll or staff
4 years ago
staphen
2759eb130b
Update player's spell target when using quick cast on gamepad
4 years ago
Gleb Mazovetskiy
787bc54310
Only query cbutton state for button events
...
Similar to https://github.com/diasurgical/devilutionX/pull/4374
4 years ago