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
staphen
45da8b2295
Remove unique monster's light when no corpse is left behind
3 years ago
staphen
82cf475b05
Change Na-Krul's animation rates from 0 to 1
3 years ago
staphen
08592377a7
Clean up logic for PT_MESSAGE prioritization
3 years ago
obligaron
bf86114ec3
Sync learned/changed spells
3 years ago
obligaron
7985a9211d
Change Player::_pSplLvl to uint8_t
3 years ago
DakkJaniels
000516ebf9
Update gendung.h ( #6038 )
3 years ago
Anders Jenbo
12fa487cb5
Fix build
3 years ago
Anders Jenbo
6998906b32
Hellfire: let light affect the player
3 years ago
qndel
d97f265cb1
light fix
3 years ago
Anders Jenbo
124cc71800
Update realtime lighting when static lights are changed
3 years ago
Anders Jenbo
c3fafa1aff
Move list of lightemitting objects to AddObjectLight()
3 years ago
Anders Jenbo
2f908277a8
Apply pre calculated lighting for quest levels
3 years ago
Anders Jenbo
acf98f2bdc
Fix wrong check for light level
...
Introduced in 13c5c09990
3 years ago
Anders Jenbo
f345087e75
Fix Lazarus glowing inside the wall
3 years ago
Anders Jenbo
4db65d94de
Add glow to Crypt lava tiles
3 years ago
staphen
f30c42c3a8
Use symlinks to work around lack of Unicode support for paths in ZeroTier
3 years ago
Anders Jenbo
eef0b10e1f
Hellfire: Fix light fall off not with in it's radious
3 years ago
Anders Jenbo
6ba5998a97
Unset all vision before updating current ones
3 years ago
Anders Jenbo
d8b5c3a970
Fix light brightness pop on load
3 years ago