Restore P_AproxDistance Lua parity

This commit is contained in:
lachablock 2021-06-03 14:36:29 +10:00
parent 2df75610e6
commit 476dcc861b

View file

@ -444,7 +444,7 @@ static int lib_pAproxDistance(lua_State *L)
fixed_t dx = luaL_checkfixed(L, 1);
fixed_t dy = luaL_checkfixed(L, 2);
//HUDSAFE
lua_pushfixed(L, R_PointToDist2(0, 0, dx, dy));
lua_pushfixed(L, P_AproxDistance(dx, dy));
return 1;
}