From 70850b083632d9b590cdaaf102be7ecf081be1ca Mon Sep 17 00:00:00 2001
From: LJ Sonic <lamr@free.fr>
Date: Sat, 13 Feb 2021 18:04:27 +0100
Subject: [PATCH] Deprecate P_AproxDistance for Lua scripts

---
 src/lua_baselib.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lua_baselib.c b/src/lua_baselib.c
index 916fa9254b..6e0116d126 100644
--- a/src/lua_baselib.c
+++ b/src/lua_baselib.c
@@ -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;
 }
-- 
GitLab