mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-03 23:42:07 +00:00
Remove duplicate fadeScreen
This commit is contained in:
parent
b1112b489c
commit
0ec506127e
1 changed files with 0 additions and 25 deletions
|
|
@ -1231,30 +1231,6 @@ static int libd_getColormap(lua_State *L)
|
||||||
return 1;
|
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)
|
static int libd_width(lua_State *L)
|
||||||
{
|
{
|
||||||
HUDONLY
|
HUDONLY
|
||||||
|
|
@ -1393,7 +1369,6 @@ static luaL_Reg lib_draw[] = {
|
||||||
{"drawString", libd_drawString},
|
{"drawString", libd_drawString},
|
||||||
{"drawNameTag", libd_drawNameTag},
|
{"drawNameTag", libd_drawNameTag},
|
||||||
{"drawScaledNameTag", libd_drawScaledNameTag},
|
{"drawScaledNameTag", libd_drawScaledNameTag},
|
||||||
{"fadeScreen", libd_fadeScreen},
|
|
||||||
{"drawKartString", libd_drawKartString},
|
{"drawKartString", libd_drawKartString},
|
||||||
// misc
|
// misc
|
||||||
{"stringWidth", libd_stringWidth},
|
{"stringWidth", libd_stringWidth},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue