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
Deploy
Releases
Container registry
Model registry
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
Meziu
SRB2
Commits
a46b3976
Commit
a46b3976
authored
5 years ago
by
James R.
Browse files
Options
Downloads
Patches
Plain Diff
Remove code that does effectively nothing
parent
42380038
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/r_patch.c
+1
-11
1 addition, 11 deletions
src/r_patch.c
with
1 addition
and
11 deletions
src/r_patch.c
+
1
−
11
View file @
a46b3976
...
@@ -1196,7 +1196,7 @@ void R_CacheRotSprite(spritenum_t sprnum, UINT8 frame, spriteinfo_t *sprinfo, sp
...
@@ -1196,7 +1196,7 @@ void R_CacheRotSprite(spritenum_t sprnum, UINT8 frame, spriteinfo_t *sprinfo, sp
INT32
angle
;
INT32
angle
;
patch_t
*
patch
;
patch_t
*
patch
;
patch_t
*
newpatch
;
patch_t
*
newpatch
;
UINT16
*
rawsrc
,
*
rawdst
;
UINT16
*
rawdst
;
size_t
size
;
size_t
size
;
INT32
bflip
=
(
flip
!=
0x00
);
INT32
bflip
=
(
flip
!=
0x00
);
...
@@ -1242,16 +1242,6 @@ void R_CacheRotSprite(spritenum_t sprnum, UINT8 frame, spriteinfo_t *sprinfo, sp
...
@@ -1242,16 +1242,6 @@ void R_CacheRotSprite(spritenum_t sprnum, UINT8 frame, spriteinfo_t *sprinfo, sp
leftoffset
=
width
-
leftoffset
;
leftoffset
=
width
-
leftoffset
;
}
}
// Draw the sprite to a temporary buffer.
size
=
(
width
*
height
);
rawsrc
=
Z_Malloc
(
size
*
sizeof
(
UINT16
),
PU_STATIC
,
NULL
);
// can't memset here
for
(
i
=
0
;
i
<
size
;
i
++
)
rawsrc
[
i
]
=
0xFF00
;
R_PatchToMaskedFlat
(
patch
,
rawsrc
,
bflip
);
// Don't cache angle = 0
// Don't cache angle = 0
for
(
angle
=
1
;
angle
<
ROTANGLES
;
angle
++
)
for
(
angle
=
1
;
angle
<
ROTANGLES
;
angle
++
)
{
{
...
...
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