Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2Classic
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
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chromaticpipe
SRB2Classic
Commits
31520a1a
Commit
31520a1a
authored
Nov 22, 2022
by
Radicalicious
Browse files
Options
Downloads
Patches
Plain Diff
Revert usage warning to an error
parent
1edbbad2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lua_script.c
+1
-1
1 addition, 1 deletion
src/lua_script.c
with
1 addition
and
1 deletion
src/lua_script.c
+
1
−
1
View file @
31520a1a
...
@@ -441,7 +441,7 @@ int LUA_CheckGlobals(lua_State *L, const char *word)
...
@@ -441,7 +441,7 @@ int LUA_CheckGlobals(lua_State *L, const char *word)
const
char
*
str
=
luaL_checklstring
(
L
,
2
,
&
strlength
);
const
char
*
str
=
luaL_checklstring
(
L
,
2
,
&
strlength
);
if
(
strlength
>
6
)
if
(
strlength
>
6
)
LUA_UsageWarning
(
L
,
"mapmusname: Music name too
l
o
ng
- truncated to six
characters
.
"
);
return
luaL_error
(
L
,
"string
l
e
ng
th out of range (maximum 6
characters
)
"
);
if
(
strlen
(
str
)
<
strlength
)
if
(
strlen
(
str
)
<
strlength
)
return
luaL_error
(
L
,
"string must not contain embedded zeros!"
);
return
luaL_error
(
L
,
"string must not contain embedded zeros!"
);
...
...
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