From 3945e79426817972a13ffb86187b609d86cc33eb Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Fri, 26 Mar 2021 02:05:01 +0100 Subject: [PATCH] [Diablo] :bug: Rest dSpecial when closing L1 doors Fixes #1275 This bug is only visible with the improved transparancy. But would have been a slight performance hit originally. --- Source/objects.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/objects.cpp b/Source/objects.cpp index 013705915..9f25fe585 100644 --- a/Source/objects.cpp +++ b/Source/objects.cpp @@ -2456,6 +2456,7 @@ void OperateL1RDoor(int pnum, int oi, bool sendflag) ObjSetMicro(xp - 1, yp, 86); } } + dSpecial[xp][yp] = 0; object[oi]._oAnimFrame -= 2; object[oi]._oPreFlag = FALSE; RedoPlayerVision(); @@ -2538,6 +2539,7 @@ void OperateL1LDoor(int pnum, int oi, bool sendflag) ObjSetMicro(xp, yp - 1, 86); } } + dSpecial[xp][yp] = 0; object[oi]._oAnimFrame -= 2; object[oi]._oPreFlag = FALSE; RedoPlayerVision(); @@ -4872,8 +4874,7 @@ void SyncL1Doors(int i) y--; } else { ObjSetMicro(x, y, 395); - if (currlevel < 17) - dSpecial[x][y] = 8; + dSpecial[x][y] = 8; objects_set_door_piece(x, y - 1); x--; }