Anders Jenbo
77f15d4e9c
🎨 Use semantic element
5 years ago
thebigMuh
fa1f58e586
Fixing OOB error when drawing partially filled XP bar pixels. ( #1636 )
5 years ago
qndel
6be6499631
fix secluded crash ( #1635 )
5 years ago
Jmgr
1d84156509
Simplify bitshift divisions/multiplications
5 years ago
Anders Jenbo
97d7171123
🔥 Get rid of _ptargx/y
5 years ago
Anders Jenbo
a8d6ec29b7
🎨 Correct name of intermidiat variable
5 years ago
qndel
ec74917cb4
class sounds cleanup
5 years ago
FluffyQuack
4f417d2fdc
Fix to one desync related to player movement (queuing moving after attacking).
5 years ago
Anders Jenbo
d16ff1ac82
🔥 Remove unused const
5 years ago
Anders Jenbo
0bf3516be2
🎨 Revert use of range loops on 2D arrays
5 years ago
Anders Jenbo
a9874d65c1
♻️ Remove SDL types from player header
5 years ago
Anders Jenbo
f8e3672469
♻️ Fully apply clang-tidy rules to a few files
5 years ago
Gleb Mazovetskiy
84122c5f07
🎨 DiabloUI: Replace `dynamic_cast` with `static_cast`
...
The type is known here so we do not need to pay the overhead of a `dynamic_cast`.
Follow-up to 94f385a46b
5 years ago
qndel
7563234ca9
fix saves ( #1621 )
5 years ago
Anders Jenbo
9e307a0d4a
🎨 Rename towner[] to towners[]
5 years ago
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
5 years ago
Anders Jenbo
94f385a46b
🎨 cppcoreguidelines-pro-type-cstyle-cast
5 years ago
Anders Jenbo
6ba343e309
🎨 Acceptable parts of misc-*
5 years ago
Anders Jenbo
b978d80119
🎨 llvm-include-order
5 years ago
Anders Jenbo
09e0607ddc
🎨 Acceptable part of bugprone-*
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
5 years ago
Psojed
b31061ff83
Apply Sorcerer's mana cost reduction bonus only in Hellfire ( #1613 )
5 years ago
Gleb Mazovetskiy
fe26f96b75
🧹 SDL1 backports: Move GetBase/PrefPath to cpp
5 years ago
Gleb Mazovetskiy
4fa8f2aadf
🧹 SDL1 backports: Remove unused SDL_DisplayMode
5 years ago
Xadhoom
bf908da5bc
Add option to disable clicking on character crippling shrines
5 years ago
Gleb Mazovetskiy
362f24e9a7
🚚 Move SVid code to its own file
5 years ago
Anders Jenbo
660eeb19d2
🎨 Apply agreeable part of clang-tidy to appfat and automap
5 years ago
Gleb Mazovetskiy
295b5bce81
🧹 DiabloUI: Clean up text render cache
...
Cleans up the handling of text render cache for `UiText` and `UiButton`.
This also happens to fix a memory leak (`FreeCache` was never called).
5 years ago
qndel
202ac36a52
golems, dont fight each other
5 years ago
thebigMuh
50dcf587f4
Adding fancier XP bar ( #1597 )
5 years ago
Anders Jenbo
c89bd9c001
🚨 Fix remaning warnings for clang and gcc
5 years ago
Gleb Mazovetskiy
91d7be9fa3
Fix init_test_access MPQ flag
...
`MPQ_FLAG_READ_ONLY` -> `MPQ_OPEN_READ_ONLY`.
The former is a flag that is set on an MPQ that was open in read-only
mode. To request opening in read-only mode, `MPQ_OPEN_READ_ONLY` should
be used instead.
5 years ago
Gleb Mazovetskiy
132ff891f0
SVid: More robust and correct scaling
...
Fixes various scaling formulas and adds checkes for indexed pixel formats.
5 years ago
Gleb Mazovetskiy
92485ed222
DiabloUI: Support non-doublebuf HW surfaces
...
If using a hardware surface without double-buffering, perform
rendering in a single blit to avoid flickering and tearing.
5 years ago
Gleb Mazovetskiy
7fd088744e
SDL1 SVid: Clean up video mode code + add override
...
1. Cleans up SVidVideoMode detection.
2. For devices where detection is not possible but it is known
to work, adds an `SDL1_FORCE_SVID_VIDEO_MODE` define.
5 years ago
Gleb Mazovetskiy
64f5e374ff
RenderPresent: Remove the !SDL_MUSTLOCK assert
...
Allows using a hardware surface
5 years ago
Gleb Mazovetskiy
f3cf036d2d
SDL1: Move BlitScaled backport to cpp
...
Also fixes a bug when trying to BlitScaled an indexed surface.
5 years ago
Anders Jenbo
5fdb9ce459
🎨 Format code
5 years ago
thebigMuh
48397a0cb9
Fixes solar shrine times to not be off by 1 hour, and fixes hole between 4 and 5 am
5 years ago
Anders Jenbo
946ff5b0fa
♻️ Performe static casts when load save game data
5 years ago
Anders Jenbo
61d15e23db
🎨 Apply direction enum to monsters and relations
...
Missiles _mimfnum is being used for a lot more then just directions and
can also be a 16 degree direction so can't apply enum verbs and
restricitons to it in most cases. This in turns also affects SetMissDir
and some other functions that have to stay int.
5 years ago
Anders Jenbo
b238d320c2
🎨 Clean up dead.cpp
5 years ago
Anders Jenbo
01afe7c997
🎨 clang-tidy iterators
5 years ago
Anders Jenbo
d9c2108513
🎨 clang-tidy type definition
5 years ago
staphen
006fa39691
Use SetPlayerHitPoints() for minHP handling in ApplyPlrDamage().
5 years ago
staphen
621ed481bd
Join declaration and initialization of variables.
5 years ago
staphen
26fdd1fb2e
Clean up unnecessary Mana Shield processing in CalcPlrItemVals().
5 years ago
staphen
4faf09c2df
Consolidate logic for Mana Shield and player damage.
5 years ago
Gleb Mazovetskiy
4c0581ca5e
🧹 C++17: Use std::make_unique
5 years ago
Gleb Mazovetskiy
91f8267db9
🧹 SDL1.2: Remove unimplemented SDL_*Window backports
...
Guard around SDL version at call site instead.
5 years ago