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; 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 );
}
}

View File

@ -26,6 +26,7 @@ public:
virtual void setupWaypoints( sThingActor *ThisActor ); virtual void setupWaypoints( sThingActor *ThisActor );
DVECTOR const &getTriggerPos() {return( m_triggerPos );} DVECTOR const &getTriggerPos() {return( m_triggerPos );}
void start() {m_started = true;} void start() {m_started = true;}
virtual void render();
protected: protected:
DVECTOR m_triggerPos; DVECTOR m_triggerPos;