Precalculated renderer specific surface data, better management of multiple renderers...
[supertux.git] / src / badguy / darttrap.cpp
index 9bb2eaa..7c6a84b 100644 (file)
@@ -23,7 +23,7 @@
 #include "dart.hpp"
 
 namespace {
-  const float MUZZLE_Y = 28; /**< [px] muzzle y-offset from top */
+  const float MUZZLE_Y = 25; /**< [px] muzzle y-offset from top */
 }
 
 DartTrap::DartTrap(const lisp::Lisp& reader)
@@ -56,7 +56,7 @@ DartTrap::activate()
   sprite->set_action(dir == LEFT ? "idle-left" : "idle-right");
   set_group(COLGROUP_DISABLED);
 
-  if (initial_delay == 0) initial_delay = 0.1;
+  if (initial_delay == 0) initial_delay = 0.1f;
   fire_timer.start(initial_delay);
 }