mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 13:23:56 -07:00
17 lines
430 B
C++
Executable file
17 lines
430 B
C++
Executable file
#include "precompiled.h"
|
|
|
|
#include "PathfindEngine.h"
|
|
#include "PathfindSparse.h"
|
|
#include "ConfigDB.h"
|
|
|
|
CPathfindEngine::CPathfindEngine()
|
|
{
|
|
CConfigValue* sparseDepth = g_ConfigDB.GetValue( CFG_SYSTEM, "pathfind.sparse.recursiondepth" );
|
|
if( sparseDepth )
|
|
sparseDepth->GetInt( SPF_RECURSION_DEPTH );
|
|
}
|
|
|
|
void CPathfindEngine::requestPath( HEntity entity, const CVector2D& destination )
|
|
{
|
|
pathSparse( entity, destination );
|
|
}
|