Commit cdfa5312 authored by Gerhard Stein's avatar Gerhard Stein

More more fluent animation in Keen 4 and less workarounds!

parent a9cb3eea
......@@ -613,8 +613,6 @@ void CObject::processActionRoutine()
else if(m_direction == RIGHT)
sprite = m_Action.Right_sprite-124;
calcBouncingBoxes();
if( m_ActionTicker > m_Action.Delay )
{
if( m_Action.Delay != 0 && m_Action.Next_action != 0 )
......
......@@ -37,15 +37,10 @@ void CObject::calcBouncingBoxes(bool firsttime)
{
CSprite &rSprite = g_pGfxEngine->getSprite(sprite);
const int diff_y = bboxY2==0 ? 0 :(int)bboxY2-(int)rSprite.m_bboxY2;
bboxX1 = rSprite.m_bboxX1;
bboxX2 = rSprite.m_bboxX2;
bboxY1 = rSprite.m_bboxY1;
bboxY2 = rSprite.m_bboxY2;
if(!firsttime && g_pBehaviorEngine->getEpisode() > 3)
moveYDir(diff_y);
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment