mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-29 03:33:48 +00:00
actually fix incremental pathfinding for real this time
This commit is contained in:
parent
a88ca0a90d
commit
486541b1d7
1 changed files with 4 additions and 2 deletions
|
@ -210,8 +210,10 @@ void PathFinding::beginFindPath(PathFinding::State *state, const Vector& start,
|
|||
obs = OT_BLOCKING;
|
||||
|
||||
state->grid.blockingObsBits = (ObsType)obs;
|
||||
JPS::Position istart = JPS::Pos(start.x, start.y);
|
||||
JPS::Position iend = JPS::Pos(end.x, end.y);
|
||||
TileVector tstart(start);
|
||||
TileVector tend(end);
|
||||
JPS::Position istart = JPS::Pos(tstart.x, tstart.y);
|
||||
JPS::Position iend = JPS::Pos(tend.x, tend.y);
|
||||
state->result = state->searcher.findPathInit(istart, iend);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue