diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-04-07 16:47:45 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-04-07 16:47:45 +0300 |
commit | 531fe10f5116e1a82fae33d1826d4d6ad79a0c78 (patch) | |
tree | 30753ab86f16d2d46725226424300e090a350a3b /src | |
parent | 454b07455a9e91c48fc7295df08a748b436e829a (diff) | |
download | minetest-531fe10f5116e1a82fae33d1826d4d6ad79a0c78.tar.gz minetest-531fe10f5116e1a82fae33d1826d4d6ad79a0c78.tar.bz2 minetest-531fe10f5116e1a82fae33d1826d4d6ad79a0c78.zip |
Fix MSVC ambiguous fabs() call errors
Diffstat (limited to 'src')
-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 83a2bcfd1..2af1c7df6 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -934,7 +934,7 @@ public: updateTextures(""); } } - if(fabs(m_prop.automatic_rotate > 0.001)){ + if(fabs(m_prop.automatic_rotate > 0.001f)){ 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.001)) + if(fabs(m_prop.automatic_rotate < 0.001f)) m_yaw = readF1000(is); bool do_interpolate = readU8(is); bool is_end_position = readU8(is); |