diff --git a/Graphics/levels/Chapter04/Level02/Level02.MEX b/Graphics/levels/Chapter04/Level02/Level02.MEX index 1e33f70d4..45d978bca 100644 Binary files a/Graphics/levels/Chapter04/Level02/Level02.MEX and b/Graphics/levels/Chapter04/Level02/Level02.MEX differ diff --git a/Graphics/levels/Chapter04/Level02/Level02.Mep b/Graphics/levels/Chapter04/Level02/Level02.Mep index 3982d4aa4..2c528502d 100644 Binary files a/Graphics/levels/Chapter04/Level02/Level02.Mep and b/Graphics/levels/Chapter04/Level02/Level02.Mep differ diff --git a/source/player/player.cpp b/source/player/player.cpp index 7eafe7123..3af67fc4e 100644 --- a/source/player/player.cpp +++ b/source/player/player.cpp @@ -2611,8 +2611,8 @@ void CPlayer::shove( DVECTOR const &move ) while( xDist ) { - colHeight=CGameScene::getCollision()->getHeightFromGround(Pos.vx+xDist,Pos.vy,5); - if ( colHeight < 0 ) + colHeight=CGameScene::getCollision()->getHeightFromGround(Pos.vx+xDist,Pos.vy-HEIGHT_FOR_HEAD_COLLISION,HEIGHT_FOR_HEAD_COLLISION+1); + if ( colHeight < HEIGHT_FOR_HEAD_COLLISION ) { break; } @@ -2641,7 +2641,7 @@ void CPlayer::shove( DVECTOR const &move ) } } - if(colHeight<0) + if(colHeightgetHeightFromGround(cx,Pos.vy)<0) + if(CGameScene::getCollision()->getHeightFromGround(cx,Pos.vy-HEIGHT_FOR_HEAD_COLLISION,HEIGHT_FOR_HEAD_COLLISION+1)