diff --git a/src/lua_hudlib.c b/src/lua_hudlib.c index d049bcfe2..0a4d0dcde 100644 --- a/src/lua_hudlib.c +++ b/src/lua_hudlib.c @@ -1309,7 +1309,7 @@ static int libd_getusertransflag(lua_State *L) } // Return the time elapsed for the previous frame, in tics. -static int libd_deltaTime(lua_State *L) +static int libd_getDeltaTime(lua_State *L) { HUDONLY lua_pushfixed(L, renderdeltatics); @@ -1357,7 +1357,7 @@ static luaL_Reg lib_draw[] = { {"renderer", libd_renderer}, {"localTransFlag", libd_getlocaltransflag}, {"userTransFlag", libd_getusertransflag}, - {"deltaTime", libd_deltaTime}, + {"getDeltaTime", libd_getDeltaTime}, {NULL, NULL} };