Browse Source

[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.
pull/1281/head
Anders Jenbo 5 years ago
parent
commit
3945e79426
  1. 5
      Source/objects.cpp

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

Loading…
Cancel
Save