From 424cb9f8ea849c52faa5626919ab9098acafabfe Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 31 Jul 2022 19:33:46 +0200 Subject: [PATCH] Remove dead code --- Source/levels/drlg_l1.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Source/levels/drlg_l1.cpp b/Source/levels/drlg_l1.cpp index 4e2ee668c..b7b87bd56 100644 --- a/Source/levels/drlg_l1.cpp +++ b/Source/levels/drlg_l1.cpp @@ -955,20 +955,6 @@ void Substitution() } } - // BUGFIX: Add `&& y > 0` to the if statement. (fixed) - if (i == VWall4 && y > 0) { - if (TileDecorations[dungeon[x][y - 1]] != VWall2 || Protected.test(x, y - 1)) - i = VWall2; - else - dungeon[x][y - 1] = VWall5; - } - // BUGFIX: Add `&& x + 1 < DMAXX` to the if statement. (fixed) - if (i == HWall4 && x + 1 < DMAXX) { - if (TileDecorations[dungeon[x + 1][y]] != HWall2 || Protected.test(x + 1, y)) - i = HWall2; - else - dungeon[x + 1][y] = HWall5; - } dungeon[x][y] = i; } }