Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
srb2-switch
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
PAS
srb2-switch
Commits
56a0546e
Commit
56a0546e
authored
Aug 23, 2023
by
sphere
Browse files
Options
Downloads
Plain Diff
Merge branch 'supernamefix' into 'next'
fix some issues with supername code See merge request
STJr/SRB2!2123
parents
3943a48a
d8d352a1
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/r_skins.c
+13
-13
13 additions, 13 deletions
src/r_skins.c
with
13 additions
and
13 deletions
src/r_skins.c
+
13
−
13
View file @
56a0546e
...
...
@@ -772,12 +772,12 @@ void R_AddSkins(UINT16 wadnum, boolean mainfile)
strupr
(
skin
->
hudname
);
SYMBOLCONVERT
(
skin
->
hudname
)
}
else
if
(
!
supername
)
if
(
!
supername
)
{
char
super
[
7
],
someone
[
SKINNAMESIZE
+
1
];
strcpy
(
super
,
"Super "
);
str
cpy
(
someone
,
skin
->
realname
);
STRBUFCPY
(
skin
->
supername
,
s
trcat
(
super
,
someone
)
);
char
super
string
[
SKINNAMESIZE
+
7
];
strcpy
(
super
string
,
"Super "
);
str
lcat
(
superstring
,
skin
->
name
,
sizeof
(
superstring
)
);
STRBUFCPY
(
skin
->
supername
,
s
uperstring
);
}
}
else
if
(
!
stricmp
(
stoken
,
"supername"
))
...
...
@@ -795,10 +795,10 @@ void R_AddSkins(UINT16 wadnum, boolean mainfile)
HUDNAMEWRITE
(
skin
->
realname
);
if
(
!
supername
)
//copy over default to capitalise the name
{
char
super
[
7
],
someone
[
SKINNAMESIZE
+
1
];
strcpy
(
super
,
"Super "
);
str
cpy
(
someone
,
skin
->
realname
);
STRBUFCPY
(
skin
->
supername
,
s
trcat
(
super
,
someone
)
);
char
super
string
[
SKINNAMESIZE
+
7
];
strcpy
(
super
string
,
"Super "
);
str
lcat
(
superstring
,
skin
->
realname
,
sizeof
(
superstring
)
);
STRBUFCPY
(
skin
->
supername
,
s
uperstring
);
}
}
else
if
(
!
stricmp
(
stoken
,
"hudname"
))
...
...
@@ -930,10 +930,10 @@ void R_PatchSkins(UINT16 wadnum, boolean mainfile)
HUDNAMEWRITE
(
skin
->
realname
);
if
(
!
supername
)
//copy over default to capitalise the name
{
char
super
[
7
],
someone
[
SKINNAMESIZE
+
1
];
strcpy
(
super
,
"Super "
);
str
cpy
(
someone
,
skin
->
realname
);
STRBUFCPY
(
skin
->
supername
,
s
trcat
(
super
,
someone
)
);
char
super
string
[
SKINNAMESIZE
+
7
];
strcpy
(
super
string
,
"Super "
);
str
lcat
(
superstring
,
skin
->
realname
,
sizeof
(
superstring
)
);
STRBUFCPY
(
skin
->
supername
,
s
uperstring
);
}
}
else
if
(
!
stricmp
(
stoken
,
"hudname"
))
...
...
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