The first version of the pathfinder is working. I added a new option menu to calculate the nearest path from unit’s position to the selected tile for testing purposes. Now tiles which contain the nearest path (if this path exists) are marked with “#” and tiles which were processed during pathfinding are marked with “:” (useful info for debugging). Here are some screenshots how it works with normal and diagonal movement.
