This commit is contained in:
parent
9f667e7bbc
commit
c7e46d02ef
24 changed files with 328 additions and 469 deletions
|
@ -82,16 +82,8 @@ void CNpcGeyserPlatformGenerator::think( int _frames )
|
|||
startPos.vx += ( -5 + ( getRnd() % 11 ) );
|
||||
newPlatform->init( startPos );
|
||||
|
||||
CNpcWaypoint *sourceWaypoint = m_npcPath.getWaypointList();
|
||||
|
||||
if ( sourceWaypoint )
|
||||
{
|
||||
while( sourceWaypoint )
|
||||
{
|
||||
newPlatform->addWaypoint( sourceWaypoint->pos.vx >> 4, sourceWaypoint->pos.vy >> 4 );
|
||||
sourceWaypoint = sourceWaypoint->nextWaypoint;
|
||||
}
|
||||
}
|
||||
newPlatform->setWaypointCount( m_npcPath.getWaypointCount() );
|
||||
newPlatform->setWaypointPtr( m_npcPath.getWaypointPtr() );
|
||||
|
||||
newPlatform->setTiltable( false );
|
||||
newPlatform->postInit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue