Gleb Mazovetskiy
254806e027
Optimize translation RAM usage
...
1. Store all key data and all values data as 2 char arrays.
2. Change map keys to char pointers.
3. Change map values to offsets into the values array.
Example savings for Russian: 460 KiB -> 374.2 KiB (-85.8 KiB)
* Map: 68.5 KiB (with `string_view` keys it would be 101.5 KiB)
* Keys array: 108.7 KiB
* Values array: 197.0 KiB
4 years ago
Anders Jenbo
791a6b6266
Decode DRLG2 ASCII
4 years ago
Anders Jenbo
e09059c20e
Reuse DungeonMask for lockout in DRLG3
4 years ago
Anders Jenbo
8ed3cb476b
Clean up initial room generation
4 years ago
Andrew James
c479488fd7
Remove unnecessary assert ( #4911 )
4 years ago
Oleksandr Kalko
c84eabba22
Update Ukrainian translation ( #4860 )
4 years ago
Cesar Canassa
bb3fb36ddc
✨ Introduces FlipCoin() ( #4908 )
4 years ago
Vladimir Olteanu
f463f08642
Refactor FindClosestValidPosition to use Crawl
4 years ago
Vladimir Olteanu
bed5bd9ec1
Eliminate CrawlTable
4 years ago
Cesar Canassa
e538acb248
📝 Fixes Doxygen warnings ( #4904 )
4 years ago
Bubio
79410eab98
Localize the wording returned by the system on macOS/iOS.
4 years ago
Gleb Mazovetskiy
59a335a478
Bump SDL_audiolib
4 years ago
Gleb Mazovetskiy
d07ac14440
Handle nullptr localtime
...
`localtime` can return `nullptr` on some platforms (e.g. NXDK)
Improve portability by handling the `nullptr` result.
4 years ago
Gleb Mazovetskiy
39ff1825c1
drlg_l2.cpp: Fix `-Wmissing-braces` from clang
4 years ago
Gleb Mazovetskiy
ac15c3bbb4
MpqWriter: No `std::ios::in` for new archives
4 years ago
Gleb Mazovetskiy
a23ad0113b
MpqWriter constructor: Better error message
4 years ago
Gleb Mazovetskiy
a1aed18c8b
ReadOnlyTest: Use "w" mode instead of "wt"
...
There is no reason to open that file in text mode explicitly
4 years ago
Gleb Mazovetskiy
bfc5639e6b
Fix DVL_EXCEPTIONS on clang
4 years ago
Gleb Mazovetskiy
850f4d0a8c
Bump libmpq
...
Includes 1f4327d2b3
and 6a9fbdc7ed
4 years ago
Mikołaj Piróg
15989609a8
Members' name changes and comments in Monster struct ( #4861 )
4 years ago
Cesar Canassa
de971c6a8b
♻️ Refactor AddMonster to return a monster pointer ( #4894 )
4 years ago
obligaron
3c571bf64b
Avoid overflow of tickCounterOfCurrentFrame ( #4893 )
...
* When MFLAG_ALLOW_SPECIAL is set, don't call processAnimation (avoid overflow of tickCounterOfCurrentFrame)
4 years ago
aetn23
bf568fe480
Remove assert to check if value is in bounds
4 years ago
Cesar Canassa
0d106beaf3
♻️ Refactor M_StartHit to receive a Monster reference
4 years ago
Cesar Canassa
b1275d0163
Renamed m variable into monsterId
4 years ago
Cesar Canassa
443f88b0f7
Rename MonsterTrapHit m parameter to monsterId
4 years ago
Cesar Canassa
9f61aef732
🔧 Includes .hpp files in the documentation ( #4899 )
4 years ago
Mikołaj Piróg
dda0b96ea5
Remove #defines in player.h and add constexpr where applicable ( #4896 )
...
* Change defines to constexpr int in player.h
* Add const or constexpr to player.h/cpp where applicable
* Update tests with changed names of player constatns
* remove unecessary variable
4 years ago
Cesar Canassa
a91ec16196
🔧 Update Doxygen config ( #4898 )
...
I noticed that anything inside an unnamed namespace wasn't being documented by Doxygen. This commit ensures that all functions are properly documented by Doxygen.
4 years ago
qndel
7612fb4bb5
artifacts as releases ( #4892 )
4 years ago
Cesar Canassa
dab0517f21
♻️ Refactor ActivateSpawn to receive a Monster reference ( #4889 )
4 years ago
Cesar Canassa
423a2ed614
♻️ Refactor MonsterRangedAttack to receive a Monster reference ( #4891 )
4 years ago
Cesar Canassa
27f8951a94
♻️ Refactor MonsterWalk to receive a Monster reference ( #4888 )
4 years ago
Cesar Canassa
4bb2f30657
♻️ Refactor MonsterDeath to receive a Monster reference ( #4887 )
4 years ago
Cesar Canassa
76da2d14c9
Remove monsterId from M_GetKnockback ( #4882 )
4 years ago
Gleb Mazovetskiy
aeb8f9ee91
points_in_rectangle_range.hpp: Fix line endings
4 years ago
Gleb Mazovetskiy
eb8721885d
Fix clang warnings
...
As seen in the Xbox NDK build.
4 years ago
qndel
2c011837f1
upload windows artifacts to second repo ( #4859 )
4 years ago
obligaron
4db1c6f315
Make DirectionSettings::offset match ActorPosition::offset2 ( #4883 )
4 years ago
Cesar Canassa
c126839b9f
♻️ Refactor StartMonsterGotHit to receive a Monster reference ( #4880 )
4 years ago
Cesar Canassa
bbb78542df
♻️ Refactor Teleport to receive a Monster reference instead of monsterId ( #4879 )
4 years ago
Anders Jenbo
0b7ad34c9d
Take player by reference in StartWalkStand and RemovePlrMissiles ( #4874 )
4 years ago
Cesar Canassa
79f5cdb2be
♻️ change delta_monster_hp to receive a Monster reference ( #4873 )
4 years ago
Stephen C. Wills
4584b41d69
Fix errors rendering progress dialog ( #4878 )
4 years ago
Cesar Canassa
6579aa53c5
Normalise the player and monster walking function naming ( #4877 )
...
Both player and monster walking functions are not named WalkNorthwards, WalkSouthwards and WalkSideways.
Also renames the PLT_MODE enum to follow the same pattern and removes the comments that are now unnecessary
4 years ago
qndel
98a2fc53c9
disable attributes file in devilutionx.mpq - timestamp causes a diff on every rebuild ( #4876 )
4 years ago
ephphatha
fce4d23ba8
Iterate over all monsters when applying delta
4 years ago
ephphatha
2da2ea7b03
Take monster reference in M_ClearSquares
4 years ago
Cesar Canassa
eb2740c7b6
♻️ change M_WalkDir to receive a Monster reference ( #4875 )
4 years ago
k-bar
26de74f4a2
AnimationInfo class correct style ( #4870 )
...
* AnimationInfo class correct case-style for private members
clang-tidy warnings:
readability-identifier-naming invalid case style for private member
* AnimationInfo class correct case-style for members
clang-tidy warnings:
readability-identifier-naming invalid case style for member
* AnimationInfo class correct case-style for methods
clang-tidy warnings:
readability-identifier-naming invalid case style for method
* AnimationInfo class use nodiscard
clang-tidy warnings:
modernize-use-nodiscard function should be marked [[nodiscard]]
4 years ago