From 516a5e8350df6dd92f8103c5e3bce4829d477335 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 0a4d0dcde..40c6f6e1f 100644 --- a/src/lua_hudlib.c +++ b/src/lua_hudlib.c @@ -1308,14 +1308,6 @@ static int libd_getusertransflag(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[] = { // cache {"patchExists", libd_patchExists}, @@ -1357,7 +1349,6 @@ static luaL_Reg lib_draw[] = { {"renderer", libd_renderer}, {"localTransFlag", libd_getlocaltransflag}, {"userTransFlag", libd_getusertransflag}, - {"getDeltaTime", libd_getDeltaTime}, {NULL, NULL} };