This commit is contained in:
Charles 2001-05-24 22:11:48 +00:00
parent 66331fd831
commit 7199c4545c
2 changed files with 13 additions and 5 deletions

View file

@ -49,7 +49,15 @@ void CNpcFallingPlatformGenerator::think( int _frames )
if ( m_timer < 0 )
{
m_timer = ( 3 * GameState::getOneSecondInFrames() ) + ( getRnd() % ( ( m_data[m_type].initTimer - 1 ) * GameState::getOneSecondInFrames() ) );
s32 second = GameState::getOneSecondInFrames();
m_timer = second;
m_timer += m_data[m_type].initTimer * second;
m_timer += second - ( getRnd() % ( 2 * second ) );
//m_timer = ( 3 * GameState::getOneSecondInFrames() ) + ( getRnd() % ( ( m_data[m_type].initTimer - 1 ) * GameState::getOneSecondInFrames() ) );
// generate new falling platform