[cppcheck] Part 2: Some further style fixes etc.
[supertux.git] / src / object / oneup.cpp
index d48b58d..281aca7 100644 (file)
 #include "supertux/sector.hpp"
 
 OneUp::OneUp(const Vector& pos, Direction direction) :
-  MovingSprite(pos, "images/powerups/1up/1up.sprite", LAYER_FLOATINGOBJECTS, COLGROUP_TOUCHABLE)
+  MovingSprite(pos, "images/powerups/1up/1up.sprite", LAYER_FLOATINGOBJECTS, COLGROUP_TOUCHABLE),
+  physic()
 {
   physic.set_velocity((direction == LEFT)?-100:100, -400);
+  if(direction == DOWN) // this causes the doll to drop when opened with a butt-jump
+    physic.set_velocity(0, -100);
 }
 
 void