From c45e1cbbf08bec86614ad66228c4c7c8a3a5050a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 31 Dec 2018 00:11:49 +0100 Subject: [PATCH] - fixed typo in sky preparation. --- src/hwrenderer/scene/hw_sky.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hwrenderer/scene/hw_sky.cpp b/src/hwrenderer/scene/hw_sky.cpp index c2c6b81898..d2a8c41c52 100644 --- a/src/hwrenderer/scene/hw_sky.cpp +++ b/src/hwrenderer/scene/hw_sky.cpp @@ -346,16 +346,16 @@ void GLWall::SkyBottom(HWDrawInfo *di, seg_t * seg,sector_t * fs,sector_t * bs,v } zbottom[0]=zbottom[1]=-32768.0f; - if ((tex && !tex->isValid()) || bs->GetTexture(sector_t::floor)!=skyflatnum) + if ((tex && tex->isValid()) || bs->GetTexture(sector_t::floor) != skyflatnum) { - ztop[0]=zfloor[0]; - ztop[1]=zfloor[1]; + ztop[0] = zfloor[0]; + ztop[1] = zfloor[1]; } else { ztop[0] = bs->floorplane.ZatPoint(v1); ztop[1] = bs->floorplane.ZatPoint(v2); - flags|=GLWF_SKYHACK; // mid textures on such lines need special treatment! + flags |= GLWF_SKYHACK; // mid textures on such lines need special treatment! } } else