From cd7e60ae8140077bf30919e7b4a4efbe6ab3cc1e Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 22 May 2001 20:01:07 +0000 Subject: [PATCH] --- source/hazard/hrrock.cpp | 72 ---------------------------------------- 1 file changed, 72 deletions(-) diff --git a/source/hazard/hrrock.cpp b/source/hazard/hrrock.cpp index 161fcb3a7..100685bcc 100644 --- a/source/hazard/hrrock.cpp +++ b/source/hazard/hrrock.cpp @@ -151,78 +151,6 @@ void CNpcRollingRockHazard::processMovement( int _frames ) } } - - - - - - - /*if ( m_npcPath.thinkFlat( Pos, &pathComplete, &distX, &distY, &m_heading ) ) - { - if ( pathComplete ) - { - // reset - - Pos = m_base; - m_npcPath.resetPath(); - - return; - } - else - { - // check for vertical movement - - groundHeight = m_layerCollision->getHeightFromGround( Pos.vx, Pos.vy, yMovement + 16 ); - - if ( groundHeight <= yMovement ) - { - // groundHeight <= yMovement indicates either just above ground or on or below ground - - moveY = groundHeight; - } - else - { - // fall - - moveY = yMovement; - } - } - } - else - { - // check for collision - - distX = distX / abs( distX ); - - if ( m_layerCollision->getHeightFromGround( Pos.vx + ( distX * 3 * _frames ), Pos.vy ) < -maxHeight ) - { - // there is an obstacle in the way, increment the path point (hopefully this will resolve the problem) - - m_npcPath.incPath(); - } - else - { - // check for vertical movement - - groundHeight = m_layerCollision->getHeightFromGround( Pos.vx, Pos.vy, yMovement + 16 ); - - moveX = distX * 3 * _frames; - - if ( groundHeight <= yMovement ) - { - // groundHeight <= yMovement indicates either just above ground or on or below ground - - moveY = groundHeight; - } - else - { - // fall - - moveY = yMovement; - } - } - }*/ - if ( moveX < 0 ) { m_rotation -= 64 * _frames;