diff --git a/src/lua_hudlib.c b/src/lua_hudlib.c index 0d267c8b1..b59e12cf3 100644 --- a/src/lua_hudlib.c +++ b/src/lua_hudlib.c @@ -1052,6 +1052,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 ////////////// @@ -1168,6 +1175,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},