diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-04-07 18:05:06 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-04-07 18:05:06 +0300 |
commit | d228f1b658cb2d0302ffafb0e726b4b4b5b63aa2 (patch) | |
tree | 6bcf330bdd8ae753c5ef3adac72fd14f99fb4d76 | |
parent | 2e60593c5b6cd7cc6d809ea9d3629d2b12f991ac (diff) | |
download | minetest-d228f1b658cb2d0302ffafb0e726b4b4b5b63aa2.tar.gz minetest-d228f1b658cb2d0302ffafb0e726b4b4b5b63aa2.tar.bz2 minetest-d228f1b658cb2d0302ffafb0e726b4b4b5b63aa2.zip |
Fix fabs() brainfart
-rw-r--r-- | src/content_cao.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp index 2af1c7df6..ed33b4952 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -934,7 +934,7 @@ public: updateTextures(""); } } - if(fabs(m_prop.automatic_rotate > 0.001f)){ + if(fabs(m_prop.automatic_rotate) > 0.001){ m_yaw += dtime * m_prop.automatic_rotate * 180 / PI; updateNodePos(); } @@ -1086,7 +1086,7 @@ public: m_position = readV3F1000(is); m_velocity = readV3F1000(is); m_acceleration = readV3F1000(is); - if(fabs(m_prop.automatic_rotate < 0.001f)) + if(fabs(m_prop.automatic_rotate) < 0.001) m_yaw = readF1000(is); bool do_interpolate = readU8(is); bool is_end_position = readU8(is); |