non power of two skies (#1321)

This commit is contained in:
Roman Fomin 2023-12-12 00:03:04 +07:00 committed by GitHub
parent 3efb4a8b16
commit cc079ce043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,8 +423,8 @@ static void do_draw_plane(visplane_t *pl)
for (x = pl->minx; (dc_x = x) <= pl->maxx; x++) for (x = pl->minx; (dc_x = x) <= pl->maxx; x++)
if ((dc_yl = pl->top[x]) != USHRT_MAX && dc_yl <= (dc_yh = pl->bottom[x])) if ((dc_yl = pl->top[x]) != USHRT_MAX && dc_yl <= (dc_yh = pl->bottom[x]))
{ {
dc_source = R_GetColumn(texture, ((an + xtoskyangle[x])^flip) >> dc_source = R_GetColumnMod(texture, ((an + xtoskyangle[x])^flip) >>
ANGLETOSKYSHIFT); ANGLETOSKYSHIFT);
colfunc(); colfunc();
} }