Fix warnings given by 32-bit fpc
 - Comment out getrandom in addgear for hedgehog, causes preview-game desync
 - New formula for minDistance
 - Some trials on dab formula, commented