Anders Jenbo
dbfd1fc91f
Revert "dun_render: Add `DunTileColorMap` for baked light"
...
This reverts commit 827eb9705d .
3 years ago
Anders Jenbo
31bd9790d8
Revert "Rendering: Unify and optimize pixel blitters"
...
This reverts commit 397529bf0f .
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
staphen
98c0e8f2da
Don't use inheritance with tl::expected
3 years ago
Gleb Mazovetskiy
a95bcc10f6
Windows 9x MinGW build ( #6619 )
3 years ago
staphen
7855dae582
Indicate network validation success or failure in iteminfo
3 years ago
Eric Robinson
bc3a421622
Debug: Revise Text ( #6625 )
3 years ago
Gleb Mazovetskiy
4c87f335ac
`DrawDungeon`: Move checks out of `DrawObject/Item`
...
Avoids calling `FindObjectAtPosition` and similar pre-checks twice.
3 years ago
Gleb Mazovetskiy
e5c426c315
Make `IsWall` easier for the compiler to inline
...
This appears to be a very hot function.
Makes it fully inlineable (even in Debug mode).
3 years ago
Eric Robinson
058a0d132d
Debug: Improved iteminfo command ( #6623 )
3 years ago
KPhoenix
6dd8ce26a0
Debug: Convert DiabloMsg to EventPlrMsg
3 years ago
staphen
bb83d527d2
Change server_exception from dvlnet_exception to PacketError
3 years ago
staphen
d4b33685a2
Prefer ASIO functions that take error codes
3 years ago
Gleb Mazovetskiy
ab1546311a
`LoadClassAttributes`: Mandate field order
...
Makes parsing simpler.
Additional columns and rows are ignored.
3 years ago
Gleb Mazovetskiy
e090c8bf31
Extract some player attributes to data files
3 years ago
staphen
4a1da5a777
Fix minlvl when generating translated names for staves
3 years ago
Andrew James
bb16b93836
move definition of non-templated function to cpp file ( #6620 )
3 years ago
ephphatha
3fda0586bd
Add support for parsing fixed point decimal strings
3 years ago
ephphatha
f3de9d6e71
Use dedicated error enum for parsing failures
3 years ago
Gleb Mazovetskiy
040c4fe82f
Generalize support for Windows without wchar APIs
...
Replaces `NXDK` ifdefs that relate to the lack of wchar APIs
with the more general `DEVILUTIONX_WINDOWS_NO_WCHAR` ifdefs.
This should make it much easier to port to Windows 98.
3 years ago
Gleb Mazovetskiy
6d43898fad
Fix unused variable warnings for resampler name
...
If a resampler was not enabled, we'd get an unused variable warning:
warning: unused variable 'ResamplerSpeex' [-Wunused-const-variable]
constexpr char ResamplerSpeex[] = "Speex";
3 years ago
KPhoenix
95d2e9bd42
Update automap.cpp
3 years ago
Anders Jenbo
c9858c3c99
Fix spelling of fallthrough
3 years ago
Vinícius Ferrão
dff46af2de
Fixes testing characters from Hellfire showing up in Diablo
...
This commit restricts the use of Test Barbarian and Test Barb to the
Hellfire expansion only.
Signed-off-by: Vinícius Ferrão <vinicius@ferrao.net.br>
3 years ago
Eric Robinson
d63fa514ab
Automap: Pentagram ( #6606 )
3 years ago
Gleb Mazovetskiy
92cca421f9
Automap: Minor cleanups
3 years ago
Anders Jenbo
c2766d5da9
Fix warnings in automap.cpp
3 years ago
Gleb Mazovetskiy
4d0341afb5
net: Replace `packet_exception` with `tl::expected`
...
The network code still has ways to go to get rid of exceptions,
this is but a small first step.
Co-authored-by: Stephen C. Wills <staphen@gmail.com>
3 years ago
KPhoenix
ec8a9c8e61
Lava
3 years ago
Eric Robinson
c754d95ecc
Fix various Automap drawing issues ( #6555 )
3 years ago