mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 06:27:45 +00:00
Style
This commit is contained in:
parent
6894996fba
commit
54e60107e9
3 changed files with 7 additions and 12 deletions
|
@ -211,7 +211,7 @@ bool Sapphire::Entity::BNpc::moveTo( const FFXIVARR_POSITION3& pos )
|
||||||
auto pNaviMgr = m_pFw->get< World::Manager::NaviMgr >();
|
auto pNaviMgr = m_pFw->get< World::Manager::NaviMgr >();
|
||||||
auto pNaviProvider = pNaviMgr->getNaviProvider( m_pCurrentZone->getInternalName() );
|
auto pNaviProvider = pNaviMgr->getNaviProvider( m_pCurrentZone->getInternalName() );
|
||||||
|
|
||||||
if(!pNaviProvider)
|
if( !pNaviProvider )
|
||||||
{
|
{
|
||||||
Logger::error( "No NaviProvider for zone#{0} - {1}", m_pCurrentZone->getGuId(), m_pCurrentZone->getInternalName() );
|
Logger::error( "No NaviProvider for zone#{0} - {1}", m_pCurrentZone->getGuId(), m_pCurrentZone->getInternalName() );
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -55,15 +55,10 @@ namespace Sapphire
|
||||||
float m_polyFindRange[3];
|
float m_polyFindRange[3];
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static int fixupCorridor( dtPolyRef* path, const int npath, const int maxPath,
|
static int fixupCorridor( dtPolyRef* path, const int npath, const int maxPath, const dtPolyRef* visited, const int nvisited );
|
||||||
const dtPolyRef* visited, const int nvisited );
|
|
||||||
static int fixupShortcuts( dtPolyRef* path, int npath, dtNavMeshQuery* navQuery );
|
static int fixupShortcuts( dtPolyRef* path, int npath, dtNavMeshQuery* navQuery );
|
||||||
inline static bool inRange( const float* v1, const float* v2, const float r, const float h );
|
inline static bool inRange( const float* v1, const float* v2, const float r, const float h );
|
||||||
static bool getSteerTarget( dtNavMeshQuery* navQuery, const float* startPos, const float* endPos,
|
static bool getSteerTarget( dtNavMeshQuery* navQuery, const float* startPos, const float* endPos, const float minTargetDist, const dtPolyRef* path, const int pathSize, float* steerPos, unsigned char& steerPosFlag, dtPolyRef& steerPosRef, float* outPoints = 0, int* outPointCount = 0 );
|
||||||
const float minTargetDist,
|
|
||||||
const dtPolyRef* path, const int pathSize,
|
|
||||||
float* steerPos, unsigned char& steerPosFlag, dtPolyRef& steerPosRef,
|
|
||||||
float* outPoints = 0, int* outPointCount = 0 );
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue