1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-15 13:55:11 -05:00

Fix fabs() brainfart

This commit is contained in:
Perttu Ahola 2012-04-07 18:05:06 +03:00
parent 2e60593c5b
commit d228f1b658

View File

@ -934,7 +934,7 @@ public:
updateTextures(""); 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; 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.001f)) if(fabs(m_prop.automatic_rotate) < 0.001)
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);