We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34284fe commit a8476dbCopy full SHA for a8476db
include/godot_cpp/core/math.hpp
@@ -766,7 +766,7 @@ inline double pingpong(double value, double length) {
766
767
// This function should be as fast as possible and rounding mode should not matter.
768
inline int fast_ftoi(float a) {
769
- static int b;
+ int b;
770
771
#if (defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0603) || (defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP) // windows 8 phone?
772
b = (int)((a > 0.0) ? (a + 0.5) : (a - 0.5));
0 commit comments