Skip to content
Snippets Groups Projects
Commit 365e02bb authored by Golden's avatar Golden
Browse files

Make `skincolor_*` CTF color variables writable.

parent 2b39a971
No related branches found
No related tags found
1 merge request!1233Make several Lua global variables writable.
...@@ -376,6 +376,14 @@ int LUA_CheckGlobals(lua_State *L, const char *word) ...@@ -376,6 +376,14 @@ int LUA_CheckGlobals(lua_State *L, const char *word)
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);
else if (fastcmp(word, "skincolor_redteam"))
skincolor_redteam = (UINT16)luaL_checkinteger(L, 2);
else if (fastcmp(word, "skincolor_blueteam"))
skincolor_blueteam = (UINT16)luaL_checkinteger(L, 2);
else if (fastcmp(word, "skincolor_redring"))
skincolor_redring = (UINT16)luaL_checkinteger(L, 2);
else if (fastcmp(word, "skincolor_bluering"))
skincolor_bluering = (UINT16)luaL_checkinteger(L, 2);
else if (fastcmp(word, "emeralds")) else if (fastcmp(word, "emeralds"))
emeralds = (UINT16)luaL_checkinteger(L, 2); emeralds = (UINT16)luaL_checkinteger(L, 2);
else if (fastcmp(word, "token")) else if (fastcmp(word, "token"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment