This commit is contained in:
Charles 2001-05-24 15:39:12 +00:00
parent 3960a89e99
commit 1ca9d278c0

View file

@ -23,6 +23,10 @@
#include "utils\utils.h" #include "utils\utils.h"
#endif #endif
#ifndef __VID_HEADER_
#include "system\vid.h"
#endif
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -78,6 +82,17 @@ void CNpcRockShardHazard::processMovement( int _frames )
Pos.vy += yMovement; Pos.vy += yMovement;
} }
DVECTOR offset = CLevel::getCameraPos();
s32 yPos = Pos.vy - offset.vy;
if ( yPos > VidGetScrH() )
{
m_isActive = false;
m_timerActive = true;
m_timer = ( m_respawnRate - 1 ) * GameState::getOneSecondInFrames();
}
} }
} }