Skip to content

Commit

Permalink
add scrolly interpolation, check fo pause/menu
Browse files Browse the repository at this point in the history
Co-Authored-By: @rfomin
  • Loading branch information
fabiangreffrath committed Jan 10, 2025
1 parent e2b9905 commit f16639b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/r_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,18 +414,20 @@ static void DrawSkyTex(visplane_t *pl, skytex_t *skytex)
dc_texheight = textureheight[texture] >> FRACBITS;
dc_iscale = FixedMul(skyiscale, skytex->scaley);

dc_texturemid += skytex->curry;

fixed_t deltax;
if (uncapped)
fixed_t deltax, deltay;
if (uncapped && leveltime > oldleveltime)
{
deltax = LerpFixed(skytex->prevx, skytex->currx);
deltay = LerpFixed(skytex->prevy, skytex->curry);
}
else
{
deltax = skytex->currx;
deltay = skytex->curry;
}

dc_texturemid += deltay;

angle_t an = viewangle + (deltax << (ANGLETOSKYSHIFT - FRACBITS));

for (int x = pl->minx; x <= pl->maxx; x++)
Expand Down

0 comments on commit f16639b

Please sign in to comment.