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
4d87bcca
Commit
4d87bcca
authored
5 years ago
by
Lactozilla
Browse files
Options
Downloads
Patches
Plain Diff
Move position of R_PlaneRipple in the file so this looks more organised
parent
871ebef3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!734
Rebase Keycodes only branch.
,
!524
Tilted ripple
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/r_plane.c
+16
-10
16 additions, 10 deletions
src/r_plane.c
with
16 additions
and
10 deletions
src/r_plane.c
+
16
−
10
View file @
4d87bcca
...
...
@@ -117,17 +117,10 @@ void R_InitPlanes(void)
}
//
// R_MapPlane
// Water ripple effect!!
// Needs the height of the plane, and the vertical position of the span.
// Sets ripple_xfrac and ripple_yfrac, added to ds_xfrac and ds_yfrac, if the span is not tilted.
//
// Uses global vars:
// basexscale
// baseyscale
// centerx
// viewx
// viewy
// viewsin
// viewcos
// viewheight
#ifndef NOWATER
INT32
ds_bgofs
;
...
...
@@ -152,6 +145,19 @@ static void R_PlaneRipple(visplane_t *plane, INT32 y, fixed_t plheight)
}
#endif
//
// R_MapPlane
//
// Uses global vars:
// basexscale
// baseyscale
// centerx
// viewx
// viewy
// viewsin
// viewcos
// viewheight
void
R_MapPlane
(
INT32
y
,
INT32
x1
,
INT32
x2
)
{
angle_t
angle
,
planecos
,
planesin
;
...
...
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