From 0ab92dbc3df0d566d7accbcb75a5fdde8cf529ad Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 23 Apr 2018 00:57:31 -0700 Subject: [PATCH] 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. --- src/zap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.40.0