X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Foneup.cpp;h=cea25b0ea9eb302a9e76e660419bbb2e0182e92a;hb=78ac7aef674f518549f96160c6354b589553f952;hp=d48b58d070b37c3c1e0da80c16bfbb791a52d244;hpb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;p=supertux.git diff --git a/src/object/oneup.cpp b/src/object/oneup.cpp index d48b58d07..cea25b0ea 100644 --- a/src/object/oneup.cpp +++ b/src/object/oneup.cpp @@ -19,7 +19,8 @@ #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); }