Gleb Mazovetskiy
3faeb5628a
Fix `Rectangle::Contains` bounds check
5 years ago
Gleb Mazovetskiy
f84c892807
SaveHelper: Write zeroes on `skip`
...
Instead of writing uninitialized memory to the file, which can lead to
issues with older game versions, we now write zeroes.
One alternative would be to have separate `skip` and `blank` functions
but I think we want the save files from the same state to be
byte-identical, so we always write zeroes.
Fixes #2281
5 years ago
Anders Jenbo
d7a86330c6
Correct assertions in ProcessMonsters
5 years ago
Anders Jenbo
a350fb0b15
Clang-tidy: FunctionCase part 1
5 years ago
Anders Jenbo
b71b0149a3
Clang-tidy: ConstexprVariableCase
5 years ago
Anders Jenbo
5d0507e566
Clang-tidy: readability-identifier-naming.StructCase
5 years ago
Anders Jenbo
e285cacce5
Fix debug builds
5 years ago
Anders Jenbo
4cd916a085
Clang-tidy: EnumConstantCase
5 years ago
Anders Jenbo
c63a420e12
Clang-tidy: apply base naming to merged src
5 years ago
Anders Jenbo
99b84230ad
Give better names to Hellfire tile replacment patterns
5 years ago
Anders Jenbo
9ffafdfcc6
Clean up var init in monster.cpp
5 years ago
Anders Jenbo
7e737cfa96
Merge remote-tracking branch 'refs/remotes/devilution/master'
5 years ago
Anders Jenbo
e426c38adb
Correct AddInitItems
5 years ago
Anders Jenbo
129342d07a
Clang-tidy: GlobalConstantCase
5 years ago
Anders Jenbo
d9e0658643
Clang-tidy: basic naming
5 years ago
Anders Jenbo
3a1a44de34
Fix and clean up AddDoppelganger
5 years ago
Anders Jenbo
50aa3dce0d
Fix GCC warning in inv.cpp
5 years ago
Anders Jenbo
d95a99d9a4
Clean up objects var init
5 years ago
Anders Jenbo
58cddd6e5e
Clean up missiles var init
5 years ago
qndel
fd3893190f
inv cleanup
5 years ago
ephphatha
3f69faaecf
Refactor DrawLifeFlask to minimise bounds checks, add comments
5 years ago
ephphatha
58f3ca9ba3
Refactor player hp percentage calculation to avoid C4244 warnings
5 years ago
ephphatha
6008ea91c1
Address C4244 warnings in MSVC
...
Making Displacement and Point operator*(float) use explicit casts because rounding is desirable.
5 years ago
qndel
373f1db22e
If cleanup + bugfixes ( #2273 )
5 years ago
Anders Jenbo
51b71b01c9
Clean up variable init in drlg files
5 years ago
qndel
dadf418fe0
fix typo ( #2266 )
5 years ago
qndel
a1710ff51e
pass item to CelDrawItem ( #2265 )
...
pass item to CelDrawItem
5 years ago
Anders Jenbo
b1d237c823
More init clean up ( #2262 )
5 years ago
Juliano Leal Goncalves
cbb84199c2
♻️ Replace Point addition with 'Point + Displacement'
5 years ago
Juliano Leal Goncalves
0441ffc2f4
♻️ Move 'fromDirection' from 'Point' type to 'Displacement' type
5 years ago
Juliano Leal Goncalves
7f89420559
✨ Add 'Displacement' type to represent coordinate deltas
5 years ago
obligaron
0755bcc6de
Enable ADL for MA_DEATH
5 years ago
obligaron
05718f2b0b
Enable ADL for MA_GOTHIT
5 years ago
obligaron
0905b8c064
Introduce GameLogicStep
5 years ago
Anders Jenbo
5537fe748e
Clean up debug code
5 years ago
Anders Jenbo
214cc4b356
Check target before attempting to talk to monsters
5 years ago
Anders Jenbo
0f2ad469ea
♻️ Clean up variable initialization
5 years ago
Anders Jenbo
f0e5bd819b
💚 Fix debug builds
...
This the change from 8e07ef8fe5 .
5 years ago
Anders Jenbo
b23f7bfb1d
🐛 Fix password expansion
5 years ago
Anders Jenbo
8e07ef8fe5
Clang-tidy: misc-unused-parameters
5 years ago
Anders Jenbo
e7f0ce2764
Apply cleanups to codec, control, and some of cursor
5 years ago
Anders Jenbo
d9e33b36f4
🔥 Delete FileErrDlg as it is now unused
5 years ago
Juliano Leal Goncalves
f621655a93
♻️ Simplify mouse cursor logic in 'plrctrls' using 'Point'
5 years ago
Juliano Leal Goncalves
a37311ddc4
♻️ Leverage 'Point.Contains' for bound checks related to character buttons
5 years ago
Juliano Leal Goncalves
14429e2b23
♻️ Leverage 'Point' to represent mouse position warping
5 years ago
Juliano Leal Goncalves
fd9f2099d0
♻️ Leverage 'Point' to represent mouse position
5 years ago
Juliano Leal Goncalves
d93e1fdf07
✨ Add 'Contains' function for 'Rectangle'
...
This will be useful for various bound checks throughout the code.
5 years ago
Gleb Mazovetskiy
cdbb56150c
Enable video streaming for Haiku ( #1825 )
5 years ago
Anders Jenbo
d94dd1d746
Avoid multiple tasks per job
5 years ago
ephphatha
921c7af8c6
Expand comments for vanilla RNG functions
...
And put them in the header 😂
5 years ago