1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 07:07:45 +00:00

some cleanup

This commit is contained in:
NotAdam 2019-04-23 22:04:24 +10:00
parent beec57c9fc
commit e5763d8ea6

View file

@ -629,7 +629,6 @@ void Sapphire::World::Navi::NaviProvider::setMoveTarget( Entity::Chara& chara,
const dtQueryFilter* filter = m_pCrowd->getFilter( 0 ); const dtQueryFilter* filter = m_pCrowd->getFilter( 0 );
const float* halfExtents = m_pCrowd->getQueryExtents(); const float* halfExtents = m_pCrowd->getQueryExtents();
float vel[ 3 ];
float p[ 3 ] = { endPos.x, endPos.y, endPos.z }; float p[ 3 ] = { endPos.x, endPos.y, endPos.z };
dtPolyRef ref; dtPolyRef ref;
@ -647,8 +646,6 @@ void Sapphire::World::Navi::NaviProvider::setMoveTarget( Entity::Chara& chara,
const dtCrowdAgent* ag = m_pCrowd->getAgent( chara.getAgentId() ); const dtCrowdAgent* ag = m_pCrowd->getAgent( chara.getAgentId() );
if( ag && ag->active ) if( ag && ag->active )
{ {
calcVel( vel, ag->npos, p, ag->params.maxSpeed );
//m_pCrowd->requestMoveVelocity( chara.getAgentId(), vel );
m_pCrowd->requestMoveTarget( chara.getAgentId(), ref, p ); m_pCrowd->requestMoveTarget( chara.getAgentId(), ref, p );
} }
} }