X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fobject%2Foneup.cpp;h=281aca7ec35da7b00b83ef10f639d1be4324804a;hb=9eab9403c2b9ff629c07380e8d5f1032d21bd3f7;hp=cea25b0ea9eb302a9e76e660419bbb2e0182e92a;hpb=c1277f5b7db9f55d1d28f658b4e804f32b76f0ce;p=supertux.git diff --git a/src/object/oneup.cpp b/src/object/oneup.cpp index cea25b0ea..281aca7ec 100644 --- a/src/object/oneup.cpp +++ b/src/object/oneup.cpp @@ -23,6 +23,8 @@ OneUp::OneUp(const Vector& pos, Direction direction) : 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