Add gametyperules to LUA_CheckGlobals.
This commit is contained in:
parent
e9f69b9c6a
commit
bb1f43d374
|
@ -299,7 +299,9 @@ int LUA_PushGlobals(lua_State *L, const char *word)
|
||||||
// See the above.
|
// See the above.
|
||||||
int LUA_CheckGlobals(lua_State *L, const char *word)
|
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);
|
redscore = (UINT32)luaL_checkinteger(L, 2);
|
||||||
else if (fastcmp(word, "bluescore"))
|
else if (fastcmp(word, "bluescore"))
|
||||||
bluescore = (UINT32)luaL_checkinteger(L, 2);
|
bluescore = (UINT32)luaL_checkinteger(L, 2);
|
||||||
|
|
Loading…
Reference in a new issue