1
0
forked from 0ad/0ad
0ad/source/simulation/PathfindEngine.cpp
MarkT d33d2e4450 Added some support for user profiles
This was SVN commit r1270.
2004-10-23 14:39:28 +00:00

18 lines
428 B
C++
Executable File

#include "precompiled.h"
#include "PathfindEngine.h"
#include "PathfindSparse.h"
#include "ConfigDB.h"
CPathfindEngine::CPathfindEngine()
{
CConfigValue* sparseDepth = g_ConfigDB.GetValue( CFG_USER, "pathfind.sparse.recursiondepth" );
if( sparseDepth )
sparseDepth->GetInt( SPF_RECURSION_DEPTH );
}
void CPathfindEngine::requestPath( HEntity entity, const CVector2D& destination )
{
pathSparse( entity, destination );
}