This commit is contained in:
parent
68ca825123
commit
861c534304
8 changed files with 195 additions and 26 deletions
|
@ -3,9 +3,9 @@
|
|||
fgary.cpp
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2000 Climax Development Ltd
|
||||
|
||||
|
@ -34,6 +34,19 @@ void CNpcGaryFriend::think( int _frames )
|
|||
|
||||
groundHeight = CGameScene::getCollision()->getHeightFromGround( Pos.vx, Pos.vy, yMovement + 16 );
|
||||
|
||||
if ( m_platform )
|
||||
{
|
||||
s32 platformHeight = m_platform->getHeightFromPlatformAtPosition( Pos.vx, Pos.vy );
|
||||
|
||||
if ( platformHeight < groundHeight )
|
||||
{
|
||||
groundHeight = platformHeight;
|
||||
}
|
||||
|
||||
//Pos.vy += platformHeight;
|
||||
//return;
|
||||
}
|
||||
|
||||
if ( groundHeight <= 0 )
|
||||
{
|
||||
// groundHeight <= 0 indicates either on ground or below ground
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue