This commit is contained in:
parent
45e993fffa
commit
2ef77639d3
6 changed files with 36 additions and 3 deletions
|
@ -1455,7 +1455,17 @@ void CNpcEnemy::processEnemyCollision( CThing *thisThing )
|
|||
}
|
||||
|
||||
Pos.vx += otherDelta.vx;
|
||||
Pos.vy += otherDelta.vy;
|
||||
|
||||
s32 groundHeight = m_layerCollision->getHeightFromGround( Pos.vx, Pos.vy, 16 );
|
||||
|
||||
if ( groundHeight < 8 )
|
||||
{
|
||||
Pos.vy += groundHeight;
|
||||
}
|
||||
else
|
||||
{
|
||||
Pos.vy += otherDelta.vy;
|
||||
}
|
||||
|
||||
m_heading = headingFromTarget;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue