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
ephphatha
921c7af8c6
Expand comments for vanilla RNG functions
...
And put them in the header 😂
5 years ago
ephphatha
357f6f1dc3
Move RNG functions to their own header/source files
5 years ago
Anders Jenbo
db3d1d4054
Revert and disable readability-convert-member-functions-to-static
...
This breaks on GCC 6.3
5 years ago
Anders Jenbo
a17d96129f
Fix NOLINT line for readability-convert-member-functions-to-static
...
Reverts: acd74cc0e3
5 years ago
Andrew James
20190ee687
Update random number functions to avoid IB ( #2226 )
...
* Update random number functions to avoid IB
Most calls to set seed were using uint32_t already, there were a few variables which were better served by having their type changed from signed to unsigned. The one exception is ItemStruct::_iSeed. This is an identifier that also happens to be used as a seed occasionally so a comment was added documenting this exception.
Includes suggested style changes for Source/towners.h; Source/towners.cpp; Source/msg.h; Source/multi.h
5 years ago
obligaron
3a9cc631c7
Rename DelayLen -> TicksPerFrame
...
Rename DelayCounter -> TickCounterOfCurrentFrame
5 years ago
obligaron
3ba4bac5e2
Harmonize DelayLen for Player and Monster (was 1-based on monseter (>= DelayLen) and 0-based on player (> DelayLen). Now both are 1-based (>= DelayLen)
5 years ago
Anders Jenbo
0a00d1d7ba
♻️ Use a switch for AddClassHealingBonus
5 years ago
Anders Jenbo
8a4d38dd74
Stabalize clang-tidy runs
5 years ago
Anders Jenbo
fa54499aeb
Clang-tidy: readability-uppercase-literal-suffix
...
Strip suffixes
5 years ago
Anders Jenbo
d8729e6433
Clang-tidy: bugprone-argument-comment
5 years ago
Anders Jenbo
871f168ea0
Clang-tidy: bugprone-reserved-identifier
5 years ago
Anders Jenbo
57caa192fb
Clang-tidy: performance-move-const-arg
5 years ago
Anders Jenbo
51d5c8bcab
Clang-tidy: performance-unnecessary-value-param
5 years ago
Anders Jenbo
f167bd4dfb
Clang-tidy: llvm-include-order
5 years ago
Anders Jenbo
e11b86b6f1
Clang-tidy: llvm-namespace-comment
5 years ago
Anders Jenbo
8c76d45797
Clang-tidy: modernize-avoid-bind
5 years ago
Anders Jenbo
9ea499e7f4
Clang-tidy: modernize-pass-by-value
5 years ago
Anders Jenbo
2fdbd39bb0
Clang-tidy: modernize-raw-string-literal
5 years ago
Anders Jenbo
bf780be1ed
♻️ Cleanup all implicit bool conversions
5 years ago
Anders Jenbo
ec8d7bebe2
Clang-tidy: modernize-use-auto
5 years ago
Anders Jenbo
17e67d2b90
Clang-tidy: modernize-use-equals-default
5 years ago
Anders Jenbo
5bb8f184db
Clang-tidy: modernize-use-nodiscard
5 years ago
Anders Jenbo
acd74cc0e3
Clang-tidy: readability-convert-member-functions-to-static
5 years ago