obligaron
2b0b944afb
Manage friendly mode per player and sync state between clients
4 years ago
obligaron
70c5cf6cad
Fix item label text with open stash ( #4595 )
...
* Item labels: check if stash is open in IsMouseOverGameArea
* Add IsLeft/RightPanelOpen
4 years ago
Dmitry Marakasov
446ec5f95d
check for either linux or BSDs as defined(__unix__)
4 years ago
Dmitry Marakasov
04d0950c9e
Fix UB in random generator
...
abs(INT_MIN) is undefined behavior, so process this case without
calling abs()
4 years ago
Stephen C. Wills
99ab06776c
Apply clang-format to inv.cpp ( #4581 )
4 years ago
Nick Tholin
5fd93408f8
Move identical belt items down belt as they are used.
4 years ago
ephphatha
af3187a15e
Provide sound cue when gold is auto-placed into the open inventory
4 years ago
Andrew James
df8643ccf5
Use the count of store items instead of repairOk flag ( #4576 )
...
Cursed items (with an item value of 0) will not be added to the list of items by AddStoreHoldRepair. This results in a situation where a player can try repair a null/invalid item because StartSmithRepair doesn't realise that no items are available to be repaired.
4 years ago
Anders Jenbo
6c6999235f
Add debug command for testing custom levels
4 years ago
staphen
7c28029d1a
Fix condition for set pieces in AddL2Torches()
4 years ago
Robin
b86b8fd7c4
msg: add BUGFIX for delta_kill_monster ( #2261 )
...
The monster direction is synced even if the receiving player is not
on the same dungeon level as the player killing the monster.
Note, this happens, even if one player is in town, and the other
kills a monster at e.g. dlvl=1. Then the code will check the
monster at index mi even for the player in town, so it will just
read garbage data from memory.
4 years ago
qndel
ab9b61626f
add hellfire rune dmg calc ( #2270 )
4 years ago
Anders Jenbo
17f3f3930b
Correct typo
4 years ago
Anders Jenbo
457f804f10
[vanilla] Fix missing tource light in Lazarus' chamber
4 years ago
Anders Jenbo
e32dd690ae
Clean up object update code
4 years ago
qndel
944655ff94
fix typos ( #4568 )
4 years ago
Gleb Mazovetskiy
85f0802f01
printInConsole: Add string_view support
...
Also print `\r\n` instead of `\n` on Windows.
4 years ago
Anders Jenbo
134791af3f
Remove pointless math related to finding monsters for levels
4 years ago
staphen
f2e5f62909
Pass object by reference to AddBarrel()
4 years ago
Anders Jenbo
9872c7be05
Only load relevant object graphics
...
Some object graphics where loaded despite not being used on the given
levels
4 years ago
DakkJaniels
1b83d68dc7
remove two includes that didn't need to be added.
4 years ago
DakkJaniels
1fb712c63a
fix clang formatting
4 years ago
DakkJaniels
3f9b385a1d
revised for date/time stamps instead.
4 years ago
DakkJaniels
1d4f91c9e1
add parenthesis to max
4 years ago
DakkJaniels
dd3da0a639
change to std::numeric_limits
4 years ago
DakkJaniels
c4d5068e3e
Take up to 4.29B screenshots
4 years ago
Anders Jenbo
9d082389d8
Clean up music track selection
4 years ago
Anders Jenbo
f64fe57fbe
Do not process theme rooms for Nest and Crypt
...
This causes Objects, Items and Monstesr to have different positions from
the original, but this is acceptable since they are stored in the save
game and so do not break compatability.
4 years ago
Anders Jenbo
52b8221460
[vanilla] Correct number of monster in libraries
4 years ago
Anders Jenbo
0645d9b2a1
Correct missing hellfire level mapping in leveltype
...
Hellfire never added the 2 new dungion types, instead it makes
additional checks on currlevel. This is confusing and mess, so cleaned
it up.
4 years ago
Robin Eklind
bc0488382a
missiles: add BUGFIX for SetMissAnim
...
A buffer overflow is triggered when casting Identify (or any other
spell which has mFileNum set to 255).
4 years ago
staphen
08494378e4
Ignore leave requests if the player leaving is the local player
4 years ago
galaxyhaxz
157adc7e11
Lazarus level reset bugfix
4 years ago
ephphatha
42033f82f4
Use enum instead of int as bool for docking mode
4 years ago
ephphatha
7f15aa730d
Move definition of ghMainWnd to utils/display.cpp
...
This variable is controlled/set by the code in that file, this also lets other files have more specific/relevant includes instead of the monolith that is diablo.h
4 years ago
staphen
2ebd80c8e8
Use ifdef when checking for _DEBUG
4 years ago
staphen
851b03215b
Accept all PT_MESSAGE packets when buffering messages
4 years ago
ikonomov
c09751b388
minor alignment adjustment ( #4534 )
...
* minor header alignment adjustment in monstdat.cpp
4 years ago
qndel
0e2d056a9a
fix refreshing/drawing bottom description part
4 years ago
John Törnblom
a41dcbf78a
ps4: avoid using std::locale to detect language, and fallback to English on first run
4 years ago
qndel
0f0e2895fd
fix displacement on death
4 years ago
qndel
89109dc9f4
HP bar tweaks and fixes ( #4525 )
...
* HP bar tweaks and fixes
4 years ago
staphen
0bbb7a1572
Initialize options before first call to SaveOptions()
4 years ago
DakkJaniels
fc1d699bb2
Restore randomization of stores for multiplayer games
4 years ago
Anders Jenbo
3aca1a50c3
Fix build error
4 years ago
ephphatha
0cfd0e194a
Refactor TryDropItem to reduce use of globals
...
The way TryInvPut and DropItemBeforeTrig interacted was fragile, don't think this would've worked as expected at the best of times. Looks like it was added as part of controller support so guessing this isn't vanilla behaviour anyway.
4 years ago
Gleb Mazovetskiy
961e1b584b
Always load fonts as CEL
...
There appear to be no drawbacks, only advantages.
4 years ago
Gleb Mazovetskiy
c2917b1dc8
DiabloUi: Load animated PCX sprites as CEL
...
Reduces memory usage in menu (and thus the overall allocator pressure)
4 years ago
Gleb Mazovetskiy
978bae1a15
Add a helper for loading PCX as CEL from path
4 years ago
Gleb Mazovetskiy
7b98735878
Revert "An option to RLE-compress masked art"
...
This reverts commit c884f1a354 .
Superceded by `DEVILUTIONX_CONVERT_FONTS_TO_CEL`, which offers the same
RAM reduction but without slowdown.
4 years ago