Recently I've found some of my creeps unable to reach their targets using moveTo
.
So I've tried to reproduce at shard2:
JSON.stringify(new RoomPosition(42,19,'E51S18').findPathTo(new RoomPosition(34,12,'E51S18')))
returns: [{"x":41,"y":20,"dx":-1,"dy":1,"direction":6}]
another time it returns: [{"x":41,"y":20,"dx":-1,"dy":1,"direction":6},{"x":34,"y":12,"dx":-7,"dy":-8,"direction":8}]
Obviously an unexpected result.
Or this one: JSON.stringify(new RoomPosition(1,44,'E54S19').findPathTo(new RoomPosition(4,11,'E54S19')))
returns
[{"x":0,"y":43,"dx":-1,"dy":-1,"direction":8}]
Maybe someone has a look?
(Edited: Nothing passed a wall, but the paths are incomplete)