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
aff5b52e
Commit
aff5b52e
authored
5 years ago
by
Lactozilla
Browse files
Options
Downloads
Patches
Plain Diff
change ROTANGLES to 72
parent
8422c880
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!718
Rename R_IsPointInSubsector to R_PointInSubsectorOrNull/Nil
,
!547
rollangle and SpriteInfo changes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/doomdef.h
+1
-1
1 addition, 1 deletion
src/doomdef.h
src/r_patch.c
+1
-1
1 addition, 1 deletion
src/r_patch.c
with
2 additions
and
2 deletions
src/doomdef.h
+
1
−
1
View file @
aff5b52e
...
...
@@ -625,7 +625,7 @@ extern const char *compdate, *comptime, *comprevision, *compbranch;
/// Sprite rotation
#define ROTSPRITE
#define ROTANGLES
360
// Needs to be a divisor of 360 (45, 60, 90, 120...)
#define ROTANGLES
72
// Needs to be a divisor of 360 (45, 60, 90, 120...)
#define ROTANGDIFF (360 / ROTANGLES)
#ifndef HAVE_PNG
...
...
This diff is collapsed.
Click to expand it.
src/r_patch.c
+
1
−
1
View file @
aff5b52e
...
...
@@ -1102,7 +1102,7 @@ static UINT16 GetPatchPixel(patch_t *patch, INT32 x, INT32 y, boolean flip)
column_t
*
column
;
UINT8
*
source
;
if
(
x
<
SHORT
(
patch
->
width
))
if
(
x
>=
0
&&
x
<
SHORT
(
patch
->
width
))
{
INT32
topdelta
,
prevdelta
=
-
1
;
column
=
(
column_t
*
)((
UINT8
*
)
patch
+
LONG
(
patch
->
columnofs
[
flip
?
(
patch
->
width
-
1
-
x
)
:
x
]));
...
...
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