]> granicus.if.org Git - nethack/commitdiff
Get out of moverock correctly, so we clear next_boulder
authorPasi Kallinen <paxed@alt.org>
Sat, 5 Mar 2022 13:46:16 +0000 (15:46 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 5 Mar 2022 13:46:16 +0000 (15:46 +0200)
src/hack.c

index cfc3f20c2e455436701f8fdd9fea1831ca79b8d3..f4dd769483b031b4e46d71fd67ac6fef40bbad51 100644 (file)
@@ -154,7 +154,8 @@ moverock(void)
             pline("That feels like a boulder.");
             map_object(otmp, TRUE);
             nomul(0);
-            return -1;
+            res = -1;
+            goto moverock_done;
         }
 
         /* when otmp->next_boulder is 1, xname() will format it as