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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
John Peter Sa
SRB2
Commits
c391d76c
Commit
c391d76c
authored
Jan 23, 2021
by
Claire Ellis
Browse files
Options
Downloads
Patches
Plain Diff
buttons_last -> lastbuttons
parent
ce8e389a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lua_playerlib.c
+11
-2
11 additions, 2 deletions
src/lua_playerlib.c
with
11 additions
and
2 deletions
src/lua_playerlib.c
+
11
−
2
View file @
c391d76c
...
...
@@ -372,8 +372,8 @@ static int player_get(lua_State *L)
lua_pushinteger
(
L
,
plr
->
bot
);
else
if
(
fastcmp
(
field
,
"botleader"
))
LUA_PushUserdata
(
L
,
plr
->
botleader
,
META_PLAYER
);
else
if
(
fastcmp
(
field
,
"buttons
_last
"
))
lua_pushinteger
(
L
,
plr
->
buttons
_last
);
else
if
(
fastcmp
(
field
,
"
last
buttons"
))
lua_pushinteger
(
L
,
plr
->
last
buttons
);
else
if
(
fastcmp
(
field
,
"jointime"
))
lua_pushinteger
(
L
,
plr
->
jointime
);
else
if
(
fastcmp
(
field
,
"quittime"
))
...
...
@@ -723,6 +723,15 @@ static int player_set(lua_State *L)
plr
->
outofcoop
=
lua_toboolean
(
L
,
3
);
else
if
(
fastcmp
(
field
,
"bot"
))
return
NOSET
;
else
if
(
fastcmp
(
field
,
"botleader"
))
{
player_t
*
player
=
NULL
;
if
(
!
lua_isnil
(
L
,
3
))
player
=
*
((
player_t
**
)
luaL_checkudata
(
L
,
3
,
META_PLAYER
));
plr
->
botleader
=
player
;
}
else
if
(
fastcmp
(
field
,
"lastbuttons"
))
plr
->
lastbuttons
=
(
UINT16
)
luaL_checkinteger
(
L
,
3
);
else
if
(
fastcmp
(
field
,
"jointime"
))
plr
->
jointime
=
(
tic_t
)
luaL_checkinteger
(
L
,
3
);
else
if
(
fastcmp
(
field
,
"quittime"
))
...
...
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