From 62c0fd8e93093323c105acd16d5f8d5babf14f19 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 21 Aug 2001 16:55:47 +0000 Subject: [PATCH] --- source/platform/pfblock.cpp | 50 ------------------------------------- 1 file changed, 50 deletions(-) diff --git a/source/platform/pfblock.cpp b/source/platform/pfblock.cpp index 748826a43..8736a474f 100644 --- a/source/platform/pfblock.cpp +++ b/source/platform/pfblock.cpp @@ -160,56 +160,6 @@ CRECT const &collisionArea=getCollisionArea(); m_contact = true; } - else - { - DVECTOR shove; - int leftDist = playerCollisionArea.x2 - collisionArea.x1; - int rightDist = collisionArea.x2 - playerCollisionArea.x1; - - if ( leftDist < rightDist ) - { - shove.vx = -leftDist; - } - else - { - shove.vx = rightDist; - } - shove.vy = 0; - - player->shove( shove ); - } - } - else - { - int testPosY; - - testPosY = playerPos.vy - CPlayer::HEIGHT_FOR_HEAD_COLLISION; - - if ( testPosY >= collisionArea.y1 && testPosY <= collisionArea.y2 ) - { - // player's head is colliding with platform, but feet aren't - - player->forceFall(); - - if ( collisionArea.y2 - testPosY > 8 ) - { - DVECTOR shove; - int leftDist = playerCollisionArea.x2 - collisionArea.x1; - int rightDist = collisionArea.x2 - playerCollisionArea.x1; - - if ( leftDist < rightDist ) - { - shove.vx = -leftDist; - } - else - { - shove.vx = rightDist; - } - shove.vy = 0; - - player->shove( shove ); - } - } } } }