This commit is contained in:
Charles 2001-07-05 21:50:02 +00:00
parent dec3ff76ef
commit fd97883718
7 changed files with 145 additions and 12 deletions

View file

@ -40,6 +40,14 @@ void CNpcFallingBlockPlatform::postInit()
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcFallingBlockPlatform::trigger()
{
m_isTriggered = true;
m_timer = GameState::getOneSecondInFrames();
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcFallingBlockPlatform::processMovement( int _frames )
{
if ( m_isTriggered )
@ -80,11 +88,6 @@ void CNpcFallingBlockPlatform::processMovement( int _frames )
Pos.vy += moveY;
}
}
else if ( m_contact )
{
m_isTriggered = true;
m_timer = GameState::getOneSecondInFrames();
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////