Move position of R_PlaneRipple in the file so this looks more organised

This commit is contained in:
Jaime Passos 2019-12-14 19:50:40 -03:00
parent 871ebef332
commit 4d87bcca13
1 changed files with 16 additions and 10 deletions

View File

@ -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;