From ea91b5ba5d75506256e3c8481dffed702a483de2 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 4 Apr 2021 18:57:03 +0200 Subject: [PATCH] - added a map patch for SW:WT's 'skyline' map. This contains a badly tagged sky sector that makes the new renderer glitch out. --- source/core/rendering/scene/hw_walls.cpp | 5 ----- source/games/sw/src/game.cpp | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/core/rendering/scene/hw_walls.cpp b/source/core/rendering/scene/hw_walls.cpp index 29ebc9efd..d21e7d911 100644 --- a/source/core/rendering/scene/hw_walls.cpp +++ b/source/core/rendering/scene/hw_walls.cpp @@ -902,8 +902,6 @@ void HWWall::Process(HWDrawInfo* di, walltype* wal, sectortype* frontsector, sec } #endif - // note: we always have a valid sidedef and linedef reference when getting here. - this->seg = wal; this->frontsector = frontsector; this->backsector = backsector; @@ -911,9 +909,6 @@ void HWWall::Process(HWDrawInfo* di, walltype* wal, sectortype* frontsector, sec vertindex = 0; vertcount = 0; - //vertexes[0] = v1; - //vertexes[1] = v2; - glseg.x1 = v1.X; glseg.y1 = v1.Y; glseg.x2 = v2.X; diff --git a/source/games/sw/src/game.cpp b/source/games/sw/src/game.cpp index e2a32309d..fedd97681 100644 --- a/source/games/sw/src/game.cpp +++ b/source/games/sw/src/game.cpp @@ -359,6 +359,11 @@ void InitLevel(MapRecord *maprec) // silence a misplaced and *very* annoying ambient sound. if (sprite[442].picnum == ST1 && sprite[442].hitag == 1002 && sprite[442].lotag == 31) sprite[442].lotag = -1; } + if (!maprec->labelName.CompareNoCase("$volcano") && !maprec->name.CompareNoCase("$TXTS_W_MAP10")) + { + // fix badly tagged sector that can glitch out. + if (sector[118].ceilingstat == 37 && sector[118].ceilingpicnum == 317) sector[118].ceilingstat &= ~CSTAT_SECTOR_SKY; + } SECRET_SetMapName(currentLevel->DisplayName(), currentLevel->name); STAT_NewLevel(currentLevel->fileName); Player[0].angle.ang = buildang(ang);