qndel
53f89fb9d9
debug fps command ( #3418 )
4 years ago
Gleb Mazovetskiy
e9a9daa794
DrawString: Stop allocating
...
Switch to a state-machine UTF-8 decoder from the branchless one.
This allows us to avoid copying the string on every `DrawString` call.
4 years ago
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG ( #3135 )
4 years ago
Gleb Mazovetskiy
3d308983a8
Migrate to libmpq
...
libmpq is a much simpler alternative to StormLib for reading MPQ archives.
We use our own fork of libmpq: https://github.com/diasurgical/libmpq
Impact:
* DevilutionX is now a lot more portable. Unlike StormLib, libmpq only
needs platform-specific code for Windows.
* Locks around file access **removed** (instead we duplicate the file descriptor for streamed audio only).
* RAM usage is **300 KiB** lower than StormLib.
* Stripped release linux_x86_64 binary is **32 KiB** smaller.
* Amiga build now hangs instead of crashing.
4 years ago
NiteKat
3f85fdae37
Add mWhoHit Indicators
...
Adds mWhoHit indicator graphics to the monster health bar.
4 years ago
qndel
f9838d849d
dont allow casting berserk on berserked monster
4 years ago
qndel
b6e7c3818b
fix hellfire shareware monk
4 years ago
qndel
c26501f59e
fix sound crashes ( #3403 )
4 years ago
qndel
b00feb4c3d
sync monster mWhoHit and hitpoints
4 years ago
qndel
46ed79ad42
add megatiles to tiledata ( #3211 )
4 years ago
staphen
d669f8ce19
Remove call to SetRndSeed() from OperateFountains()
4 years ago
qndel
bf1df33aa8
dont allow casting berserk on berserked monster
4 years ago
Andrew James
021c7a652f
Add helpers for checking object type ( #3357 )
...
* Add helper to test if an object is a trap source
* Add helper to test if an object is a barrel
* Add helper to test if an object is a crucifix
* Add helpers to check if an object is a chest (and statuses)
* Add helpers to check if an object is a (basic) shrine
4 years ago
qndel
e087b109ea
fix hellfire shareware monk
4 years ago
qndel
47561716b3
fix sound crashes ( #3403 )
4 years ago
Gleb Mazovetskiy
fe0009708d
ArtDraw: Bounds-check top and left
...
This fixes the glitch when a line leaves the viewport in the scrolling
quest text.
Refs #3388
4 years ago
Gleb Mazovetskiy
a1125e83d7
ArtDraw: Bounds-check top and left
...
This fixes the glitch when a line leaves the viewport in the scrolling
quest text.
Refs #3388
4 years ago
Gleb Mazovetskiy
9dd0474a52
DrawArt: Fix bounds check ( #3395 )
...
The bounds checks were performed against the global screen dimensions
instead of the output buffer dimensions.
Also includes some minor cleanup of DrawArt.
Fixes #3388
4 years ago
staphen
5e49d08ba5
Close SDL_RWops in LoadPNG()
4 years ago
Gleb Mazovetskiy
117695489b
DrawArt: Fix bounds check ( #3395 )
...
The bounds checks were performed against the global screen dimensions
instead of the output buffer dimensions.
Also includes some minor cleanup of DrawArt.
Fixes #3388
4 years ago
staphen
b5d96665c9
Enable SDL1 build option for Windows
4 years ago
staphen
7782621ee4
Close SDL_RWops in LoadPNG()
4 years ago
Gleb Mazovetskiy
19cbe65ed8
packet.h: Fix `-Wunused-variable` ( #3379 )
4 years ago
Gleb Mazovetskiy
12b73076b8
Fix build error in plrctrl.cpp ( #3374 )
...
Follow-up to #3370
4 years ago
Gleb Mazovetskiy
4e8c2e3644
Fix line endings in a few files
4 years ago
Stephen C. Wills
423441c3dc
Fix speedbook navigation on gamepad
4 years ago
staphen
884f9ed46b
[Virtual Gamepad] Turn player when stand button is pressed
4 years ago
qndel
5a35e0640b
shorter & better MeasureSolidHorizontalBounds
4 years ago
Andrew James
e87b67aa8a
Remove no-op assignment ( #3362 )
4 years ago
Anders Jenbo
6bb0c4db07
Mark store owner names for translation
4 years ago
Andrew James
7dcc6d15f7
Update some quest object activation functions to use references ( #3356 )
...
- rename with a hopefully more descriptive name
4 years ago
ephphatha
d2940e8f7f
Update GetObjectStr to take a const Object&
...
Brings it in line with GetItemStr
4 years ago
ephphatha
5f112576a4
move variable declaration into correct scope
4 years ago
joewis
9cd6f206ad
Disable shift-clicking of items you don't have stats to wear
4 years ago
Anders Jenbo
b21e92baae
Mark store owner names for translation
4 years ago
Gleb Mazovetskiy
64a88343e8
Refactor: Use item iterators in 7 more places
4 years ago
ephphatha
6d545868d2
Move objectIsDisabled to a member function
...
While it does reference a global configuration option it's mainly concerned with the properties of the object itself, so makes sense to be a member of the object class.
4 years ago
ephphatha
782e07d967
Refactor DrawObject to avoid repeated Objects lookup
...
The check if the object position is offset is not strictly necessary as a displacement of {0, 0} remains the same after the world/screen transform.
4 years ago
ephphatha
e98b80c992
Remove declaration of private/anonymous function
...
Never used outside objects.cpp so it was rightly moved into the anonymous namespace, but the header was not updated at the time.
4 years ago
Andrew James
76ef0e8128
Dedupe SyncNakrulRoom code ( #3325 )
4 years ago
qndel
bee45d61d6
make monster lights compatible with vanilla
4 years ago
Anders Jenbo
e880f25c85
Fix viewing into in Hellfire Shareware mode
4 years ago
Anders Jenbo
c0c97bf224
[gamepad] Operate object as last option for primery action
...
Fixes #3307
4 years ago
Anders Jenbo
2d986430be
Allow for slightly better item name generation
4 years ago
obligaron
851ed8d557
Start attract mode only if a intro is present
4 years ago
staphen
f090da3ca8
[Gamepad] Prevent player applying stat points to maxed stat
4 years ago
staphen
e2408bc6bc
[Virtual Gamepad] Set primary action button graphic to apply in char panel when applying stat points for level up
4 years ago
Anders Jenbo
af433d8890
Check for null spells
4 years ago
Anders Jenbo
e9bc05063c
[translation] Allow reordering of prefix
4 years ago
qndel
124675386d
refresh panel when chat is active
4 years ago