keep vertical sky texture scaling constant for fov >= 90

Fixes #2209
This commit is contained in:
Fabian Greffrath 2025-02-23 21:10:11 +01:00
parent e3d74f9e5e
commit 973c56f53c

View File

@ -551,6 +551,10 @@ static void do_draw_mbf_sky(visplane_t *pl)
dc_iscale = dc_iscale * dc_texheight / SKYSTRETCH_HEIGHT;
dc_texturemid = dc_texturemid * dc_texheight / SKYSTRETCH_HEIGHT;
}
else if (custom_fov > FOV_DEFAULT && (dc_texturemid - SCREENHEIGHT / 2 * dc_iscale) > 0)
{
dc_iscale = video.ystep;
}
// Make sure the fade-to-color effect doesn't happen too early
fixed_t diff = dc_texturemid - SCREENHEIGHT / 2 * FRACUNIT;