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
c0ee7fba1a
Docs: Amiga: Better "building" command [ci skip]
...
1. chown the whole directory including dotfile
2. Fix the "copy resources" command (must be chowned first)
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
Anders Jenbo
69f2452119
✅ Add Thunderclap to tests
5 years ago
Anders Jenbo
53287ae0b0
✅ Add Gnat Sting to tests
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
Gleb Mazovetskiy
95946e3a7c
🧹 Cleanup unused variables ( #1584 )
...
Fixes `unused-variable` and `unused-but-set-variable` compiler warnings.
5 years ago
Gleb Mazovetskiy
472f86588e
OpenDingux: Update RG350 package to OD Beta
...
Unfortunately, OD Beta has a major regression with SDL joystick support,
as it always reports buttons as keyboard keys instead of actual buttons.
This partially breaks external keyboard support, where e.g. space no
longer acts as expected.
However, on balance, OD Beta is better than the 2014 firmware at this
point.
5 years ago
Jonathan Mercier-Ganady
e94e1eb2b9
Allow (C++14 || C++17) ( #1570 )
5 years ago
qndel
76b8aca1c4
remove unique item line from shops
5 years ago
qndel
449cea2b47
fix typo in spiritual shrine ( #1569 )
5 years ago
Gleb Mazovetskiy
5b29fe9476
🧹 DiabloUI/selhero.cpp: Move to anonymous namespace
...
Also removes the following unused globals:
char selhero_Description[256];
char selhero_Lable[32];
5 years ago
Gleb Mazovetskiy
e92cf9d7c8
🧹 DiabloUI/title.cpp: Move to anonymous namespace
5 years ago
Gleb Mazovetskiy
9468b1da58
🧹 DiabloUI/selyesno.cpp: Move to anonymous namespace
5 years ago
Gleb Mazovetskiy
f9ee3763e4
🧹 DiabloUI/selconn.cpp: Move to anonymous namespace
5 years ago
Gleb Mazovetskiy
e13f67f7af
🧹 DiabloUI/mainmenu.cpp: Move to anonymous namespace
5 years ago
Gleb Mazovetskiy
ff798a5e43
🧹 DiabloUI/progress.cpp: Move to anonymous namespace
...
Also removes the unused `char dialogText[256];`
5 years ago
Gleb Mazovetskiy
86afa95d2a
Move file_util.h implementations to file_util.cpp
...
There is no reason for these functions to be in the header (inlining
won't benefit them one bit).
I put them in the header originally only because of the weird state
SourceS was in back then.
5 years ago
Gleb Mazovetskiy
539e985893
Remove stdarg_compat.h header
...
It was only used in one place, which did not use va_list.
Looking at the original issue, my guess was whatever this was meant to
work around was an issue in DevilutionX code at the time.
5 years ago
Gleb Mazovetskiy
4068559462
gamenu.cpp: Move most functions to an anonymous namespace
5 years ago
qndel
2302ee27aa
make unique items display gold in stores
5 years ago
Anders Jenbo
bbd6243633
🔧 Update codecov config
5 years ago