This commit is contained in:
parent
3960a89e99
commit
1ca9d278c0
1 changed files with 15 additions and 0 deletions
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue