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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SteelT
SRB2
Commits
c44442ef
Verified
Commit
c44442ef
authored
5 years ago
by
SteelT
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'public/next' into public_next
parents
cb7a77fe
0993b713
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lua_hudlib.c
+5
-5
5 additions, 5 deletions
src/lua_hudlib.c
with
5 additions
and
5 deletions
src/lua_hudlib.c
+
5
−
5
View file @
c44442ef
...
@@ -1214,7 +1214,7 @@ void LUAh_GameHUD(player_t *stplayr)
...
@@ -1214,7 +1214,7 @@ void LUAh_GameHUD(player_t *stplayr)
lua_getfield
(
gL
,
LUA_REGISTRYINDEX
,
"HUD"
);
lua_getfield
(
gL
,
LUA_REGISTRYINDEX
,
"HUD"
);
I_Assert
(
lua_istable
(
gL
,
-
1
));
I_Assert
(
lua_istable
(
gL
,
-
1
));
lua_rawgeti
(
gL
,
-
1
,
2
);
// HUD[2] = rendering funcs
lua_rawgeti
(
gL
,
-
1
,
2
+
hudhook_game
);
// HUD[2] = rendering funcs
I_Assert
(
lua_istable
(
gL
,
-
1
));
I_Assert
(
lua_istable
(
gL
,
-
1
));
lua_rawgeti
(
gL
,
-
2
,
1
);
// HUD[1] = lib_draw
lua_rawgeti
(
gL
,
-
2
,
1
);
// HUD[1] = lib_draw
...
@@ -1248,7 +1248,7 @@ void LUAh_ScoresHUD(void)
...
@@ -1248,7 +1248,7 @@ void LUAh_ScoresHUD(void)
lua_getfield
(
gL
,
LUA_REGISTRYINDEX
,
"HUD"
);
lua_getfield
(
gL
,
LUA_REGISTRYINDEX
,
"HUD"
);
I_Assert
(
lua_istable
(
gL
,
-
1
));
I_Assert
(
lua_istable
(
gL
,
-
1
));
lua_rawgeti
(
gL
,
-
1
,
3
);
// HUD[3] = rendering funcs
lua_rawgeti
(
gL
,
-
1
,
2
+
hudhook_scores
);
// HUD[3] = rendering funcs
I_Assert
(
lua_istable
(
gL
,
-
1
));
I_Assert
(
lua_istable
(
gL
,
-
1
));
lua_rawgeti
(
gL
,
-
2
,
1
);
// HUD[1] = lib_draw
lua_rawgeti
(
gL
,
-
2
,
1
);
// HUD[1] = lib_draw
...
@@ -1273,7 +1273,7 @@ void LUAh_TitleHUD(void)
...
@@ -1273,7 +1273,7 @@ void LUAh_TitleHUD(void)
lua_getfield
(
gL
,
LUA_REGISTRYINDEX
,
"HUD"
);
lua_getfield
(
gL
,
LUA_REGISTRYINDEX
,
"HUD"
);
I_Assert
(
lua_istable
(
gL
,
-
1
));
I_Assert
(
lua_istable
(
gL
,
-
1
));
lua_rawgeti
(
gL
,
-
1
,
4
);
// HUD[
4
] = rendering funcs
lua_rawgeti
(
gL
,
-
1
,
2
+
hudhook_title
);
// HUD[
5
] = rendering funcs
I_Assert
(
lua_istable
(
gL
,
-
1
));
I_Assert
(
lua_istable
(
gL
,
-
1
));
lua_rawgeti
(
gL
,
-
2
,
1
);
// HUD[1] = lib_draw
lua_rawgeti
(
gL
,
-
2
,
1
);
// HUD[1] = lib_draw
...
@@ -1298,7 +1298,7 @@ void LUAh_TitleCardHUD(player_t *stplayr)
...
@@ -1298,7 +1298,7 @@ void LUAh_TitleCardHUD(player_t *stplayr)
lua_getfield
(
gL
,
LUA_REGISTRYINDEX
,
"HUD"
);
lua_getfield
(
gL
,
LUA_REGISTRYINDEX
,
"HUD"
);
I_Assert
(
lua_istable
(
gL
,
-
1
));
I_Assert
(
lua_istable
(
gL
,
-
1
));
lua_rawgeti
(
gL
,
-
1
,
5
);
// HUD[
5
] = rendering funcs
lua_rawgeti
(
gL
,
-
1
,
2
+
hudhook_titlecard
);
// HUD[
6
] = rendering funcs
I_Assert
(
lua_istable
(
gL
,
-
1
));
I_Assert
(
lua_istable
(
gL
,
-
1
));
lua_rawgeti
(
gL
,
-
2
,
1
);
// HUD[1] = lib_draw
lua_rawgeti
(
gL
,
-
2
,
1
);
// HUD[1] = lib_draw
...
@@ -1332,7 +1332,7 @@ void LUAh_IntermissionHUD(void)
...
@@ -1332,7 +1332,7 @@ void LUAh_IntermissionHUD(void)
lua_getfield
(
gL
,
LUA_REGISTRYINDEX
,
"HUD"
);
lua_getfield
(
gL
,
LUA_REGISTRYINDEX
,
"HUD"
);
I_Assert
(
lua_istable
(
gL
,
-
1
));
I_Assert
(
lua_istable
(
gL
,
-
1
));
lua_rawgeti
(
gL
,
-
1
,
4
);
// HUD[4] = rendering funcs
lua_rawgeti
(
gL
,
-
1
,
2
+
hudhook_intermission
);
// HUD[4] = rendering funcs
I_Assert
(
lua_istable
(
gL
,
-
1
));
I_Assert
(
lua_istable
(
gL
,
-
1
));
lua_rawgeti
(
gL
,
-
2
,
1
);
// HUD[1] = lib_draw
lua_rawgeti
(
gL
,
-
2
,
1
);
// HUD[1] = lib_draw
...
...
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