diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2018-04-04 20:49:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-04 20:49:42 +0200 |
commit | 077f231111082272359a916c3e41049aaf699151 (patch) | |
tree | a4401f7b9571a8fbee9ecce185c31d18ff24a8a5 /src/content_cao.cpp | |
parent | 392e80e3f13c977b5499eb424fa7d65085fb08f5 (diff) | |
download | minetest-077f231111082272359a916c3e41049aaf699151.tar.gz minetest-077f231111082272359a916c3e41049aaf699151.tar.bz2 minetest-077f231111082272359a916c3e41049aaf699151.zip |
[clang-tidy] Promote some performance-* as a coding error (#7194)
* Promote performance-type-promotion-in-math-fn as a coding error
* Promote performance-faster-string-find too (which is not problematic currently)
* Same for performance-implicit-cast-in-loop
* Fix remaining tidy points
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r-- | src/content_cao.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp index 81443c824..641093751 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -908,8 +908,7 @@ void GenericCAO::step(float dtime, ClientEnvironment *env) updateTextures(m_previous_texture_modifier); } } - if(!getParent() && fabs(m_prop.automatic_rotate) > 0.001) - { + if (!getParent() && std::fabs(m_prop.automatic_rotate) > 0.001) { m_yaw += dtime * m_prop.automatic_rotate * 180 / M_PI; updateNodePos(); } |