Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kart-Public
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Indev
Kart-Public
Commits
9a2e65c6
Commit
9a2e65c6
authored
6 years ago
by
Sal
Browse files
Options
Downloads
Plain Diff
Merge branch 'next' into version-prep
parents
75b0dd3c
8e41f09c
Branches
version-prep
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/f_wipe.c
+9
-2
9 additions, 2 deletions
src/f_wipe.c
with
9 additions
and
2 deletions
src/f_wipe.c
+
9
−
2
View file @
9a2e65c6
...
@@ -97,7 +97,7 @@ static fixed_t paldiv;
...
@@ -97,7 +97,7 @@ static fixed_t paldiv;
* \return fademask_t for lump
* \return fademask_t for lump
*/
*/
static
fademask_t
*
F_GetFadeMask
(
UINT8
masknum
,
UINT8
scrnnum
)
{
static
fademask_t
*
F_GetFadeMask
(
UINT8
masknum
,
UINT8
scrnnum
)
{
static
char
lumpname
[
10
]
=
"FADEmmss"
;
static
char
lumpname
[
9
]
=
"FADEmmss"
;
static
fademask_t
fm
=
{
NULL
,
0
,
0
,
0
,
0
,
0
};
static
fademask_t
fm
=
{
NULL
,
0
,
0
,
0
,
0
,
0
};
lumpnum_t
lumpnum
;
lumpnum_t
lumpnum
;
UINT8
*
lump
,
*
mask
;
UINT8
*
lump
,
*
mask
;
...
@@ -107,7 +107,14 @@ static fademask_t *F_GetFadeMask(UINT8 masknum, UINT8 scrnnum) {
...
@@ -107,7 +107,14 @@ static fademask_t *F_GetFadeMask(UINT8 masknum, UINT8 scrnnum) {
if
(
masknum
>
99
||
scrnnum
>
99
)
if
(
masknum
>
99
||
scrnnum
>
99
)
goto
freemask
;
goto
freemask
;
sprintf
(
&
lumpname
[
4
],
"%.2hu%.2hu"
,
(
UINT16
)
masknum
,
(
UINT16
)
scrnnum
);
// SRB2Kart: This suddenly triggers ERRORMODE now
//sprintf(&lumpname[4], "%.2hu%.2hu", (UINT16)masknum, (UINT16)scrnnum);
lumpname
[
4
]
=
'0'
+
(
masknum
/
10
);
lumpname
[
5
]
=
'0'
+
(
masknum
%
10
);
lumpname
[
6
]
=
'0'
+
(
scrnnum
/
10
);
lumpname
[
7
]
=
'0'
+
(
scrnnum
%
10
);
lumpnum
=
W_CheckNumForName
(
lumpname
);
lumpnum
=
W_CheckNumForName
(
lumpname
);
if
(
lumpnum
==
LUMPERROR
)
if
(
lumpnum
==
LUMPERROR
)
...
...
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