This commit is contained in:
Charles 2001-07-27 13:31:52 +00:00
parent 3a05eb9884
commit 035d72263d
20 changed files with 44 additions and 39 deletions

View file

@ -104,15 +104,16 @@ void CNpcMotherJellyfishEnemy::setupWaypoints( sThingActor *ThisActor )
u16 *PntList=(u16*)MakePtr(ThisActor,sizeof(sThingActor));
u16 newXPos, newYPos;
u16 origXPos, origYPos;
s32 startX = 0;
m_npcPath.setWaypointCount( ThisActor->PointCount - 1 );
newXPos = (u16) *PntList;
origXPos = newXPos = (u16) *PntList;
setWaypointPtr( PntList );
PntList++;
newYPos = (u16) *PntList;
origYPos = newYPos = (u16) *PntList;
PntList++;
setStartPos( newXPos, newYPos );
@ -130,7 +131,7 @@ void CNpcMotherJellyfishEnemy::setupWaypoints( sThingActor *ThisActor )
if ( pointNum == 1 )
{
setHeading( newXPos, newYPos );
setHeading( newXPos, newYPos, origXPos, origYPos );
}
if ( pointNum == ThisActor->PointCount - 2 )