From eca23badb8721dfae51aa5c202949ccc322dd310 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 21 Oct 2018 20:26:57 +0200 Subject: [PATCH] - added a compatibility fix for Hacx's MAP05. This is by no means perfect and looks different than what was originally intended, but at least this doesn't totally fail to render properly with the OpenGL renderer. # Conflicts: # wadsrc/static/zscript/level_compatibility.txt --- wadsrc/static/zscript/level_compatibility.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/wadsrc/static/zscript/level_compatibility.txt b/wadsrc/static/zscript/level_compatibility.txt index 4276049f1..b3d8f04eb 100644 --- a/wadsrc/static/zscript/level_compatibility.txt +++ b/wadsrc/static/zscript/level_compatibility.txt @@ -5,6 +5,22 @@ class LevelCompatibility play { switch (checksum) { + case '9527DD0809FDA39CCFC316A21D135783': // HACX.WAD map05 + { + // fix non-functional self-referencing sector hack. + for(int i = 578; i < 582; i++) + SetLineSectorRef(i, Line.back, 91); + + for(int i = 707; i < 714; i++) + SetLineSectorRef(i, Line.back, 91); + + SetLineSectorRef(736, Line.front, 91); + SetLineSectorRef(659, Line.front, 91); + SetLineSpecial(659, Transfer_Heights, 60); + break; + } + + case 'E2B5D1400279335811C1C1C0B437D9C8': // Deathknights of the Dark Citadel, map54 { // This map has two gear boxes which are flagged for player cross