Make GearsNear and CheckGearNear check gears across wrap world edge
This fixes hog detection of mine, sticky mine, resurrector, seduction and crate across the world edge.
Air mine is only partially fixed.
void fpcrtl_halt(int num) {
__coverity_panic__();
}
int fpcrtl_abs(int num) {
return num >= 0 ? num : -num;
}