This commit is contained in:
Charles 2001-05-31 21:36:10 +00:00
parent b9ad89d6a0
commit d3b7e5b701
2 changed files with 22 additions and 0 deletions

View file

@ -143,3 +143,24 @@ void CNpcGaryFriend::setupWaypoints( sThingActor *ThisActor )
m_triggerPos.vy = newYPos;
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcGaryFriend::render()
{
CNpcThing::render();
// Render
if (canRender())
{
DVECTOR &renderPos=getRenderPos();
m_actorGfx->Render(renderPos,m_animNo,(m_frame>>8),m_reversed);
sBBox boundingBox = m_actorGfx->GetBBox();
boundingBox.YMax = 0;
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), ( boundingBox.YMax - boundingBox.YMin ) );
setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, ( boundingBox.YMax + boundingBox.YMin ) >> 1 );
}
}