X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fobject%2Fpushbutton.cpp;h=45012f33b34c17d28d3489e8ebbebbc23283cf27;hb=3655d32f63f75b2af054ec68d4176e55a561ba96;hp=38f1119802ef35356714bd0e29b0880b5b12a807;hpb=714a30abd887def6331a193216387e66cbfbd1bb;p=supertux.git diff --git a/src/object/pushbutton.cpp b/src/object/pushbutton.cpp index 38f111980..45012f33b 100644 --- a/src/object/pushbutton.cpp +++ b/src/object/pushbutton.cpp @@ -53,10 +53,10 @@ PushButton::collision(GameObject& other, const CollisionHit& hit) { Player* player = dynamic_cast(&other); if (!player) return FORCE_MOVE; - float vy = player->physic.vy; + float vy = player->physic.get_velocity_y(); //player->add_velocity(Vector(0, -150)); - player->physic.vy = -150; + player->physic.set_velocity_y(-150); if (state != OFF) return FORCE_MOVE; if (!hit.top) return FORCE_MOVE;