Nice to see some action here on CivOne.
Have done some work on CivOne, pending merge.
Using ( optional)AStar algorithm for smart goto function:
Land and sea units: E.G Trimarans can find its way out from a "lake" where the only exit is through a city/channel to the other "end of the world". Doing so without leaving land at the the end of turn.
Air units can use goto to any position. The unit will find suitable refueling station on its way. ( including carriers ). If the route change, ( lost city/moved carrier). the route will be recalculated. ( todo: check if carrier is full )
Units will, if possible, avoid foreign units. Despite this, if a unit encounters a foreign unit, it will exit goto mode.
If destination is unreachable, "goto" command will be ignored.
I took the liberty to replace the function CalculateContinentSize(). Had an old algorithm for that kind of work that I like to use.....

The old code is still i place in case someone wants to compare.
Todo: Add smart "goto" for AI units.
Bug fixes:
Had some trouble with the functions "DistensTo....()" at the "dateline". Wrote my own set. Todo: Use original function when bug is corrected.
When a unit, in goto mode, with steps left, encountered a foreign unit, game got stuck. Fixed: exit goto when encountered a foreign unit.
Corrupt map files: The RLE Encode() function was adding an RLE_ESCAPE after repeat count if RLE_REPEAT == repeat count .
Very unusual event, but when it happened the stored map file was corrupted.
Added missing "goto home" "g" for air units.
Sometimes I got an exception when reading games saved by standard civ1. Some strange stuff with not existing fortified units in cites. Replaced exception with an output to log.
Todo: Games saved by CivOne is not fully compatible with Civ1. Maybe we can ignore this.
Things I would like to change from Civ1:
Sea units lose remaining steps if entering a city.
Land units can't "goto" and load itself onto a sea unit.
Added info: This is my first work ever using C#. Might be seen in my coding style. I am also fond of Hungarian notation.
Have had some problem with line endings, seems to have confused the merges
You can find my released code at
https://github.com/EnockNitti/CivOne If you want to try it out