obligaron
cb7819a75c
Introduce AnimationDistributionFlags::RepeatedAction
5 years ago
obligaron
b5954eb34b
Change AnimationDistributionParams to AnimationDistributionFlags
5 years ago
obligaron
b08e0c20dc
In repeated Animations show skipped Frames from previous Animation (repeated Attack/RangeAttack/Spell)
5 years ago
obligaron
7740a66dc4
Set correct Hit-Frame for Spell Animation
5 years ago
Jmgr
6c2a837278
Keymapper: fix triggering actions twice
5 years ago
Anders Jenbo
05631eca36
🧹 Only load town TIL-file once
5 years ago
Anders Jenbo
92db72719d
🔥 Remove some unused code
5 years ago
Anders Jenbo
3746723f52
♻️ Add type to MIN-files and TRN-files
5 years ago
Gleb Mazovetskiy
0f95c3cbac
🧹 Fix a TSAN warning in DuplicateSound
...
This is likely a false positive from TSAN but good to fix nevertheless
Fixes #1849
5 years ago
Trihedraf
669c86be2b
put ZeroTier files in subdir of save-path
5 years ago
Juliano Goncalves
6e3c33ad23
✨ Add key to stop walking and cancel pending actions
5 years ago
Juliano Leal Goncalves
39736e2538
♻️ Pass 'PlayerStruct' pointer to 'ClrPlrPath'
5 years ago
M0Rf30
570372331b
🐞 Fix typo for Maelstrom monster
5 years ago
Anders Jenbo
875da955c0
🎨 Clean up name of town mega tile variable
5 years ago
Anders Jenbo
fa0b286693
♻️ Typed file loading
...
Tthis gives us the option to specify what type a file should be loaded
as, avoidng the need to case it and does some automatic checks on the
fitness of the data, while making the process simpler.
If no type is given then the type will be set to std::byte which limit
what operations can be performed on the data.
5 years ago
Gleb Mazovetskiy
18967ce5ff
🎉 render.cpp: Do not render out-of-bounds
...
This is part of the work to allow us to eliminate buffer padding.
As this is a hotspot, we have 4 separate functions for each non-square
primitive, resulting in quite a bit of code:
1. Unclipped ("Full")
2. Vertical-only clip
3. Vertical + Left clip
4. Vertical + Right clip
FPS at 640x480: 1420 -> 1530
5 years ago
Anders Jenbo
4e284ede14
Correct singular "Scroll" in texts.
5 years ago
thebigMuh
8e19ef5460
- Fixed outline drawing for item on cursor to match rest of game
...
- Made GetOutlineColor const
- Made gold outline golden again... because the white outline made me sad
5 years ago
Ivan Epifanov
be07c3fb65
Remove vita hack
5 years ago
Jmgr
b07d83001a
Fix Vita build
5 years ago
Jmgr
0d652ed8cd
Move experience cheat into its own action
5 years ago
Jmgr
edaa58071d
Add early return in a few cases
5 years ago
Jmgr
994c5e7cfe
Add a keymapper
...
Rename the config entry for changing the quick messages texts
Other small improvements and simplifications
Set the quick spell hotkey text to be white with a black shadow
Add QuitGame action, unbound by default
Set the ItemInfo and QuestDebug keys to be unbound by default
5 years ago
Anders Jenbo
32738c318b
🎨 Use enums for LoadRndLvlPal input
5 years ago
Gleb Mazovetskiy
3b03dd33cc
🧹 LoadRndLvlPal: Minor cleanup
5 years ago
Anders Jenbo
bfc510fb23
Clean up automap.cpp
5 years ago
Gleb Mazovetskiy
ff7fdd2848
🐞 Fix spellbook rendering crash in hellfire
...
Fixes a bug introduced in #1796
Frame numbers are 1-based and there are 6, not 5 frames there.
5 years ago
Gleb Mazovetskiy
987ab2533b
🐞 Synchronize SFileReadFile access
...
StormLib read function is not thread-safe: https://github.com/ladislav-zezula/StormLib/issues/175
5 years ago
thebigMuh
24f32a1d53
Fix sound volume/panning attenuation ( #1789 )
...
* Fixing volume adjustment and scaling
5 years ago
Anders Jenbo
3f891a4333
🌐 Correctly handle two more plural translation
5 years ago
Gleb Mazovetskiy
9980b77d23
🐞 ClearDuplicateSounds: Also lock the mutex
5 years ago
Anders Jenbo
23cec61f15
🎨 Mark Points returned by GetTargetPosition as const
5 years ago
Anders Jenbo
bab52c0237
♻️ Clean up CreateDoorType
...
Apply early returns
5 years ago
Anders Jenbo
72bed0709c
♻️ Remove some magic numbers form appfat
5 years ago
Anders Jenbo
654a2b8834
♻️ Clean up automap code
...
Use Point for x,y pairs. Make helpers for drawing door and squares
5 years ago
Gleb Mazovetskiy
559229dea1
🐞 Duplicate sounds: Fix data race
...
This fixes a data race by deleting the sound exactly when it finishes
playing.
Previously, a data race could happen in
`CleanupFinishedDuplicateSounds`, where the sound would be destroyed
while Aulib was reading from its buffer.
5 years ago
Gleb Mazovetskiy
58b805cf47
🐞 Fix data race in PushAulibDecoder
...
Fixes #1832
5 years ago
Jmgr
4fad8023ff
Fix fmt issue with a nullptr controller mapping
5 years ago
Anders Jenbo
5b474b4781
Enable warnings for MSVC builds
...
Also, fix warnings related to DVL_PRINTF_ATTRIBUTE
5 years ago
Gleb Mazovetskiy
0bfc147b78
🧹 Remove `DiabloAllocPtr` and friends ( #1824 )
5 years ago
Jonathan Mercier-Ganady
4274cc6f1f
Log format errors as critical and call app_fatal to terminate
5 years ago
Vladimir Olteanu
d9a4ff8729
Use std::string_view for towners' names ( #1750 )
5 years ago
Gleb Mazovetskiy
f33f7ae7eb
💨 Do not zero-initalize arrays we write to
...
`std::make_unique<T[]>(size)` always zero-initalizes the array.
C++20 has `std::make_unique_for_overwrite` to avoid that, while
older C++ versions can use the approach applied here.
5 years ago
Anders Jenbo
b177f77d21
🎨 Cleanup language.cpp
5 years ago
Anders Jenbo
d83fa8edb3
🌐 Apply plural translation where applicable
5 years ago
thebigMuh
cab62a7dbf
Load item graphics early so they are available for hero selection
5 years ago
Gleb Mazovetskiy
34b4ed759a
🐞 Clean up and fix inventory sprite handling
5 years ago
Gleb Mazovetskiy
5820948761
♻️ Make `SFileRw` own the Storm file handle
...
All of our use-cases for `SDL_RWops` Storm file require closing the file
when closing the `SDL_RWops` -- doing this automatically simplifies the
code.
5 years ago
Gleb Mazovetskiy
8e634ff02c
♻️ Remove `_iAnimWidth`
...
No longer needed as of #1796
We could probably go further and not expose `ItemAnimWidth`,
but it'd be dangerous because sometimes `_iAnimData` is null.
5 years ago
Gleb Mazovetskiy
0b18b8977b
🐞 items.cpp: Fix nullopt access
...
A better fix would probably be to not call this function in the first
place before the graphics are loaded.
5 years ago