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
328a65424d
Add cases for non-arrow missiles
3 years ago
ephphatha
f90e969108
Use multiple samples instead of specific seeds to test missile rotations
...
This is a visual effect, shouldn't need to be repeatable from a specific starting seed (even in multiplayer?)
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
Gleb Mazovetskiy
b90ae7890a
Automate macOS x86_64 release
...
Also cleans up CPack files in other workflows after building (to avoid saving them to cache)
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
Gleb Mazovetskiy
8896a34a13
Overhaul version handling
...
Stop using git for the version tag.
The new process is as follows:
1. The `VERSION` file contains the version.
For release, it should contain "1.5.0".
Immediately after the release, it should be changed to "1.6.0-dev".
2. The build type is included in the version string unless it is
"Release". The commit hash is now included into the version string
whenever the `VERSION` file has a suffix (i.e. 1.5.0-dev rather than
just 1.5.0). The full version string for development builds now
looks like this: `1.5.0-dev-Debug-b102dccf8`.
This means we longer need git or `-DVERSION_NUM` to get a sensible version number.
The in-development versions are now always clearly indicated with the
`-dev` suffix no matter how DevilutionX was built.
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
Gleb Mazovetskiy
9021e3b89e
Automate Linux x86_64 release
...
Also adds `discord_game_sdk.so` to the Linux release builds.
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
Trihedraf
63ef6e7bb9
Instructions for installing WSL
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
b38efb6ccf
Fix code style
3 years ago
Anders Jenbo
6e7ed13336
Add missing Hellfire healing potions to test data
3 years ago
Anders Jenbo
116bd3f626
Decompose iCreateInfo fixture table
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
Oleksandr Kalko
75959793f3
Update Ukrainian TL ( #6053 )
...
* Update from code
* TL Inspection and Arena Pot strings
3 years ago
M0Rf30
a392ecd731
Update Italian localization
3 years ago
staphen
fa0147cfa5
Handle window focus events when svid movie is playing
3 years ago
Gleb Mazovetskiy
ae99697cfc
GitHub actions: Automate i386-linux-gnu release
...
Also updates aarch64 to be basically the same as the i386 one.
3 years ago
Anders Jenbo
eac35f4377
Update Android to gradle 8.0.0 ( #6048 )
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
Gleb Mazovetskiy
77dda702cf
CMake: Update SDL2 to the latest version
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
thiagol-fenix
93cf0dcc2c
Spanish translation - More corrections and adjustments ( #6024 )
...
* more consistent potions description
* more accurate automap translation
* corrected healing spell description
* menu corrections and simplifications
3 years ago
obligaron
bf86114ec3
Sync learned/changed spells
3 years ago