diff --git a/src/lua_hudlib.c b/src/lua_hudlib.c index 2329b8fd1..b192f83f2 100644 --- a/src/lua_hudlib.c +++ b/src/lua_hudlib.c @@ -1231,30 +1231,6 @@ static int libd_getColormap(lua_State *L) return 1; } -static int libd_fadeScreen(lua_State *L) -{ - UINT16 color = luaL_checkinteger(L, 1); - UINT8 strength = luaL_checkinteger(L, 2); - const UINT8 maxstrength = ((color & 0xFF00) ? 32 : 10); - - HUDONLY - - if (!strength) - return 0; - - if (strength > maxstrength) - return luaL_error(L, "%s fade strength %d out of range (0 - %d)", ((color & 0xFF00) ? "COLORMAP" : "TRANSMAP"), strength, maxstrength); - - if (strength == maxstrength) // Allow as a shortcut for drawfill... - { - V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, ((color & 0xFF00) ? 31 : color)); - return 0; - } - - V_DrawFadeScreen(color, strength); - return 0; -} - static int libd_width(lua_State *L) { HUDONLY @@ -1393,7 +1369,6 @@ static luaL_Reg lib_draw[] = { {"drawString", libd_drawString}, {"drawNameTag", libd_drawNameTag}, {"drawScaledNameTag", libd_drawScaledNameTag}, - {"fadeScreen", libd_fadeScreen}, {"drawKartString", libd_drawKartString}, // misc {"stringWidth", libd_stringWidth},