1
0
Fork 0
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:
fgenesis 2016-04-08 23:14:33 +02:00
parent a88ca0a90d
commit 486541b1d7

View file

@ -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);
}