staphen
6a565d3755
Further improve simulated mouse interaction
3 years ago
staphen
198dec9412
Iron out interactions between simulated mouse movement and character movement
3 years ago
staphen
d7908d82f4
Always remove release actions from padmapper regardless of whether the action can be invoked
3 years ago
staphen
4579324726
Ensure that padmapper actions are in the correct order after initialization
3 years ago
staphen
33d4cc2544
Properly handle d-pad events for mouse simulation
3 years ago
staphen
28a9f0e8b5
Forward SDL_JOYHATMOTION events in FetchMessage_Real()
3 years ago
Gleb Mazovetskiy
17bcca539f
Fix InfoString-related stack-use-after-free
3 years ago
Gleb Mazovetskiy
0498d7d3a7
Fix compilation warnings
3 years ago
Gleb Mazovetskiy
88289bb02e
Fix HAS_KBCTRL build
3 years ago
staphen
c83f7d3958
Avoid copy construction of PadmapperOptions::Action
3 years ago
staphen
21bd760bfa
Bypass CMD_PUTITEM when triggering CMD_OPENHIVE or CMD_OPENGRAVE
3 years ago
obligaron
b3be4ab65e
TimeoutCursor: Only restore previous cursor when cursor is not already changed
3 years ago
obligaron
a0bba9b152
Only color cycle animations if game logic is processed
3 years ago
obligaron
5eaee56030
Avoid dramatically speed up in solo multiplayer
3 years ago
staphen
702fedbc54
Remove ConsumeSpell() from AddMissile() functions
3 years ago
obligaron
d59a7e2794
Combine SyncDropItem and SyncPutItem
3 years ago
obligaron
ba65d5fbff
SyncPutItem: Always use passed coordinates for item position
3 years ago
staphen
b8ceade79e
Forward touch events from FetchMessage_Real()
3 years ago
obligaron
d0c1aba463
Don't process get request item commands after start changing level
3 years ago
staphen
3049421008
Include runes in CanUseScroll() validation
3 years ago
staphen
0f74370a99
Move gamepad logic from FetchMessage() to GameEventHandler()
3 years ago
Gleb Mazovetskiy
179ae009df
Improve logic and fix for old compilers
3 years ago
staphen
e67e4934cc
Add padmapper for gamepad customization
3 years ago
Gleb Mazovetskiy
0f6a4be8ab
trigs.cpp: Fix build error
3 years ago
Gleb Mazovetskiy
b5f788cb33
trigs.cpp: Optimize & clean up the data structures
...
1. Use appropriate types.
2. Do not use an end marker for static arrays (their length is known).
3 years ago
Gleb Mazovetskiy
6d7d95c5da
drlg_l2: Use WorldTilePosition for Room/HallNode
3 years ago
Gleb Mazovetskiy
759ca7f055
`WorldTileRectangle/Size`
...
Adds a custom sized type for the world tile rectagle.
This allows us to better express intent.
It also allows us to make certain globals smaller, e.g. `THEME_LOC`.
3 years ago
Gleb Mazovetskiy
57e267e990
button.png: Arrange sprites horizontally
...
87x2262 -> 1131x174
This makes the file smaller and also makes the texture fit
on devices with 2048x2048 max texture size (Fixes #5403 ).
`button.png` updated with:
convert -crop 87x174 button.png +append out.png
optipng -o9 out.png
mv out.png button.png
3 years ago
obligaron
795a43dd89
Add Arena Support
3 years ago
Gleb Mazovetskiy
f7335e9df7
Xbox nxdk: Set gamepad type
...
Set the gamepad type to Xbox for the original Xbox.
3 years ago
obligaron
c11463b615
Use cursor position for MouseActionType::OperateObject
3 years ago
obligaron
496689bb87
Fix incorrect SOLData for L1 arched/pillar Pieces (BlockLight and BlockMissile is missing)
3 years ago
Gleb Mazovetskiy
41f43ea3f5
Support unpacked MPQs from devilutionx-mpq-tools
...
https://github.com/diasurgical/devilutionx-mpq-tools produces an unpacked MPQ
with all the graphics converted to CLX and the unused files removed.
This is primarily useful on RAM-constrained platforms, such as PS2,
because it eliminates the MPQ overhead.
Adds a build option to load from such unpacked directories instead of the MPQ.
These directories are searched for in the same locations
where the MPQs would be searched for otherwise.
Example directory layout:
* /usr/local/share/diasurgical/devilutionx/diabdat/ -- unpacked and converted diabdat.mpq
* /usr/local/share/diasurgical/devilutionx/hellfire/ -- unpacked and converted hellfire MPQs (all of them merged into 1 directory)
* /usr/local/share/diasurgical/devilutionx/fonts/ -- unpacked fonts.mpq
* /usr/local/share/diasurgical/devilutionx/pl/ -- unpacked pl.mpq
These directory structure is produced by calling `unpack_and_minify_mpq`
3 years ago
Andrew James
db90fd7956
remove sentinel check now that loop operates on known bounds
...
Co-authored-by: Stephen C. Wills <swills@gridprotectionalliance.org>
3 years ago
ephphatha
ea3ecbd619
Use _item_indexes type where appropriate
3 years ago
ephphatha
236b672687
Move increment of monster drop index to caller
...
This allows the caller which combines unrelated values into a single return value to take ownership of the transformation.
3 years ago
ephphatha
3e8715a3fd
Remove pointless increment/decrement of indexes returned by RndVendorItem
3 years ago
ephphatha
fc2a158a8f
Tidy up code dealing with temporary arrays
3 years ago
ephphatha
6c32945571
Use _item_indexes enum values instead of magic numbers
3 years ago
ephphatha
28d685ea85
Save and restore item seed when downgrading potions from steal trap
3 years ago
ephphatha
a5b5441794
Restore item seed when converting potions to rejuvenation potions
3 years ago
Gleb Mazovetskiy
08d446b2db
Towner: Optimize to save 16 bytes (88->72)
3 years ago
Gleb Mazovetskiy
ec12d7ce44
Player: Optimize to save 40 bytes
3 years ago
Gleb Mazovetskiy
7154ec15af
Object: Reorder to save 16 bytes (104->88)
3 years ago
Gleb Mazovetskiy
ac26f3a23b
Item: Optimize to save 16 bytes (312->288)
3 years ago
Gleb Mazovetskiy
b5d3f3561b
AnimationInfo: Reorder to save 8 bytes (32->24)
...
```
pahole --reorganize --show_reorg_steps --show_only_data_members -C AnimationInfo build/test/liblibdevilutionx_so.so
```
3 years ago
Gleb Mazovetskiy
12c7dab3f3
Define gamepad type for SDL1 handhelds
3 years ago
Gleb Mazovetskiy
6150973c1b
Clean up gamepad icons code
...
1. Correctly defined button strings.
2. Clean up the printing code.
3. Use translatable strings for the generic gamepad type.
3 years ago
Nicholas Calaway
eb45857422
Gamepad icons ( #5357 )
3 years ago
obligaron
c80fcf42c8
Fix infravision lasts forever ( #5404 )
3 years ago