Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Skydusk
SRB2
Commits
cd8494c0
Commit
cd8494c0
authored
1 year ago
by
Ace Lite
Browse files
Options
Downloads
Patches
Plain Diff
Added Lua globals - emblems, numemblems, numextraemblems
parent
f09a5f13
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lua_script.c
+9
-0
9 additions, 0 deletions
src/lua_script.c
with
9 additions
and
0 deletions
src/lua_script.c
+
9
−
0
View file @
cd8494c0
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment