Skip to content

Commit

Permalink
Fix speed of ID24 scrolling skies
Browse files Browse the repository at this point in the history
From Woof.
  • Loading branch information
bradharding committed Jan 11, 2025
1 parent 137946b commit 7a09a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/r_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ static byte *R_DistortedFlat(const int flatnum)
static void DrawSkyTex(visplane_t *pl, skytex_t *skytex, void func(void))
{
const int texture = R_TextureNumForName(skytex->name);
const angle_t angle = viewangle + FixedToAngle(skytex->currx);
const angle_t angle = viewangle + (skytex->currx << (ANGLETOSKYSHIFT - FRACBITS));

dc_colormap[0] = fullcolormap;
dc_texturemid = (fixed_t)(skytex->mid * FRACUNIT) + skytex->curry;
Expand Down

0 comments on commit 7a09a6d

Please sign in to comment.