mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
r_splitscreen -> v.splitscreen
As per suggestion by Sal
This commit is contained in:
parent
613b6ad44c
commit
411e3b3861
2 changed files with 8 additions and 3 deletions
|
|
@ -1109,6 +1109,13 @@ static int libd_renderer(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int libd_splitscreen(lua_State *L)
|
||||||
|
{
|
||||||
|
HUDONLY
|
||||||
|
lua_pushinteger(L, r_splitscreen); // push splitscreen
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
// M_RANDOM
|
// M_RANDOM
|
||||||
//////////////
|
//////////////
|
||||||
|
|
||||||
|
|
@ -1223,6 +1230,7 @@ static luaL_Reg lib_draw[] = {
|
||||||
{"dupx", libd_dupx},
|
{"dupx", libd_dupx},
|
||||||
{"dupy", libd_dupy},
|
{"dupy", libd_dupy},
|
||||||
{"renderer", libd_renderer},
|
{"renderer", libd_renderer},
|
||||||
|
{"splitscreen", libd_splitscreen},
|
||||||
{"localTransFlag", libd_getlocaltransflag},
|
{"localTransFlag", libd_getlocaltransflag},
|
||||||
{"drawOnMinimap", libd_drawOnMinimap},
|
{"drawOnMinimap", libd_drawOnMinimap},
|
||||||
{"getDeltaTime", libd_getDeltaTime},
|
{"getDeltaTime", libd_getDeltaTime},
|
||||||
|
|
|
||||||
|
|
@ -178,9 +178,6 @@ int LUA_PushGlobals(lua_State *L, const char *word)
|
||||||
} else if (fastcmp(word,"splitscreen")) {
|
} else if (fastcmp(word,"splitscreen")) {
|
||||||
lua_pushinteger(L, splitscreen);
|
lua_pushinteger(L, splitscreen);
|
||||||
return 1;
|
return 1;
|
||||||
} else if (fastcmp(word,"r_splitscreen")) {
|
|
||||||
lua_pushinteger(L, r_splitscreen);
|
|
||||||
return 1;
|
|
||||||
} else if (fastcmp(word,"gamecomplete")) {
|
} else if (fastcmp(word,"gamecomplete")) {
|
||||||
lua_pushboolean(L, (gamecomplete != 0));
|
lua_pushboolean(L, (gamecomplete != 0));
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue