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
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
d8d352a1
Commit
d8d352a1
authored
1 year ago
by
candelavla
Browse files
Options
Downloads
Patches
Plain Diff
fix some issues with supername code
parent
ac3e9fc9
No related branches found
No related tags found
1 merge request
!2123
fix some issues with supername code
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 @
d8d352a1
...
@@ -772,12 +772,12 @@ void R_AddSkins(UINT16 wadnum, boolean mainfile)
...
@@ -772,12 +772,12 @@ void R_AddSkins(UINT16 wadnum, boolean mainfile)
strupr
(
skin
->
hudname
);
strupr
(
skin
->
hudname
);
SYMBOLCONVERT
(
skin
->
hudname
)
SYMBOLCONVERT
(
skin
->
hudname
)
}
}
else
if
(
!
supername
)
if
(
!
supername
)
{
{
char
super
[
7
],
someone
[
SKINNAMESIZE
+
1
];
char
super
string
[
SKINNAMESIZE
+
7
];
strcpy
(
super
,
"Super "
);
strcpy
(
super
string
,
"Super "
);
str
cpy
(
someone
,
skin
->
realname
);
str
lcat
(
superstring
,
skin
->
name
,
sizeof
(
superstring
)
);
STRBUFCPY
(
skin
->
supername
,
s
trcat
(
super
,
someone
)
);
STRBUFCPY
(
skin
->
supername
,
s
uperstring
);
}
}
}
}
else
if
(
!
stricmp
(
stoken
,
"supername"
))
else
if
(
!
stricmp
(
stoken
,
"supername"
))
...
@@ -795,10 +795,10 @@ void R_AddSkins(UINT16 wadnum, boolean mainfile)
...
@@ -795,10 +795,10 @@ void R_AddSkins(UINT16 wadnum, boolean mainfile)
HUDNAMEWRITE
(
skin
->
realname
);
HUDNAMEWRITE
(
skin
->
realname
);
if
(
!
supername
)
//copy over default to capitalise the name
if
(
!
supername
)
//copy over default to capitalise the name
{
{
char
super
[
7
],
someone
[
SKINNAMESIZE
+
1
];
char
super
string
[
SKINNAMESIZE
+
7
];
strcpy
(
super
,
"Super "
);
strcpy
(
super
string
,
"Super "
);
str
cpy
(
someone
,
skin
->
realname
);
str
lcat
(
superstring
,
skin
->
realname
,
sizeof
(
superstring
)
);
STRBUFCPY
(
skin
->
supername
,
s
trcat
(
super
,
someone
)
);
STRBUFCPY
(
skin
->
supername
,
s
uperstring
);
}
}
}
}
else
if
(
!
stricmp
(
stoken
,
"hudname"
))
else
if
(
!
stricmp
(
stoken
,
"hudname"
))
...
@@ -930,10 +930,10 @@ void R_PatchSkins(UINT16 wadnum, boolean mainfile)
...
@@ -930,10 +930,10 @@ void R_PatchSkins(UINT16 wadnum, boolean mainfile)
HUDNAMEWRITE
(
skin
->
realname
);
HUDNAMEWRITE
(
skin
->
realname
);
if
(
!
supername
)
//copy over default to capitalise the name
if
(
!
supername
)
//copy over default to capitalise the name
{
{
char
super
[
7
],
someone
[
SKINNAMESIZE
+
1
];
char
super
string
[
SKINNAMESIZE
+
7
];
strcpy
(
super
,
"Super "
);
strcpy
(
super
string
,
"Super "
);
str
cpy
(
someone
,
skin
->
realname
);
str
lcat
(
superstring
,
skin
->
realname
,
sizeof
(
superstring
)
);
STRBUFCPY
(
skin
->
supername
,
s
trcat
(
super
,
someone
)
);
STRBUFCPY
(
skin
->
supername
,
s
uperstring
);
}
}
}
}
else
if
(
!
stricmp
(
stoken
,
"hudname"
))
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