From: PatR Date: Mon, 23 Apr 2018 07:57:31 +0000 (-0700) Subject: fix #H7079 - take two... X-Git-Tag: NetHack-3.6.1_RC01~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ab92dbc3df0d566d7accbcb75a5fdde8cf529ad;p=nethack fix #H7079 - take two... Instead of replacing the check for DRAWBRIDGE_UP with one for DRAWBRIDGE_DOWN, the correct fix is to check for both because replacing either one with water breaks the two-square dbridge. --- diff --git a/src/zap.c b/src/zap.c index 78b615274..1dc436880 100644 --- a/src/zap.c +++ b/src/zap.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 zap.c $NHDT-Date: 1524469189 2018/04/23 07:39:49 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.274 $ */ +/* NetHack 3.6 zap.c $NHDT-Date: 1524470244 2018/04/23 07:57:24 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.275 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -4180,7 +4180,7 @@ const char *msg; if (!msg) msg = "The ice crackles and melts."; - if (lev->typ == DRAWBRIDGE_DOWN) { + if (lev->typ == DRAWBRIDGE_UP || lev->typ == DRAWBRIDGE_DOWN) { lev->drawbridgemask &= ~DB_ICE; /* revert to DB_MOAT */ } else { /* lev->typ == ICE */ #ifdef STUPID