Gleb Mazovetskiy
88bbf4f913
Improve DiabloMsg handling
...
1. Simplified implementation.
2. Now adjusts the box size to fit the content (e.g. when wrapping
failed or when there are too many lines).
2 years ago
Gleb Mazovetskiy
d1d27c8368
Rename error -> diablo_msg
2 years ago
tetektoza
a387f73aa7
Refactor: simplify logic in items.h
...
Currently some of the "isItem" functions add an unnecessary check of
isEmpty which is redundant, because a few lines lower they also check
for item type inside the same object.
This patch removes those unnecessary checks.
2 years ago
Gleb Mazovetskiy
9e2608bd98
Fix DiabloMsg rendering for CJK
...
Fixes #6675
2 years ago
Gleb Mazovetskiy
1bcdd17e34
Reduce verbose SDL_WINDOWEVENT event log spam
2 years ago
Gleb Mazovetskiy
270a064fe6
Fix "Level Up" label in French
...
Fixes #6615
2 years ago
Gleb Mazovetskiy
4a02188588
Fix -Wmissing-field-initializers in playerdat.cpp
...
```
playerdat.cpp:262:1: warning: missing initializer for member ‘devilution::PlayerData::skill’ [-Wmissing-field-initializers]
262 | };
```
2 years ago
tetektoza
41c5175444
Clip parsed level from debug console to 50
...
Currently, in givelvl command user can type lvl above 50, which is a
level cap. This patch clips it to 50, so we can prevent an accidential
freeze of the game caused by NetSendCmd loop if user types a really big
number.
2 years ago
Anders Jenbo
706010ee45
Add Lua support
2 years ago
KPhoenix
e18b37a7df
Bugfix: Automap Grates not rendering correctly
2 years ago
staphen
b82081d883
Prevent softlock when removing Auric Amulet
2 years ago
Anders Jenbo
9c6902b2c4
Fix missing return value in tcp_server::send()
2 years ago
staphen
ed7b8e794f
Fix missing return value in tcp_server::StartSend()
2 years ago
KPhoenix
db1ab771d6
Bugfix: Indestructible Items at Smith Repair
2 years ago
Bubio
80d8524979
Updated Japanese translation.
2 years ago
Anders Jenbo
b318d702e5
Enable VCPKG dependency graph
3 years ago
staphen
444ac9d820
Use memmove when shifting data in high/low priority buffers
3 years ago
Eric Robinson
ffc7190898
Automap: Add minimap display option ( #6612 )
3 years ago
staphen
9d34cb2795
Remove frame queue exceptions from the network layer
3 years ago
KPhoenix
fec9bc7f40
Bugfix: Speed spell on item swap
3 years ago
Eric Robinson
4c7e2edd06
Automap: Transparency ( #6607 )
3 years ago
Anders Jenbo
d725fdb4f3
Add screen reader support
3 years ago
Gleb Mazovetskiy
fa155d4ffd
Dungeon tiles: Port over some cleanups from #6636
3 years ago
Gleb Mazovetskiy
3477d2f33f
Revert "dun_render: Add `DunTileColorMap` for baked light"
...
This reverts commit 827eb9705d .
3 years ago
Gleb Mazovetskiy
48a66c29af
Win9x: Fix MinSizeRel and binary stripping
3 years ago
Gleb Mazovetskiy
2e6847556e
Bump libfmt
3 years ago
Eric Robinson
ae926c1e99
Debug: Add DrawVision to automap ( #6649 )
3 years ago
Stephen C. Wills
064d7ca003
Fix starting spell for Sorcerer ( #6650 )
3 years ago
staphen
e5f626ccf9
Fix edge cases for packing empty items
3 years ago
staphen
13b5fb82fa
Build ASIO without exceptions
3 years ago
Gleb Mazovetskiy
c7fefd74b6
`LoggedFstream`: Fix `OpenFile` error check
...
Fixes #6626
3 years ago
KPhoenix
13cd49b423
Automap: Draw grates as doted line
3 years ago
Gleb Mazovetskiy
848f234aed
Add automap type cycling controls
...
Makes cycling the automap type separate from toggling it on/off.
The TAB key can still be used for quick on/off as usual, while
the new Cycle key ("m" by default) can be used to switch between available
display types.
`Get/NextDebugMonster` debug keybind changed to "v" to avoid a conflict.
3 years ago
ephphatha
4e6517e54c
load starting loadout dynamically
3 years ago
ephphatha
56a6889225
Use generic code to create starting items for new characters
3 years ago
ephphatha
d13bed2a78
Fix broken test case
3 years ago
ephphatha
24a20ce8e2
Extract uses of MyPlayer to prevent future crashes in tests/game init
3 years ago
ephphatha
55a21b7467
Move the base hit amount to a table in playerData.cpp
...
Bringing blockBonus along for the ride as it seems to fit (and renaming to align with the current convention)
3 years ago
ephphatha
6a8f4b12da
Get base block bonus from data struct instead of storing a copy
3 years ago
ephphatha
5d50b5520d
Add PlayerData lookup helper to avoid manual casts
...
This lets us remove the PlayersData global, and we can use a helper in the player class for convenience.
3 years ago
ephphatha
28fd553266
Use HeroClass in UI functions
3 years ago
ephphatha
78529414fb
Move asset path to PlayersSpriteData
...
It's closely related to the values in that table so seems a better fit than PlayerData
3 years ago
Gleb Mazovetskiy
14e32bd8f3
`DrawDungeon`: Remove `dRendered` check
...
This check was only needed when the tile to the east was drawn first.
Checks for this with a single bool rather than a whole bitset.
3 years ago
Gleb Mazovetskiy
bd0986ee73
Update NDK to v26
...
This version of NDK finally comes with updated libc++.
The last update to libc++ in NDK was in early 2020.
This update brings lots of improvements and bugfixes from upstream
libc++.
NDK 26 only support SDK 21+, so we bump `minSdkVersion` as well.
3 years ago
Gleb Mazovetskiy
13f6e34ebe
Use an empty path for ini-based path detection
...
Avoids search paths duplication (`"./"` vs `""`)
3 years ago
Gleb Mazovetskiy
74977f68f6
Windows 9x: Return "" from `SDL_GetPrefPath`
...
Reduces noisy logging in stderr.txt.
On Windows9x there is no such thing as PrefPath, so there
is no point in trying to get/create one.
Also fixes `SDL_GetBasePath()` to return the directory path rather than
the exe path.
3 years ago
Gleb Mazovetskiy
a44d1dfbf3
`ResizeFile`: Fix `SetFilePointer` return type check
...
`SetFilePointerEx` returns 0 on failure but `SetFilePointer` returns
`INVALID_SET_FILE_POINTER`.
3 years ago
Gleb Mazovetskiy
a7a2b92421
tcp_client: Fix `SDL_SetError` call
...
Can't pass `std::string_view` for the `%s` placeholder.
3 years ago
Gleb Mazovetskiy
827eb9705d
dun_render: Add `DunTileColorMap` for baked light
...
Refs #6631
3 years ago
ephphatha
c1f3dcb705
Use safer versions of random number functions instead of GenerateRnd
3 years ago