Removes all usages of rint from the codebase, in favor of the standard rounding and casting formula used throughout the codebase: static_cast<int>(std::floor(<val> + .5)) Fixes #2392