m_gravity was set on the line above, so the condition will always be false.

This commit is contained in:
Michael Cochez 2022-02-12 00:39:45 +01:00
parent c3b2eaf3e2
commit eb7a5b2ee6

View File

@ -47,8 +47,6 @@ void Cake::init(const XMLNode &node, scene::IMesh *cake_model)
float max_distance = 80.0f;
m_gravity = 9.8f;
if (m_gravity < 0) m_gravity *= -1.0f;
node.get("max-distance", &max_distance );
m_st_max_distance_squared = max_distance*max_distance;
} // init