forked from teamnwah/openmw-tes3coop
Pathfinding Overhaul - More cleanup.
This commit is contained in:
parent
4838678944
commit
96fdaf7410
1 changed files with 20 additions and 17 deletions
|
@ -28,8 +28,10 @@ namespace
|
|||
|
||||
static float sgn(float a)
|
||||
{
|
||||
if(a > 0) return 1.0;
|
||||
else return -1.0;
|
||||
if(a > 0)
|
||||
return 1.0;
|
||||
else
|
||||
return -1.0;
|
||||
}
|
||||
|
||||
int getClosestPoint(const ESM::Pathgrid* grid,float x,float y,float z)
|
||||
|
@ -105,6 +107,7 @@ void examine_vertex(PointID u, const PathGridGraph g)
|
|||
if(u == mGoal)
|
||||
throw found_path();
|
||||
}
|
||||
|
||||
private:
|
||||
PointID mGoal;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue