0
0
Fork 0
mirror of https://git.do.srb2.org/STJr/SRB2.git synced 2025-04-18 00:11:48 +00:00

Merge branch 'aproxdistance' into 'next'

Restore P_AproxDistance Lua parity

See merge request 
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;
}