[ Patch #1793 ] Turn physic into POD
[supertux.git] / src / object / oneup.cpp
index bdbaa5e..bafe8bd 100644 (file)
@@ -29,7 +29,8 @@
 OneUp::OneUp(const Vector& pos, Direction direction)
        : MovingSprite(pos, "images/powerups/1up/1up.sprite", LAYER_FLOATINGOBJECTS, COLGROUP_TOUCHABLE)
 {
-  physic.set_velocity((direction == LEFT)?-100:100, -400);
+  physic.vx = ((direction == LEFT)?-100:100);
+  physic.vy = -400;
 }
 
 void