]> granicus.if.org Git - nethack/commitdiff
fix #H7079 - melting ice destroys lowered dbridge
authorPatR <rankin@nethack.org>
Mon, 23 Apr 2018 07:39:57 +0000 (00:39 -0700)
committerPatR <rankin@nethack.org>
Mon, 23 Apr 2018 07:39:57 +0000 (00:39 -0700)
melt_ice() attempted to handle this but checked for raised drawbridge
instead of lowered one.

doc/fixes36.1
src/zap.c

index 818d1e0401ca161cb2c6cd176b0ff0c92a230ddd..fc07fd7e18d50314ade836510de49b59e4d6d7dc 100644 (file)
@@ -541,6 +541,7 @@ at the prompt for entering a level annotation, responding with <return>
        erroneously removed old annotation; use <space><return> to do that
 reorder the #droptype menu and add some separator lines
 moving from a pit to an adjacent pit with uncleared debris shouldn't be a fall
+open drawbridge spanning ice would vanish if the ice melted
 
 
 Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository
index ef5a68c660981da2c521d2459b6430635e4db6f6..78b615274abcc963817a5f2c5bde17a74aea64de 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -1,4 +1,4 @@
-/* NetHack 3.6 zap.c   $NHDT-Date: 1520705645 2018/03/10 18:14:05 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.271 $ */
+/* NetHack 3.6 zap.c   $NHDT-Date: 1524469189 2018/04/23 07:39:49 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.274 $ */
 /* 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_UP) {
+    if (lev->typ == DRAWBRIDGE_DOWN) {
         lev->drawbridgemask &= ~DB_ICE; /* revert to DB_MOAT */
     } else { /* lev->typ == ICE */
 #ifdef STUPID