1
0
Fork 0
mirror of https://github.com/luau-lang/luau.git synced 2025-04-19 11:13:49 +01:00

Fix math.map/math.lerp merge fallout ()

- LuauMathMap flag was not removed but the uses of it were
- LuauMathLerp addition to math table was duplicated
This commit is contained in:
Arseny Kapoulkine 2025-01-19 14:14:12 -08:00 committed by GitHub
parent 29047504da
commit 82c9383a39
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,6 @@
#include <math.h> #include <math.h>
#include <time.h> #include <time.h>
LUAU_FASTFLAGVARIABLE(LuauMathMap)
LUAU_FASTFLAGVARIABLE(LuauMathLerp) LUAU_FASTFLAGVARIABLE(LuauMathLerp)
#undef PI #undef PI
@ -490,11 +489,5 @@ int luaopen_math(lua_State* L)
lua_setfield(L, -2, "lerp"); lua_setfield(L, -2, "lerp");
} }
if (FFlag::LuauMathLerp)
{
lua_pushcfunction(L, math_lerp, "lerp");
lua_setfield(L, -2, "lerp");
}
return 1; return 1;
} }