From 5b851057623c2945eef7627a1e26ac30ce97342e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 6 Mar 2021 12:20:03 +0100 Subject: [PATCH] - re-added the fix for the inverted card reader in Twin Dragon's Map 10. This accidentally got lost when the one-sided key fix was generalized. --- source/common/engine/namedef.h | 1 + source/games/sw/src/game.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/source/common/engine/namedef.h b/source/common/engine/namedef.h index 8be149bea..cf8b8da62 100644 --- a/source/common/engine/namedef.h +++ b/source/common/engine/namedef.h @@ -525,6 +525,7 @@ xx(ZDoom) xx(ZDoomTranslated) xx(Vavoom) xx(GZDoom) +xx(Eternity) xx(Xpanningfloor) xx(Ypanningfloor) diff --git a/source/games/sw/src/game.cpp b/source/games/sw/src/game.cpp index d20b6dee6..ec39e50a8 100644 --- a/source/games/sw/src/game.cpp +++ b/source/games/sw/src/game.cpp @@ -349,6 +349,11 @@ void InitLevel(MapRecord *maprec) engineLoadBoard(maprec->fileName, SW_SHAREWARE ? 1 : 0, &Player[0].pos, &ang, &Player[0].cursectnum); currentLevel = maprec; + if (!maprec->labelName.CompareNoCase("$hidtemp") && !maprec->name.CompareNoCase("$TXTS_T_MAP10")) + { + // flip the inverted card reader in TD's level 10. + if (sprite[179].picnum == 1852 && sprite[179].cstat == 92) sprite[179].cstat &= ~12; + } if (!maprec->labelName.CompareNoCase("$outpost") && !maprec->name.CompareNoCase("$TXTS_MAP09")) { // silence a misplaced and *very* annoying ambient sound.