mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Fix MSVC ambiguous fabs() call errors
This commit is contained in:
parent
454b07455a
commit
531fe10f51
@ -934,7 +934,7 @@ public:
|
|||||||
updateTextures("");
|
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;
|
m_yaw += dtime * m_prop.automatic_rotate * 180 / PI;
|
||||||
updateNodePos();
|
updateNodePos();
|
||||||
}
|
}
|
||||||
@ -1086,7 +1086,7 @@ public:
|
|||||||
m_position = readV3F1000(is);
|
m_position = readV3F1000(is);
|
||||||
m_velocity = readV3F1000(is);
|
m_velocity = readV3F1000(is);
|
||||||
m_acceleration = 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);
|
m_yaw = readF1000(is);
|
||||||
bool do_interpolate = readU8(is);
|
bool do_interpolate = readU8(is);
|
||||||
bool is_end_position = readU8(is);
|
bool is_end_position = readU8(is);
|
||||||
|
Loading…
Reference in New Issue
Block a user