Make Tux run automatically. As before, if he is carrying something Tux
[supertux.git] / src / object / oneup.cpp
index bafe8bd..bdbaa5e 100644 (file)
@@ -29,8 +29,7 @@
 OneUp::OneUp(const Vector& pos, Direction direction)
        : MovingSprite(pos, "images/powerups/1up/1up.sprite", LAYER_FLOATINGOBJECTS, COLGROUP_TOUCHABLE)
 {
-  physic.vx = ((direction == LEFT)?-100:100);
-  physic.vy = -400;
+  physic.set_velocity((direction == LEFT)?-100:100, -400);
 }
 
 void