ephphatha
143b6a40f1
apply clang-format
3 years ago
Andrew James
1b7608ea3b
Map from _talker_id to towner pointer when using gossip option ( #6136 )
3 years ago
Gleb Mazovetskiy
346ff443f7
Fix hwcursor re-enabling when reducing window size
3 years ago
Gleb Mazovetskiy
a8f1d74bc4
Log an error if `SDL_CreateColorCursor` fails
3 years ago
Gleb Mazovetskiy
f2d730a52f
Delay hardware cursor reinit until it is visible
...
We previously reinitialized the hardware cursor during fade in even if
it was not visible (e.g. fading into the credits screen).
3 years ago
Gleb Mazovetskiy
2cf15cebc8
Add optional debug logging for hwcursor
...
To help debug hardware cursor issues
3 years ago
qndel
3920aaa9f1
fix displaying difficulty indicator on hero selection ( #6118 )
3 years ago
qndel
df8362a1cd
fix walking animation getting stuck
3 years ago
obligaron
bb1e2e7399
Fix golem scroll does not create a targeting cusor
3 years ago
qndel
88e7c8feec
get rid of hardcoded ALT in variable/function name
3 years ago
obligaron
abdec47a85
Multiplayer: Sync Lazarus death correctly
3 years ago
qndel
c362808165
debug path command ( #6101 )
3 years ago
staphen
874fa6b8d3
Fix monster light offset after walk animation ends
3 years ago
ephphatha
9987bb6be2
Avoid unnecessary item initialisation and copy
3 years ago
ephphatha
6b21728440
Inline single use function InvPutItem
3 years ago
ephphatha
4f3c70aa95
Move PlaceItemInWorld to items.h/cpp
...
Seems like a more appropriate home
3 years ago
ephphatha
06f6ff78f2
Extract common logic for a player dropping an item
...
The other class of use appears to be items spawned from NPCs or being dropped on death which shouldn't consider the CornerStone. Need to sort those later
3 years ago
ephphatha
eac22b935d
Make functions that create and place an item in the world more similar
3 years ago
Anders Jenbo
1d90730b0a
Correct use of local instead of global lightTableIndex
...
It looks like this was mistakenly using LightTableIndex instead of lightTableIndex. Found by @qndel
3 years ago
qndel
3500dc1861
code cleanup
3 years ago
Gleb Mazovetskiy
5bf0b8bc96
Add more missing <cstdint> includes
...
https://github.com/diasurgical/devilutionX/pull/6095 only added includes
for `uint32_t`, this PR also adds the includes for the remaining
integral types.
3 years ago
Gleb Mazovetskiy
4fa3732526
Add missing <cstdint> includes
...
Done with the following script:
```ruby
Dir["Source/**/*.{h,c,cc,cpp,hpp}"].each do |path|
v = File.read(path)
next if !v.include?("uint32_t") || v.include?("cstdint")
lines = v.lines
line_num = if lines[2].start_with?(" *")
lines.index { |l| l.start_with?(" */") } + 3
else
3
end
lines.insert(line_num, "#include <cstdint>\n")
File.write(path, lines.join(""))
end
```
then fixed-up manually
3 years ago
ephphatha
c3a8a95813
use stdlib lcg type
3 years ago
ephphatha
3bbb80d849
Introduce temporary function to advance the global rng state and discard results
3 years ago
ephphatha
b98e5fcfad
split logic responsible for advancing global generator state to a dedicated function
...
Exposing this also allows updating the engine test case to avoid peeking at the engine state after a roll, also will be useful for setting item/object seeds
3 years ago
ephphatha
03e35988f1
Dedupe OnRespawnItem/OnSpawnItem
...
Both methods were exactly the same apart from the use of temporaries for swapped message params.
3 years ago
staphen
22dacbd819
Load deltas after saving pre-lighting data
3 years ago
staphen
9c3b005c2c
Sync multiplayer door state in ObjChangeMap
3 years ago
Stephen C. Wills
acae4d0ee9
Fix state of doors after ObjChangeMapResync ( #6085 )
3 years ago
obligaron
a632d733c3
Update gbActive correctly when minimizing the app
3 years ago
ephphatha
3a7ae732cd
use unsigned types for item seeds
3 years ago
ephphatha
b7b9996290
Remove global gossip variables and Towner::seed
...
Replace this with a direct reference to the chosen gossip topic when towners are init.
3 years ago
obligaron
2570c2d240
Don't recalculate player position when loading a game
3 years ago
staphen
b62acb088d
Fix width of Monk bow animation
3 years ago
ephphatha
b102dccf81
Fix OOB array access when spawning arena pots
...
calling this with a full inventory would write past the end of InvList, potentially causing a crash or data corruption.
3 years ago
staphen
defc52f9a4
Fixes for book lever synchronization
3 years ago
staphen
49574084e7
Use SDL_SetWindowDisplayMode() to resize fullscreen windows
3 years ago
staphen
5995e7da38
Fix OOB vector access when toggling fullscreen in settings menu
3 years ago
ephphatha
655a5da53e
Make the poison water quest visible in the log when the level is cleared
...
Just in case the player skips talking to pepin and clears the whole quest, make the entry visible in the log.
3 years ago
ephphatha
61e90a592e
Play Pepin's quest intro dialog if the player skips the intro
...
If the player discovers and enters the poison water set level before talking to Pepin the poison water quest does not appear in the quest log and his first set of dialog doesn't play. Handle this case specifically to ensure the player gets the message and can see progress.
3 years ago
Anders Jenbo
13b91b77fc
Fix conversion of old automaps
3 years ago
Anders Jenbo
35442c8781
Fully skip dLight loading
3 years ago
Anders Jenbo
b7424a0068
Clean up PmChangeLightOff()
3 years ago
Anders Jenbo
5a12f7b0d5
Always spawn players in a valid location
3 years ago
Anders Jenbo
261776b255
Correct OOB check in PrepareInnerBorders()
3 years ago
DakkJaniels
b0cb925a5e
Add print screen to event handler for UI ( #6058 )
3 years ago
staphen
fa0147cfa5
Handle window focus events when svid movie is playing
3 years ago
staphen
a74d041041
Reenable lights for active monsters when loading level
3 years ago
Anders Jenbo
4c51e15f26
Update Source/player.cpp
...
Co-authored-by: Stephen C. Wills <staphen@gmail.com>
3 years ago
Anders Jenbo
45c0b780b9
Move back to an exhaustive clearing of players from the current level
3 years ago