1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-08-07 21:25:26 +01:00

Fix bad artifact door code.

Maybe this caused the one-off FemHDNoble quest bug?
This commit is contained in:
ChrisANG 2021-01-12 21:56:48 -05:00
parent 64d92f26e2
commit b868acdbd0

View file

@ -1144,12 +1144,13 @@ asGuardian:
const char *msg = (const char *)0;
const char *dustcloud = "A cloud of dust";
const char *quickly_dissipates = "quickly dissipates";
int key = artifact_door(ix, iy); /* ALI - Artifact doors from slash'em */
int key; /* ALI - Artifact doors from slash'em */
for(ix = 0; ix < COLNO; ix++){
for(iy = 0; iy < ROWNO; iy++){
door = &levl[ix][iy];
ttmp = t_at(ix, iy); /* trap if there is one */
vis = cansee(ix,iy);
key = artifact_door(ix, iy);
if (levl[ix][iy].typ == DRAWBRIDGE_DOWN)
close_drawbridge(ix,iy);
if (ttmp && ttmp->ttyp == TRAPDOOR) {