From 1ca9d278c05c5781afdff47de57358b8cdfe78da Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 24 May 2001 15:39:12 +0000 Subject: [PATCH] --- source/hazard/hrckshrd.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/hazard/hrckshrd.cpp b/source/hazard/hrckshrd.cpp index bb080b78a..1ef822496 100644 --- a/source/hazard/hrckshrd.cpp +++ b/source/hazard/hrckshrd.cpp @@ -23,6 +23,10 @@ #include "utils\utils.h" #endif +#ifndef __VID_HEADER_ +#include "system\vid.h" +#endif + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -78,6 +82,17 @@ void CNpcRockShardHazard::processMovement( int _frames ) 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(); + } } }