From b946f9a014a33b64dfa641407bf1ba9112ddea4f Mon Sep 17 00:00:00 2001 From: Eidolon Date: Wed, 18 May 2022 18:29:37 -0500 Subject: [PATCH] Remove hudlib getDeltaTime --- src/lua_hudlib.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/lua_hudlib.c b/src/lua_hudlib.c index 0a97e6f2..9aab4920 100644 --- a/src/lua_hudlib.c +++ b/src/lua_hudlib.c @@ -885,14 +885,6 @@ static int libd_getlocaltransflag(lua_State *L) return 1; } -// Return the time elapsed for the previous frame, in tics. -static int libd_getDeltaTime(lua_State *L) -{ - HUDONLY - lua_pushfixed(L, renderdeltatics); - return 1; -} - static luaL_Reg lib_draw[] = { {"patchExists", libd_patchExists}, {"cachePatch", libd_cachePatch}, @@ -914,7 +906,6 @@ static luaL_Reg lib_draw[] = { {"renderer", libd_renderer}, {"localTransFlag", libd_getlocaltransflag}, {"drawOnMinimap", libd_drawOnMinimap}, - {"getDeltaTime", libd_getDeltaTime}, {NULL, NULL} };