[Diablo] 🐛 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.
This commit is contained in:
Anders Jenbo 2021-03-26 02:05:01 +01:00
commit 3945e79426

View file

@ -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--;
}