Anders Jenbo
5745f099ba
♻️ Use Point for positions in msg.cpp functions
5 years ago
Anders Jenbo
ff1bcb0d03
♻️ Clean up ItemDoppel
5 years ago
Anders Jenbo
bd515ac75d
♻️ Apply Point equality operator
5 years ago
qndel
0af36dc416
rename upper->uper
5 years ago
Anders Jenbo
48dbb47d70
🌐 Apply static translations
5 years ago
thebigMuh
5f288cbd43
Fixes small AC malus of less than 1 resulting in a bonus of 1 AC
5 years ago
thebigMuh
ad8f342db0
Adding constness
5 years ago
John Törnblom
e0dddf508a
Add automatically translated string literals ( #1694 )
5 years ago
obligaron
239a43cc1c
Remove "AnimWidth2" expect for missiles ( #1680 )
5 years ago
Anders Jenbo
2bd13451a1
♻️ Apply point positioning to all remaning entities
5 years ago
Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
5 years ago
Anders Jenbo
433fc9fa8d
💚 Packport std::clamp for pre GCC 7.1
5 years ago
Anders Jenbo
a5f062b747
🎨 Use stdint instead of SDL types
5 years ago
Anders Jenbo
72ad648e9a
♻️ Cleanup some min/max/clamp logic
...
Apply suggestions from code review
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
Co-authored-by: thebigMuh <81810641+thebigMuh@users.noreply.github.com>
5 years ago
Anders Jenbo
e4cfad3196
♻️ Use points instead of individual fileds for player structure
5 years ago
Anders Jenbo
a32ac83090
🎨 cleanup trivial trype comparisons
5 years ago
Anders Jenbo
593c6a6f17
🎨 Drop unused param and rename random_ to GenerateRnd
5 years ago
Anders Jenbo
f004c78824
🧹 performance-unnecessary-value-param
5 years ago
Anders Jenbo
d024f79b0e
🧹 performance-unnecessary-value-param
5 years ago
Jmgr
1d84156509
Simplify bitshift divisions/multiplications
5 years ago
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
5 years ago
Anders Jenbo
c89bd9c001
🚨 Fix remaning warnings for clang and gcc
5 years ago
Anders Jenbo
5fdb9ce459
🎨 Format code
5 years ago
staphen
26fdd1fb2e
Clean up unnecessary Mana Shield processing in CalcPlrItemVals().
5 years ago
Gleb Mazovetskiy
95946e3a7c
🧹 Cleanup unused variables ( #1584 )
...
Fixes `unused-variable` and `unused-but-set-variable` compiler warnings.
5 years ago
Juliano Leal Goncalves
f8871aab07
♻️ Unify most valuable player item logic on new method
5 years ago
qndel
d8444ed695
Clean DrawInvBelt + outline colors
...
* fix right hand items
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
5 years ago
obligaron
f2c7446134
bugfix idle animation after equipping/unequipping
5 years ago
Yuri Pourre
ed1ddfdece
Exposes player id from multi_send_packet
5 years ago
Juliano Leal Goncalves
cc5f2a8f49
🎨 Rename 'attribute_id' enum to 'CharacterAttribute'
...
Members were renamed as well for readability.
5 years ago
Juliano Leal Goncalves
f54cc5aa95
♻️ Convert 'attribute_id' to a scoped enumeration
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
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
qndel
25095b2ee6
fix uninitialized
5 years ago
qndel
8dbdc9c315
fix wirt price bug
5 years ago
qndel
adacce3303
fix wirt
5 years ago
qndel
1907b11cee
fix vanilla premium items going over 140k
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
819fd40376
🎨 Consistent enum value style ( #1458 )
5 years ago
Anders Jenbo
e7ae8ddd04
🚚 Move all enums to there respective headers
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
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago