Fixes small typos and grammar correction
This commit is contained in:
parent
adf233ed04
commit
91181c2086
98 changed files with 198 additions and 197 deletions
|
|
@ -77,7 +77,7 @@ void PolygonPathFinder::setup(const Vector<Vector2> &p_points, const Vector<int>
|
|||
outside_point.x += 20.451 + Math::randf() * 10.2039;
|
||||
outside_point.y += 21.193 + Math::randf() * 12.5412;
|
||||
|
||||
//insert edges (which are also connetions)
|
||||
//insert edges (which are also connections)
|
||||
|
||||
for (int i = 0; i < p_connections.size(); i += 2) {
|
||||
Edge e(p_connections[i], p_connections[i + 1]);
|
||||
|
|
@ -335,7 +335,7 @@ Vector<Vector2> PolygonPathFinder::find_path(const Vector2 &p_from, const Vector
|
|||
//oh this was visited already, can we win the cost?
|
||||
|
||||
if (p.distance > distance) {
|
||||
p.prev = least_cost_point; //reasign previous
|
||||
p.prev = least_cost_point; //reassign previous
|
||||
p.distance = distance;
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue