Badguys that die will still trigger collisions during the current frame (closes issue 50)
[supertux.git] / src / badguy / mole.cpp
index d3e4e46..5132743 100644 (file)
@@ -27,8 +27,8 @@
 #include "log.hpp"
 #include "level.hpp"
 
-static const float IDLE_TIME = 0.2; /**< time to wait before and after throwing */
-static const float THROW_TIME = 4.6; /**< time to spend throwing */
+static const float IDLE_TIME = 0.2f; /**< time to wait before and after throwing */
+static const float THROW_TIME = 4.6f; /**< time to spend throwing */
 static const float THROW_INTERVAL = 1; /**< time between two thrown rocks */
 static const float THROW_VELOCITY = 400; /**< initial velocity of thrown rocks */
 
@@ -132,7 +132,7 @@ Mole::active_update(float elapsed_time)
 
 }
 
-void 
+void
 Mole::set_state(MoleState new_state)
 {
   switch (new_state) {
@@ -166,4 +166,3 @@ Mole::set_state(MoleState new_state)
 }
 
 IMPLEMENT_FACTORY(Mole, "mole")
-