Skip to content
Snippets Groups Projects
Commit cd8494c0 authored by Ace Lite's avatar Ace Lite
Browse files

Added Lua globals - emblems, numemblems, numextraemblems

parent f09a5f13
Branches
No related tags found
No related merge requests found
......@@ -412,6 +412,15 @@ int LUA_PushGlobals(lua_State *L, const char *word)
} else if (fastcmp(word, "token")) {
lua_pushinteger(L, token);
return 1;
} else if (fastcmp(word, "emblems")) {
lua_pushinteger(L, M_CountEmblems(clientGamedata));
return 1;
} else if (fastcmp(word, "numemblems")) {
lua_pushinteger(L, numemblems);
return 1;
} else if (fastcmp(word, "numextraemblems")) {
lua_pushinteger(L, numextraemblems);
return 1;
} else if (fastcmp(word, "gamestate")) {
lua_pushinteger(L, gamestate);
return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment