From 61e40bad665028daba5e6b9830638b0ee2785fc9 Mon Sep 17 00:00:00 2001 From: CommonLoon102 <321850+CommonLoon102@users.noreply.github.com> Date: Tue, 17 Sep 2019 12:17:07 +0000 Subject: [PATCH] Fix the goonies cheat code and the kGDXItemMapLevel powerup (#171) --- source/blood/src/map2d.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/blood/src/map2d.cpp b/source/blood/src/map2d.cpp index 656050c88..4db5dce93 100644 --- a/source/blood/src/map2d.cpp +++ b/source/blood/src/map2d.cpp @@ -28,8 +28,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "trig.h" #include "view.h" -char byte_27AACB; - void sub_2541C(int x, int y, int z, short a) { int tmpydim = (xdim * 5) / 8; @@ -40,7 +38,7 @@ void sub_2541C(int x, int y, int z, short a) int nSin2 = mulscale16(nSin, yxaspect); for (int i = 0; i < numsectors; i++) { - if (byte_27AACB || (show2dsector[i>>3]&(1<<(i&7)))) + if (gFullMap || (show2dsector[i>>3]&(1<<(i&7)))) { int nStartWall = sector[i].wallptr; int nEndWall = nStartWall+sector[i].wallnum; @@ -55,7 +53,7 @@ void sub_2541C(int x, int y, int z, short a) if (sector[pWall->nextsector].ceilingz == nZCeil && sector[pWall->nextsector].floorz == nZFloor && ((wall[nNextWall].cstat | pWall->cstat) & 0x30) == 0) continue; - if (byte_27AACB) + if (gFullMap) continue; if (show2dsector[pWall->nextsector>>3]&(1<<(pWall->nextsector&7))) continue; @@ -77,7 +75,7 @@ void sub_2541C(int x, int y, int z, short a) int nPSprite = gView->pSprite->index; for (int i = 0; i < numsectors; i++) { - if (byte_27AACB || (show2dsector[i>>3]&(1<<(i&7)))) + if (gFullMap || (show2dsector[i>>3]&(1<<(i&7)))) { for (int nSprite = headspritesect[i]; nSprite >= 0; nSprite = nextspritesect[nSprite]) { @@ -91,7 +89,7 @@ void sub_2541C(int x, int y, int z, short a) } for (int i = 0; i < numsectors; i++) { - if (byte_27AACB || (show2dsector[i>>3]&(1<<(i&7)))) + if (gFullMap || (show2dsector[i>>3]&(1<<(i&7)))) { int nStartWall = sector[i].wallptr; int nEndWall = nStartWall+sector[i].wallnum;