Fix flat sky y offset

This commit is contained in:
nukeykt 2019-09-07 22:36:37 +09:00 committed by Christoph Oelckers
parent 7a9209d857
commit 78a3240c3e

View file

@ -4009,7 +4009,7 @@ static void polymost_flatskyrender(vec2f_t const* const dpxy, int32_t const n, i
int32_t dapyscale, dapskybits, dapyoffs, daptileyscale;
int8_t const * dapskyoff = getpsky(globalpicnum, &dapyscale, &dapskybits, &dapyoffs, &daptileyscale);
ghoriz = (qglobalhoriz*(1.f/65536.f)-float(ydimen>>1))*dapyscale*(1.f/65536.f)+float(ydimen>>1);
ghoriz = (qglobalhoriz*(1.f/65536.f)-float(ydimen>>1))*dapyscale*(1.f/65536.f)+float(ydimen>>1)+ghorizcorrect;
float const dd = fxdimen*.0000001f; //Adjust sky depth based on screen size!
float vv[2];