r_splitscreen -> v.splitscreen

As per suggestion by Sal
This commit is contained in:
hayaunderscore 2024-08-26 10:17:42 +08:00
parent 613b6ad44c
commit 411e3b3861
2 changed files with 8 additions and 3 deletions

View file

@ -1109,6 +1109,13 @@ static int libd_renderer(lua_State *L)
return 1;
}
static int libd_splitscreen(lua_State *L)
{
HUDONLY
lua_pushinteger(L, r_splitscreen); // push splitscreen
return 1;
}
// M_RANDOM
//////////////
@ -1223,6 +1230,7 @@ static luaL_Reg lib_draw[] = {
{"dupx", libd_dupx},
{"dupy", libd_dupy},
{"renderer", libd_renderer},
{"splitscreen", libd_splitscreen},
{"localTransFlag", libd_getlocaltransflag},
{"drawOnMinimap", libd_drawOnMinimap},
{"getDeltaTime", libd_getDeltaTime},

View file

@ -178,9 +178,6 @@ int LUA_PushGlobals(lua_State *L, const char *word)
} else if (fastcmp(word,"splitscreen")) {
lua_pushinteger(L, splitscreen);
return 1;
} else if (fastcmp(word,"r_splitscreen")) {
lua_pushinteger(L, r_splitscreen);
return 1;
} else if (fastcmp(word,"gamecomplete")) {
lua_pushboolean(L, (gamecomplete != 0));
return 1;