From: Ricardo Cruz Date: Tue, 25 May 2004 15:32:45 +0000 (+0000) Subject: Disable gravity when on flying platform. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1d182a00d99d763a9c92ab5c73d183e1d4177cc6;p=supertux.git Disable gravity when on flying platform. SVN-Revision: 1326 --- diff --git a/src/player.cpp b/src/player.cpp index 18539a4c1..88b67611c 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -822,6 +822,7 @@ Player::collision(void* p_c_object, int c_object) pplatform_c = (FlyingPlatform*) p_c_object; base.y = pplatform_c->base.y - base.height; + physic.enable_gravity(false); break; default: