Yet another pathfinding direction fix.

Hopefully this will fix special cases.