Disable gravity when on flying platform.
authorRicardo Cruz <rick2@aeiou.pt>
Tue, 25 May 2004 15:32:45 +0000 (15:32 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Tue, 25 May 2004 15:32:45 +0000 (15:32 +0000)
SVN-Revision: 1326

src/player.cpp

index 18539a4..88b6761 100644 (file)
@@ -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: