Epifanov Ivan
63d8e38de1
Auto-detect locale on PSVita. ( #2546 )
2021-08-09 20:29:41 +02:00
ThomasChr
4733b7015c
move lightsource along with monster when monster does teleport. fixes #1965
2021-08-09 20:14:01 +02:00
Anders Jenbo
370e573209
Prefer test versions of translations
2021-08-08 21:58:05 +02:00
Andrew James
8d9c46290d
Automap: Scoped enums and wrappers to minimise bitwise operations ( #2534 )
2021-08-08 19:25:05 +02:00
Anders Jenbo
26756b82dc
♻️ Split up DrawAutomapTile
2021-08-08 19:25:05 +02:00
Anders Jenbo
f2d858af4b
Cleanup magic numbers in automap.cpp
2021-08-08 19:25:05 +02:00
ephphatha
aec1491c98
Close devilutionx_mpq instead of trying to close patch_rt_mpq twice
2021-08-08 16:19:31 +02:00
Ivan Epifanov
cf5ab583d5
Open translations as read-only
2021-08-08 16:17:27 +02:00
Aaron Sun
6701b8a989
Fix attribute up (+) button doesn't work in special case
...
1) Open quest panel
2) Open character panel by click level up (+) button
2021-08-08 14:28:23 +02:00
qndel
644d9dfc5c
fix armor piercing affix range ( #2535 )
2021-08-08 11:53:54 +00:00
Andrew James
0aea0782c7
Refactor Diablo-SHA to attempt to document behaviour through code ( #2524 )
...
* Hardcode the key and ensure buffers are appropriately sized.
If you do want to build the key at runtime the following initial state gets the right sequence:
```cpp
std::linear_congruential_engine<uint32_t, 214013, 2531011, 0> engine(3193970784);
for (auto ¬ch: key)
notch = static_cast<byte>(engine() >> 16);
```
* Move public defines into sha.h, move private struct into .cpp
* Remove unused count member, clarify loop in SHA1Input
* Update circular shift to indicate desired behaviour, remove unnecessary negation.
The parameters are also reordered to match C++20 rotl/rotr and the usual order for shift operators.
2021-08-08 13:22:22 +02:00
Aaron Sun
aef812fb5a
Modify the calculation of panel position
...
left/center combination is used, but panel distance is limited
2021-08-08 02:08:02 +02:00
qndel
0a70a8cece
unify block formula
2021-08-07 16:34:29 +02:00
obligaron
38e78096f8
Fix Keymapper doesn't set any default keys if no diablo.ini is present (after installation)
2021-08-07 16:32:52 +02:00
Anders Jenbo
8df8b940c4
Handle some clang-tidy issues
2021-08-07 16:30:14 +02:00
Aaron Sun
3ee90ca629
Add options for sub-panel alignment
2021-08-07 16:09:32 +02:00
obligaron
b7cdf1eb59
Fix floating Dialogs (Walking while in store)
2021-08-07 14:20:27 +02:00
obligaron
8baa375c1c
Fix walking command gets ignored
2021-08-07 14:20:04 +02:00
Anders Jenbo
90960f0c14
Remove dead code
2021-08-07 00:36:38 +02:00
Gleb Mazovetskiy
5ef79ad1f2
Disable hardware cursor on Android by default
...
Fixes #2502
2021-08-06 15:55:35 +02:00
Anders Jenbo
d77a61461e
Adjust clang-tidy to where Android Studio reads it correctly
2021-08-06 13:09:57 +02:00
4aron5un
4c8210df21
Center the sub-panels (Quest, Character, Spell and Inventory) ( #2498 )
2021-08-05 21:27:07 +02:00
Gleb Mazovetskiy
9aee058137
Hardware Cursor: Default to ON only on SDL 2.0.12+
...
Fixes #2445
2021-08-05 13:57:38 +02:00
qndel
9056092cf8
more clamps ( #2496 )
2021-08-05 02:53:24 +02:00
Vladimir Olteanu
b17ff04ee2
Use string_view in DrawString and friends
2021-08-05 01:40:43 +02:00
qndel
169f980038
ranged/magic formulas
2021-08-04 23:55:44 +02:00
qndel
bd5e30db52
replace armor formula
2021-08-04 23:55:44 +02:00
Gleb Mazovetskiy
3e5a593021
🐞 Fix reading PCX files with odd widths
...
PCX files always have an even number of bytes on each uncompressed source line, which means there is an unused byte of each compressed line if the width is odd.
References:
1. https://kaba.hilvi.org/pastel-1.5.0/pastel/gfx/image_file/pcx/pcx_file.htm
2. https://www.moon-soft.com/program/FORMAT/graphics/pcx.htm#decoding%20.pcx%20files
2021-08-04 23:33:11 +02:00
qndel
f8dc7bd3e3
clamp melee hit chance ( #2491 )
2021-08-04 11:36:06 +02:00
Gleb Mazovetskiy
502b2684c9
🐞 Disable hardware cursor during video playback
...
Fixes #2448
2021-08-03 19:31:23 +02:00
qndel
81fadc79ae
fix name check and limit to multi ( #2486 )
2021-08-03 17:52:21 +02:00
Anders Jenbo
d523fc1e81
Cleanups
2021-08-02 10:12:40 +02:00
Anders Jenbo
01f66d7f73
[android] Implement loading translations from assets
2021-08-01 12:35:24 +02:00
Anders Jenbo
522f748179
[android] Detect prefered language
2021-08-01 12:35:24 +02:00
Anders Jenbo
0475aed939
[android] Allow FileExists to work on assets
2021-08-01 12:35:24 +02:00
Anders Jenbo
5c2a559487
Get default langauge
2021-08-01 12:35:24 +02:00
ephphatha
8930b789d6
Rename UiType members to follow naming convention
...
Convention seems to be that scrollbar is treated as a single unhyphenated word so the UiScrollbar class was renamed to match.
2021-07-31 20:22:40 +02:00
ephphatha
0575716eac
Rename UiFlags members to group related options
2021-07-31 20:22:40 +02:00
ephphatha
bd140142c3
Convert UiType to a scoped enum
2021-07-31 20:22:40 +02:00
ephphatha
7d93cada67
Refactor UiItemBase and derived types to reduce duplicate constructors
...
Using optional arguments where possible so that all use cases can share the same constructor. Also moving member initialisation to the initialiser list syntax as this makes it clear that the derived class is only setting properties on that class, leaving the parent constructor to initialise members of the parent class.
2021-07-31 20:22:40 +02:00
ephphatha
4ad53232a0
Convert the UiFlags enum to a scoped enum type
...
Replace operator&& with named function
2021-07-31 20:22:40 +02:00
obligaron
fb562b29e9
Timedemo: Regard ProcessInput and gfProgressToNextGameTick
2021-07-31 20:12:31 +02:00
Anders Jenbo
eda4a5061e
Implement demo recording and playback
...
This records all keyboard and mouse events to a file and lets you play
it back at a later point with a differen game speed.
2021-07-31 20:12:31 +02:00
Anders Jenbo
1703901c2d
Explicitly mark strings as not c-formatted
2021-07-31 17:05:21 +02:00
obligaron
fe034ce709
Towncast: Fix character changes direction for casting
2021-07-30 17:09:28 +02:00
obligaron
fba534de0a
Remove unused LastMouseButtonTime
2021-07-30 10:21:53 +02:00
Anders Jenbo
4451a519eb
Fix two OOBs in missiles.cpp
2021-07-29 21:39:15 +02:00
Jmgr
84b8b5828d
Keymapper: remove now useless INI access functions
2021-07-27 21:12:22 +02:00
Anders Jenbo
24d0d37d26
Add drop shadow to DrawMapLineSteep
2021-07-27 01:39:46 +02:00
obligaron
551645060b
Fix item swapping and AnimationInfo::ChangeAnimationData
2021-07-26 22:46:16 +02:00