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
Gleb Mazovetskiy
016a06b99b
OpenDingux: Update toolchain versions
...
The new toolchains result in faster code thanks to using some
XBurst-specific instructions.
3 years ago
Oleksandr Kalko
9479f6aff8
Update gradle plugin to 7.3.1
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
Frazer Smith
1ce29164e2
Compress images
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
7071e3ae6c
clang + mold: Avoid "argument unused during compilation" warning
3 years ago
Gleb Mazovetskiy
7513b7ca8d
test/drlg_common_test.cpp: Fix line endings
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
staphen
96aedf0605
Update zlib to 1.2.13
3 years ago
staphen
8e71e18971
Reenable LTO for MinGW builds
3 years ago
Oleksandr Kalko
827efc618d
Update SDL2 used from source to v2.24.1
...
VCPKG already updated
Release notes: https://github.com/libsdl-org/SDL/releases/tag/release-2.24.1
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
f54a8f27ca
Update timedemo
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
a052742109
rg99.cmake: UNPACKED_MPQS, reduce thread stack size
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
ephphatha
22adb0a93f
Use counter to track number of candidates considered in TFit_Obj5
4 years ago
Gleb Mazovetskiy
d1e9f51c68
monster.{h,cpp}: Minor refactor
...
1. Extract some common code into functions.
2. Avoid some overly long lines.
4 years ago
Gleb Mazovetskiy
890295b6d3
In-game menu: Fix slider click handling
...
Previously, clicking on the slider close to the end
or near the start did nothing -- you'd have to actually
drag it to set the value to min or max.
Also cleans up the in-game menu code overall.
4 years ago
obligaron
9ee325e537
TFit_Obj5: Fix theme room generation when only last skipped candidate was valid
4 years ago
staphen
cd0205f8b9
Enable override for the externalNativeBuild's buildStagingDirectory
4 years ago
obligaron
69338e1733
Fix poison water entrace position
4 years ago