From b5a5d24bf434f7092e3a21145981580fa68165dc Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 23 Jan 2022 12:51:14 +0100 Subject: [PATCH] - SW: fixed Polymost sky panning --- source/build/src/polymost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index c6290f544..f260bd2ad 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -1314,13 +1314,13 @@ static void polymost_flatskyrender(FVector2 const* const dpxy, int32_t const n, int remap = TRANSLATION(Translation_Remap + curbasepal, globalpal); globalskytex = skytile? nullptr : GetSkyTexture(globalpicnum, dapskybits, dapskyoff, remap); - int realskybits = dapskybits; + int realskybits = dapskybits; if (globalskytex) { dapskybits = 0; } - dapyoffs = isDuke() && globalpicnum == 89 ? 17 * 1024 : 32 * 1024; + dapyoffs = isSWALL()? 16*1024 : isDuke() && globalpicnum == 89 ? 17 * 1024 : 32 * 1024; ghoriz = (qglobalhoriz*(1.f/65536.f)-float(ydimen>>1))*dapyoffs*(1.f/65536.f)+float(ydimen>>1)+ghorizcorrect; float const dd = fxdimen*.0000001f; //Adjust sky depth based on screen size!