]> granicus.if.org Git - nethack/commitdiff
fix teetering typo
authorPatR <rankin@nethack.org>
Fri, 29 Nov 2019 19:38:42 +0000 (11:38 -0800)
committerPatR <rankin@nethack.org>
Fri, 29 Nov 2019 19:38:42 +0000 (11:38 -0800)
do.c:1005:54: warning: address of function 'uescaped_shaft' will always
      evaluate to 'true' [-Wpointer-bool-conversion]
        if (trap && (uteetering_at_seen_pit(trap) || uescaped_shaft)) {
                                                  ~~ ^~~~~~~~~~~~~~

src/do.c

index 8b35c071f67f21f1f63198b57ea76895f69385ae..4ea7851331abbf03c15379c3b6b55b5c374e420b 100644 (file)
--- a/src/do.c
+++ b/src/do.c
@@ -1,4 +1,4 @@
-/* NetHack 3.6 do.c    $NHDT-Date: 1574722862 2019/11/25 23:01:02 $  $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.193 $ */
+/* NetHack 3.6 do.c    $NHDT-Date: 1575056306 2019/11/29 19:38:26 $  $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.195 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /*-Copyright (c) Derek S. Ray, 2015. */
 /* NetHack may be freely redistributed.  See license for details. */
@@ -1002,7 +1002,7 @@ dodown()
     }
     if (!stairs_down && !ladder_down) {
         trap = t_at(u.ux, u.uy);
-        if (trap && (uteetering_at_seen_pit(trap) || uescaped_shaft)) {
+        if (trap && (uteetering_at_seen_pit(trap) || uescaped_shaft(trap))) {
             dotrap(trap, TOOKPLUNGE);
             return 1;
         } else if (!trap || !is_hole(trap->ttyp)