mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-29 04:32:17 +00:00
# First iteration of low-level pathfinder
PathfindSparse replaced with an A* implementation. Low-level pathfinding done on the tiles of the map, high level pathfinding is currently a placeholder, and only gives the final waypoint. This was SVN commit r3747.
This commit is contained in:
@@ -592,7 +592,7 @@ bool CEntity::processGoto( CEntityOrder* current, size_t UNUSED(timestep_millis)
|
||||
return( true );
|
||||
}
|
||||
|
||||
bool CEntity::processGotoWaypoint( CEntityOrder* current, size_t UNUSED(timestep_milli) )
|
||||
bool CEntity::processGotoWaypoint( CEntityOrder* current, size_t UNUSED(timestep_milli), bool contact )
|
||||
{
|
||||
CVector2D pos( m_position.X, m_position.Z );
|
||||
CVector2D path_to = current->m_data[0].location;
|
||||
@@ -607,7 +607,9 @@ bool CEntity::processGotoWaypoint( CEntityOrder* current, size_t UNUSED(timestep
|
||||
return( false );
|
||||
}
|
||||
|
||||
g_Pathfinder.requestLowLevelPath( me, path_to );
|
||||
processChooseMovement( Distance );
|
||||
|
||||
g_Pathfinder.requestLowLevelPath( me, path_to, contact );
|
||||
|
||||
return( true );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user