Deprecate P_AproxDistance for Lua scripts

This commit is contained in:
LJ Sonic 2021-02-13 18:04:27 +01:00
parent 758de501da
commit 70850b0836
1 changed files with 1 additions and 0 deletions

View File

@ -432,6 +432,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, R_PointToDist2(0, 0, dx, dy));
return 1;
}