This commit is contained in:
parent
6c32ee7a11
commit
99a191237b
2 changed files with 8 additions and 5 deletions
|
@ -29,7 +29,8 @@ void CNpcEnemy::processSmallJellyfishMovementModifier( int _frames, s32 distX, s
|
|||
s32 newX, newY;
|
||||
s32 preShiftX, preShiftY;
|
||||
|
||||
u16 jellyfishData[5] = { 96, 192, 256, 192, 128, };
|
||||
//u16 jellyfishData[5] = { 96, 192, 256, 192, 128, };
|
||||
u16 jellyfishData[6] = { 256, 192, 96, 48, 96, 128, };
|
||||
|
||||
u32 dataPoint;
|
||||
|
||||
|
@ -40,13 +41,15 @@ void CNpcEnemy::processSmallJellyfishMovementModifier( int _frames, s32 distX, s
|
|||
m_movementTimer = 0;
|
||||
}
|
||||
|
||||
dataPoint = 4 * m_movementTimer;
|
||||
dataPoint = 5 * m_movementTimer;
|
||||
|
||||
if ( dataPoint != 0 )
|
||||
{
|
||||
dataPoint /= GameState::getOneSecondInFrames();
|
||||
}
|
||||
|
||||
m_frame = ( m_movementTimer * m_actorGfx->getFrameCount(m_animNo) ) / GameState::getOneSecondInFrames();
|
||||
|
||||
s32 resistance;
|
||||
s32 absVelocity = abs( m_velocity );
|
||||
s32 reqVelocity = dist;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue