]> granicus.if.org Git - nethack/commitdiff
fix #K188 - trying to move past edge of level
authorPatR <rankin@nethack.org>
Fri, 17 Jan 2020 10:43:32 +0000 (02:43 -0800)
committerPatR <rankin@nethack.org>
Fri, 17 Jan 2020 10:43:32 +0000 (02:43 -0800)
Trying to move into a wall or solid rock fails and doesn't do anything
(unless the 'mention_walls' option is On) and doesn't use a turn, and
trying to move off the edge of the map window also doesn't do anything
(except for 'mention_walls') but that did use a turn.  Don't.

doc/fixes37.0
src/hack.c

index f027001a4cb9c9e6e31dc484ed2842f6d9aaf093..e19b8c84c64981d79a186c8596295e82e4593351 100644 (file)
@@ -1,4 +1,4 @@
-$NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.66 $ $NHDT-Date: 1578947634 2020/01/13 20:33:54 $
+$NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.68 $ $NHDT-Date: 1579257808 2020/01/17 10:43:28 $
 
 General Fixes and Modified Features
 -----------------------------------
@@ -45,6 +45,7 @@ walking out of tethered-to-buried-object trap condition was supposed to
 when poly'd into a giant and moving onto a boulder's spot, message given was
        confused about whether autopickup would occur so could be misleading
 random role selection wasn't honoring unwanted alignment(s) properly
+if at the edge of the map window, trying to move farther fails but used a turn
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index 06a99cf88c1635516cab1e55bfe7359b34cae0fb..c1eb4f35cc7c61cc7d478a92db9d6d8f7492cbce 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 hack.c  $NHDT-Date: 1578916008 2020/01/13 11:46:48 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.243 $ */
+/* NetHack 3.6 hack.c  $NHDT-Date: 1579257808 2020/01/17 10:43:28 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.244 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /*-Copyright (c) Derek S. Ray, 2015. */
 /* NetHack may be freely redistributed.  See license for details. */
@@ -1511,6 +1511,7 @@ domove_core()
                     directionname(xytod(dx, dy)));
             }
             nomul(0);
+            g.context.move = 0;
             return;
         }
         if (((trap = t_at(x, y)) && trap->tseen)