From db92f31f7d41ddd4356acdbf3cd7f4f420d7d34f Mon Sep 17 00:00:00 2001 From: Tatsuru Date: Sun, 12 Sep 2021 18:41:36 -0400 Subject: [PATCH] Revert "Merge branch 'draw-act-num' into 'next'" This reverts merge request !1532 --- src/lua_hudlib.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/src/lua_hudlib.c b/src/lua_hudlib.c index 0bfcfd9ea..3ce36f4f1 100644 --- a/src/lua_hudlib.c +++ b/src/lua_hudlib.c @@ -919,27 +919,6 @@ static int libd_drawString(lua_State *L) return 0; } -static int libd_drawLevelActNum(lua_State *L) -{ - INT32 x; - INT32 y; - UINT8 num; - INT32 flags; - - HUDONLY - - x = luaL_checkinteger(L, 1); - y = luaL_checkinteger(L, 2); - num = luaL_checkinteger(L, 3); - flags = luaL_optinteger(L, 4, 0); - - flags &= ~V_PARAMMASK; // Don't let crashes happen. - - V_DrawLevelActNum(x, y, flags, num); - return 0; -} - - static int libd_drawNameTag(lua_State *L) { INT32 x; @@ -1044,20 +1023,6 @@ static int libd_stringWidth(lua_State *L) return 1; } -static int libd_levelActNumWidth(lua_State *L) -{ - HUDONLY - lua_pushinteger(L, V_LevelActNumWidth(luaL_checkinteger(L, 1))); - return 1; -} - -static int libd_levelActNumHeight(lua_State *L) -{ - HUDONLY - lua_pushinteger(L, V_LevelActNumHeight(luaL_checkinteger(L, 1))); - return 1; -} - static int libd_nameTagWidth(lua_State *L) { HUDONLY @@ -1287,15 +1252,12 @@ static luaL_Reg lib_draw[] = { {"drawPaddedNum", libd_drawPaddedNum}, {"drawFill", libd_drawFill}, {"drawString", libd_drawString}, - {"drawLevelActNum", libd_drawLevelActNum}, {"drawNameTag", libd_drawNameTag}, {"drawScaledNameTag", libd_drawScaledNameTag}, {"drawLevelTitle", libd_drawLevelTitle}, {"fadeScreen", libd_fadeScreen}, // misc {"stringWidth", libd_stringWidth}, - {"levelActNumWidth", libd_levelActNumWidth}, - {"levelActNumHeight", libd_levelActNumHeight}, {"nameTagWidth", libd_nameTagWidth}, {"levelTitleWidth", libd_levelTitleWidth}, {"levelTitleHeight", libd_levelTitleHeight},