Skip to content
Snippets Groups Projects
Commit 4f2f3607 authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Merge branch 'fix-scaled-plane-ripple' into 'next'

Fix ripple effect in scaled planes

See merge request STJr/SRB2!2618
parents d6daab06 bfadb033
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
//-----------------------------------------------------------------------------
// Copyright (C) 1993-1996 by id Software, Inc.
// Copyright (C) 1998-2000 by DooM Legacy Team.
// Copyright (C) 1999-2024 by Sonic Team Junior.
// Copyright (C) 1999-2025 by Sonic Team Junior.
//
// This program is free software distributed under the
// terms of the GNU General Public License, version 2.
......@@ -182,8 +182,8 @@ static void R_MapPlane(INT32 y, INT32 x1, INT32 x2)
R_CalculatePlaneRipple(currentplane->viewangle + currentplane->plangle);
ds_xfrac += planeripple.xfrac;
ds_yfrac += planeripple.yfrac;
ds_xfrac += FixedMul(planeripple.xfrac, currentplane->xscale);
ds_yfrac += FixedMul(planeripple.yfrac, currentplane->yscale);
ds_bgofs >>= FRACBITS;
if ((y + ds_bgofs) >= viewheight)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment