Restore P_AproxDistance Lua parity

# Conflicts:
#	src/lua_baselib.c
This commit is contained in:
toaster 2022-03-18 17:16:11 +00:00
parent 18f0ece073
commit a15a2f1ef2

View file

@ -458,8 +458,7 @@ static int lib_pAproxDistance(lua_State *L)
fixed_t dx = luaL_checkfixed(L, 1);
fixed_t dy = luaL_checkfixed(L, 2);
//HUDSAFE
LUA_Deprecated(L, "P_AproxDistance", "FixedHypot");
lua_pushfixed(L, FixedHypot(dx, dy));
lua_pushfixed(L, P_AproxDistance(dx, dy));
return 1;
}