Continue with next room if the path for the arrow is found
[wumpus.git] / wumpus.c
index 6068fd689d4af240b4035bdc8a2b0cdf6bc410dc..f4dfe50fca6d90f60971f9e02c58fad8a001d066 100644 (file)
--- a/wumpus.c
+++ b/wumpus.c
@@ -25,6 +25,8 @@
  *
  * So, pretend for a little while that your workstation is an ASR-33 and
  * limber up your fingers for a trip to nostalgia-land...
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
  */
 
 #include <stdio.h>
@@ -353,6 +355,7 @@ badrange:
                check_shot();
                if (finished != NOT)
                    return;
+               goto nextpath;
            }
 
            /* 820 NEXT K1                                              */
@@ -366,6 +369,7 @@ badrange:
        check_shot();
 
        /* 840 NEXT K                                                   */
+       nextpath: ;
     }
 
     if (finished == NOT)