Fix MSVC ambiguous fabs() call errors
authorPerttu Ahola <celeron55@gmail.com>
Sat, 7 Apr 2012 13:47:45 +0000 (16:47 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 7 Apr 2012 13:47:45 +0000 (16:47 +0300)
src/content_cao.cpp

index 83a2bcfd15ac1ba124812ad2235c3a41b7f992ab..2af1c7df644adecebfe692b3360d1ae99f6c8702 100644 (file)
@@ -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);