mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-21 15:32:34 +00:00
Merge branch 'expose-splitscreen' into 'master'
Expose render splitscreen to lua See merge request KartKrew/RingRacers!38
This commit is contained in:
commit
22f49fdf8c
1 changed files with 8 additions and 0 deletions
|
|
@ -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},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue