obligaron
e1e92ad777
Fix PlaceUniques calculates wrong monster type
5 years ago
obligaron
32b980ccb7
Rename GetVileMissPos -> UpdateVileMissPos
5 years ago
obligaron
d974826a07
Rename GetMissileVel -> UpdateMissileVel
5 years ago
obligaron
16fd46c6a2
Rename GetMissilePos -> UpdateMissilePos
5 years ago
obligaron
4db49ce6f9
Fix MI_Rhino don't update dMonster correctly
5 years ago
Andrew James
c7e3bb4ae7
Introduce template form of skip to represent deprecated variables ( #2309 )
5 years ago
Anders Jenbo
bc0d1f7ac0
clang-tidy/Android Stuidio cleanups 3
5 years ago
Anders Jenbo
d877287636
🐛 Correct missile ring offset
...
See https://github.com/diasurgical/devilution/pull/2237
5 years ago
Anders Jenbo
6690af350e
Clean up missiles.cpp
5 years ago
Vladimir Olteanu
2d3ad5e3f0
Main menu: make title char *
5 years ago
Anders Jenbo
bc59218d0d
More clang-tidy/Android Studio cleanups
5 years ago
NikoVP
fb2b0e9d8c
Create bg.po
5 years ago
RISHABH BUDHIRAJA
b5b3fd3958
fix: DrawMissile code doesn't handle cases where dMissile[x][y] == 0
5 years ago
Anders Jenbo
235b0ee06c
💚 Fix remaning compiler warnings for GCC and CLang
5 years ago
Anders Jenbo
cb564a2d54
Clean up A-D
5 years ago
Gleb Mazovetskiy
55464eec78
Fix `-Wmissing-braces`
...
Fixes warnings such as this one:
```
../../../../../../Source/engine/render/text_render.hpp:83:33: warning: suggest braces around initialization of subobject [-Wmissing-braces]
return DrawString(out, text, { position.x, position.y, out.w() - position.x, 0 }, flags, spacing, lineHeight, drawTextCursor);
^~~~~~~~~~~~~~~~~~~~~~
```
5 years ago
Anders Jenbo
4eabc6024b
Apply various cleanups via Android Studio
5 years ago
Anders Jenbo
372b1dcba2
Clang-tidy: readability-identifier-naming.MemberCase: camelBack
5 years ago
Anders Jenbo
a7c7fa0030
Fully apply clang-tidy/format to all files
5 years ago
Anders Jenbo
ecea12fc15
Clang-tidy: ParameterCase
5 years ago
Anders Jenbo
fc353fc799
Clang-tidy: FunctionCase
5 years ago
Anders Jenbo
ee2e7518c4
Clang-tidy: FunctionCase part 2
5 years ago
Andrew James
3508aa6d3d
Align Life/Mana flask drawing routines ( #2291 )
...
* Clamp hpPer as a sanity check
* Refactor update mana routines in control.cpp to use PlayerStruct::UpdateManaPercentage
* Remove unnecessary calls to UpdateHP/ManaPercentage
* Unify logic that draws the flasks into a single internal function
* Fix style violations
* Remove unnecessary save/loads of hp/manaPer
The way this variable is used expects a value in this range and it gets clamped again anyway, but this makes the code more similar to the manaPer logic for future refactoring
Identical logic in use, the checks to see if the values are negative can be accomplished using clamp and the same divide by zero guard. I'll combine the two attributes in a near future commit.
control_update_life_mana is called during the game loop before any of the drawing functions so hpPer/manaPer are calculated based on the latest current/max of their respective attributes every frame.
There's no need to do the calculation again in the draw routines. (There's also no need to calculate this every frame but that's going to take a bit to untangle.)
5 years ago
FreeCap23
e1f2fbcb9b
Fixed typo
...
Changed verion to version
5 years ago
Gleb Mazovetskiy
cb0dae8590
🚚 Rename `CelOutputBuf` to `Surface` and extract
5 years ago
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