auto-commit: translation updates
Some defensive coding to guard against divide by zero and other possible issues.
Change to use the correct functions to test
Invert the test, my mistake on previous commit.
return the relative position instead of the absolute.
normalise output of early-return path in AIGetLeadDir
Merge branch 'AIGetLeadDir'