mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-08 07:09:52 +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;
|
obs = OT_BLOCKING;
|
||||||
|
|
||||||
state->grid.blockingObsBits = (ObsType)obs;
|
state->grid.blockingObsBits = (ObsType)obs;
|
||||||
JPS::Position istart = JPS::Pos(start.x, start.y);
|
TileVector tstart(start);
|
||||||
JPS::Position iend = JPS::Pos(end.x, end.y);
|
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);
|
state->result = state->searcher.findPathInit(istart, iend);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue