Juliano Leal Goncalves
f54cc5aa95
♻️ Convert 'attribute_id' to a scoped enumeration
5 years ago
Anders Jenbo
007a3256bf
🐛 [hellfire] Sparkling Shrine deals a random amount of damage
...
If cast by traps flash would look in memory a bit before the monster
array for what value to use as damage, no one knows what might have been
there waiting so could deal anything form -254 to 254 damage.
Fixes #1500
5 years ago
thebigMuh
120383d232
Fix Search/Rage/Lightningwall ignoring clvl of player 0 ( #1501 )
5 years ago
Juliano Leal Goncalves
8cf972e843
♻️ Move 'HeroClass::ClassCount' to external tracking template
...
This eliminates the problem where the compiler complains we are not handling all enumeration values by moving the "hack" counting member into somewhere else external to the enum.
5 years ago
obligaron
9fbe139f64
cache ProgressToNextGameTick and update it only once before rendering
5 years ago
obligaron
c7b9ffec1f
Decouple Animations from Gamelogi (Smooth Animations for skipped Frames).
...
NewPlrAnim: Use default arguments instead of overloads
StartPlrHit: Fix skippedAnimationFrames - Frames starts with 1
Add missing comment for StartPlrHit
Fix GotHit-Animation: Skipping Frames corrected and adjusted _pAnimGameTicksSinceSequenceStarted for animations that don't start with a additional tick.
Thanks @StephenCWills for the gothit skipping frame calculation logic :-)
Update StartWalk: calculated numSkippedFrames in own line.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
StartPlrHit: always initialize skippedAnimationFrames
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Update nthread_GetProgressToNextGameTick comment
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
fix spelling "lenght" instead of "length"
Update NewPlrAnim comment
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
GetFrameToUseForPlayerRendering: avoid one "else"
5 years ago
Juliano Leal Goncalves
28ad9d43c5
🎨 Rename 'plr_class' enum to 'HeroClass'
...
Members were renamed as well for readability.
5 years ago
Juliano Leal Goncalves
7d95bfed39
♻️ Convert 'plr_class' to a scoped enumeration
5 years ago
Gleb Mazovetskiy
77632cd83e
`world_draw_black_tile`: Stop relying on buffer padding
5 years ago
qndel
ced74f76f9
fix gharbad and vision
5 years ago
Gleb Mazovetskiy
135f5e03c7
Only write to the file once when saving
5 years ago
Austin Wagner
c46d31c993
Fix manual gold stacking when max is modified
...
Affects dragging and dropping gold in inventory and gaining gold via
purchases when the Auric Amulet is equipped
5 years ago
Gleb Mazovetskiy
2f3e0cb18e
SDL1: Backport SDL2 logging
...
1. Backports SDL2 logging.
2. Adds a `--verbose` flag.
3. As an example, adds logging priority and category to a few log calls.
5 years ago
qndel
25095b2ee6
fix uninitialized
5 years ago
Anders Jenbo
6cfcc4708e
♻️ Simplify Diablos health adjusment.
5 years ago
Anders Jenbo
9331d4b3d3
🐛 Some Hellfire monsters not having the correct HP
...
Bone Demon
Flesh Thing
Reaper
Na-Krul
5 years ago
Anders Jenbo
b28a5d2d08
🔨 Align .clang-format files
5 years ago
Gleb Mazovetskiy
77d0bb6690
Enable compiler checks for printf-like functions
5 years ago
qndel
a69c1ceebf
fix wirt price bug
5 years ago
qndel
99de12dfd8
fix wirt + some code cleanup
5 years ago
qndel
516fc4e83d
fix vanilla premium items going over 140k
5 years ago
Anders Jenbo
a6292e23ff
🐛 Set the default save game state
5 years ago
Anders Jenbo
a1dabf3aba
🐛 Fix Hellfire save games corrupting game state in Windows
5 years ago
Stephen C. Wills
a80aa286d3
Fixed data type of quest _qmsg in save files. ( #1475 )
5 years ago
qndel
b94ef06791
fix enums
5 years ago
Gleb Mazovetskiy
26a9930a70
Stop relying on buffer padding in CelBlitSafeTo
5 years ago
Gleb Mazovetskiy
db3eaacfcf
Stop relying on buffer padding in cursor rendering
...
Follow-up to #1173
5 years ago
Anders Jenbo
224f06ca03
Split up OperateShrine ( #1459 )
5 years ago
Anders Jenbo
819fd40376
🎨 Consistent enum value style ( #1458 )
5 years ago
Anders Jenbo
e7ae8ddd04
🚚 Move all enums to there respective headers
5 years ago
Anders Jenbo
52401c9677
💚 Correct include headers
5 years ago
Anders Jenbo
dc84643fe6
🚚 Move dx.cpp and sound.cpp back in to Source now that the name space is clean
5 years ago
Anders Jenbo
ba6b031fa1
✅ Enable all remaning assertions ( #1453 )
5 years ago
Anders Jenbo
9d037bafff
🚨 Fix remaning clang warnings
5 years ago
Anders Jenbo
b46750ace3
♻️ Change _qflags to a meaningful bool
5 years ago
Anders Jenbo
6530780980
🎨 Apply enums to towners
5 years ago
Anders Jenbo
2732aea1b2
♻️ Use GameInfo instead of individual globals
5 years ago
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
5 years ago
Anders Jenbo
4f8b5e2f5f
🎨 Correct style of true comparisons
5 years ago
Anders Jenbo
36ebd857ad
🎨 Correct style of false comparisons
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
4ee84aea1a
♻️ Change BOOLEAN to bool
...
fixup BOOLEAN
5 years ago
FluffyQuack
9c850a1ab0
🐮 Removed redundant init of gameplay variables from config.
5 years ago
qndel
b845f2d8f2
small griswold cleanup ( #1440 )
5 years ago
Gleb Mazovetskiy
461da3cda0
Optimize ItemStruct sizeof: 360 -> 296
...
Can likely be optimized further
5 years ago
Gleb Mazovetskiy
ec4da72f9e
Optimize TownerStruct
...
1. Remove unused fields.
2. Optimize used fields for size.
3. Rename `_tVar1` to `_tTalkingToPlayer`.
5 years ago
Gleb Mazovetskiy
cafa956bf3
Reduce sizes of THEME_LOC (20->10) and ThemeStruct
5 years ago
Gleb Mazovetskiy
29b5526064
dMonster array: int -> int16_t
5 years ago
Anders Jenbo
6fcca51ec6
🐛 Fix loading missiles
5 years ago