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
Gleb Mazovetskiy
2c924e1ab1
🐞 pfile: Fix stale tables after leaving a game
...
In multiplayer, the hash and block tables are kept around between the
saves (presumably to improve performance).
When leaving the game, they should be cleared.
Clearing of the tables is handled by `Archive::Close` in `mpqapi.cpp`.
After 135f5e03c7 ,
which moved the archive closing inside `pfile_write_hero`, the tables
were no longer cleared on `pfile_flush_W` (because the archive was
already closed when it was called).
To fix the issue, this commit adds a `clear_tables` argument
to `pfile_write_hero` and removes the `pfile_flush_W` method.
Bug reported and root cause found by @Eider-McDuck :
> Example to reproduce: Have 2 vanilla savegames, join a game with the first,
> then leave, then join a game with the second, then drop an item on the floor.
5 years ago
Anders Jenbo
2addb52031
🔧 Update better code hub config
5 years ago
Anders Jenbo
1a14430f94
Add better code hub badge
5 years ago
Juliano Leal Goncalves
0df491eeac
🐛 Ensure picked up items on the ground are removed
5 years ago
Gleb Mazovetskiy
d4ca1e30ce
Log MPQs on load (with --verbose)
...
The log looks like this:
VERBOSE: MPQ search paths
1. '/home/gleb/devilutionX/build/'
2. '/home/gleb/.local/share/diasurgical/devilution/'
3. '/usr/share/diasurgical/devilutionx/'
4. '/usr/local/share/diasurgical/devilutionx/'
5. ''
VERBOSE: Missing: DIABDAT.MPQ
VERBOSE: Found: diabdat.mpq in /home/gleb/.local/share/diasurgical/devilution/
VERBOSE: Missing: patch_rt.mpq
VERBOSE: Missing: patch_sh.mpq
VERBOSE: Found: hellfire.mpq in /home/gleb/.local/share/diasurgical/devilution/
VERBOSE: Found: hfmonk.mpq in /home/gleb/.local/share/diasurgical/devilution/
VERBOSE: Missing: hfbard.mpq
VERBOSE: Missing: hfbarb.mpq
VERBOSE: Found: hfmusic.mpq in /home/gleb/.local/share/diasurgical/devilution/
VERBOSE: Found: hfvoice.mpq in /home/gleb/.local/share/diasurgical/devilution/
VERBOSE: Missing: hfopt1.mpq
VERBOSE: Missing: hfopt2.mpq
VERBOSE: Found: devilutionx.mpq in /home/gleb/devilutionX/build/
5 years ago
Gleb Mazovetskiy
81d1370b5f
🐞 Fix Storm error code on Windows
...
`DVL_ERROR_HANDLE_EOF` was defined incorrectly on Windows.
These error codes are used and returned by Storm. Moves them
from `miniwin.h` to `storm.h`.
Also adds `STORM_ERROR_FILE_NOT_FOUND`, to be used in a follow-up PR.
5 years ago
Anders Jenbo
15ea464ddd
✅ Add more items to tests
5 years ago
Gleb Mazovetskiy
b2601a04e0
Zoom: Fix off-by-1 and handle odd dimensions
5 years ago
Gleb Mazovetskiy
e1278cba7b
Fix SErrGet/SetLastError
...
SErrGet/SetLastError were not propagating errors from 3rdParty/StormLib
because StormLib uses native Windows functions on Windows and defines
its own on Linux.
Also removes storm_full.h
5 years ago
Juliano Leal Goncalves
f8871aab07
♻️ Unify most valuable player item logic on new method
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago
qndel
d8444ed695
Clean DrawInvBelt + outline colors
...
* fix right hand items
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
6e1a106a38
🚚 Move header we implement into the project
5 years ago
Anders Jenbo
f04b5501ef
🚚 Desolve types.h
5 years ago
Anders Jenbo
67a7ff98c5
🚨 Clean up compiler warnings
5 years ago
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
5 years ago
FluffyQuack
051ac249db
🐮 Fixed a legacy bug causing network desync if a player tries to swap sword+shield with a two-handed weapon without sufficient inventory space.
5 years ago
obligaron
f2c7446134
bugfix idle animation after equipping/unequipping
5 years ago
qndel
edda16cb47
DrawInv cleanup ( #1306 )
5 years ago
qndel
e24f3c83de
fix automap
5 years ago
qndel
7cc64dd2c4
fix double zhar aggro message
5 years ago
Gleb Mazovetskiy
26fb3e4b57
Disable streaming audio on the Vita
...
Refs #1526
Seems to be affected by a similar issue as the Switch and the 3DS:
https://github.com/diasurgical/devilutionX/pull/1264
5 years ago
qndel
2677cc14dc
fix loading golem
5 years ago
Yuri Pourre
ed1ddfdece
Exposes player id from multi_send_packet
5 years ago
FluffyQuack
7c5646a475
Rewrote two identical code snippets in inv.cpp into one function. ( #1528 )
5 years ago
FluffyQuack
8365998b49
🐮 Slightly altered RemoveInvItem() so a mostly identical code snippet could be replaced with a call to that function. Also added some documentation to the function.
5 years ago
Gleb Mazovetskiy
acc1578cdd
false_avail: Remove `__vita__` workaround
...
No longer necessary as of dae4cc8c50
The default minimum priority log level in release builds is INFO
5 years ago
Gleb Mazovetskiy
9382153228
init_test_access: Remove platform workarounds
...
No longer necessary as of https://github.com/diasurgical/devilutionX/pull/1314
5 years ago
Gleb Mazovetskiy
007883b836
OpenDingux: Fix path to the `strip` binary
...
Fixes rg350 build
5 years ago
Anders Jenbo
177373d674
Merge branch '1.2'
5 years ago
Juliano Leal Goncalves
cc5f2a8f49
🎨 Rename 'attribute_id' enum to 'CharacterAttribute'
...
Members were renamed as well for readability.
5 years ago