Merge branch 'aproxdistance' into 'next'

Restore P_AproxDistance Lua parity

See merge request STJr/SRB2!1531
This commit is contained in:
sphere 2021-06-08 07:47:38 -04:00
commit be8c97728c

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;
}