Merge branch 'fix-doorwish-horizontal' of https://github.com/entrez/NetHack into pr788

This commit is contained in:
nhmall
2022-06-03 15:29:02 -04:00
+3 -3
View File
@@ -3474,10 +3474,10 @@ wizterrainwish(struct _readobjnam_data *d)
|| IS_DOOR(oldtyp) || oldtyp == SDOOR) { || IS_DOOR(oldtyp) || oldtyp == SDOOR) {
/* when new terrain is a fountain, 'blessedftn' was explicitly /* when new terrain is a fountain, 'blessedftn' was explicitly
set above; likewise for grave and 'disturbed'; when it's a set above; likewise for grave and 'disturbed'; when it's a
secret door, the old type was a wall or a door and we retain door, the old type was a wall or a door and we retain the
the 'horizontal' value from those */ 'horizontal' value from those */
if (!IS_FOUNTAIN(lev->typ) && !IS_GRAVE(lev->typ) if (!IS_FOUNTAIN(lev->typ) && !IS_GRAVE(lev->typ)
&& lev->typ != SDOOR) && !IS_DOOR(lev->typ) && lev->typ != SDOOR)
lev->horizontal = 0; /* also clears blessedftn, disturbed */ lev->horizontal = 0; /* also clears blessedftn, disturbed */
} }
/* note: lev->lit and lev->nondiggable retain their values even /* note: lev->lit and lev->nondiggable retain their values even