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
Anders Jenbo
8f3266244a
Clang-tidy: readability-else-after-return
5 years ago
Anders Jenbo
790f42d078
Clang-tidy: readability-inconsistent-declaration-parameter-name
5 years ago
Anders Jenbo
939003311a
Clang-tidy: readability-make-member-function-const
5 years ago
Anders Jenbo
d3098412ed
Clang-tidy: readability-non-const-parameter
5 years ago
Anders Jenbo
7102724fda
Clang-tidy: readability-named-parameter
5 years ago
Anders Jenbo
de4ced7e4f
Clang-tidy: readability-qualified-auto
5 years ago
Anders Jenbo
f4f8f22699
Clang-tidy: readability-redundant-control-flow
5 years ago
Anders Jenbo
48113d064a
Clang-tidy: readability-redundant-declaration
5 years ago
Anders Jenbo
2641932763
Clang-tidy: readability-static-accessed-through-instance
5 years ago
Anders Jenbo
19d980582f
Clang-tidy: readability-static-definition-in-anonymous-namespace
5 years ago
Anders Jenbo
ef2f3579df
Enable level 2 warnigns on MSVC
5 years ago
Anders Jenbo
d9a04b8390
🚨 Fix bool warning
5 years ago
Anders Jenbo
bf221f4322
Clang-tidy: readability-simplify-boolean-expr
5 years ago
obligaron
d4bda3c13e
ADL: correct comment typo
5 years ago
obligaron
801207a8ac
ADL: Handle incorrect TicksSinceSequenceStarted better
5 years ago
staphen
8fbe5efd9e
Switch custom RNG for libsodium
5 years ago
staphen
4ab13f304b
Bring in ASIO fixes for Switch
5 years ago
staphen
c5fc37eca2
Stub missing functions for Switch
5 years ago
staphen
0784ab857c
Headers for Switch asio compilation
5 years ago
staphen
2ae44a3bf6
Enable TCP in Switch build
5 years ago
Gianluca Boiano
9dd05d7666
🌐 Update Italian localization ( #2235 )
5 years ago
Anders Jenbo
2bdb6caa07
Cleanup majority of remaning implicit bool conversions ( #2234 )
5 years ago
Anders Jenbo
1ac8987c58
🐛 Fix drlg1 algo
5 years ago
ephphatha
2fa4178aff
Refactor Operate*Door functions with meaningful variable names
5 years ago
ephphatha
f4f6a8a51e
Refactor PlaySfxLoc to take a Point instead of x/y params
...
Because of the heavy usage of this function in objects.cpp and the mixed use of aliases and direct references to the active object in Operate*Door functions I've done some refactoring of those areas beyond what is strictly necessary. Hopefully this makes sense and is reasonable to include in this change.
5 years ago
ephphatha
bccf88dd8e
Refactor PlaySFX_priv to take a Point instead of x/y params
5 years ago
ephphatha
15c285c879
Refactor calc_snd_position to take a Point instead of x/y params
...
Appears this function is only called internally despite being in the effects header.
5 years ago
Anders Jenbo
d8fa29c972
Clean up more implicit bool conversion
5 years ago
Anders Jenbo
eb2cd5f654
♻️ Create QuickMessage struct
5 years ago