mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add gametyperules to LUA_CheckGlobals.
This commit is contained in:
parent
62f2fcc57e
commit
ba5516b99f
1 changed files with 3 additions and 1 deletions
|
|
@ -299,7 +299,9 @@ int LUA_PushGlobals(lua_State *L, const char *word)
|
|||
// See the above.
|
||||
int LUA_CheckGlobals(lua_State *L, const char *word)
|
||||
{
|
||||
if (fastcmp(word, "redscore"))
|
||||
if (fastcmp(word, "gametyperules"))
|
||||
gametyperules = (UINT32)luaL_checkinteger(L, 2);
|
||||
else if (fastcmp(word, "redscore"))
|
||||
redscore = (UINT32)luaL_checkinteger(L, 2);
|
||||
else if (fastcmp(word, "bluescore"))
|
||||
bluescore = (UINT32)luaL_checkinteger(L, 2);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue