Hi James > How's this? > > https://github.com/quozl/netrek-server/commit/a6c3680fc8fa2093fbd9de2dbb4f4e44d9f7a95b Here is my take: https://github.com/mrbax/netrek-server/commit/226aea74701e01eeada833f91cc8f48ac72f046d I primarily eliminated some unnecessary casts and sign protection, substituted M_PI since it was used elsewhere, and switched to the non-exception-raising nearbyint*(). The rest was mostly related clean-up. Cheers Michael