Return if the arrow hit something after moving randomly
[wumpus.git] / wumpus.c
index f4dfe50fca6d90f60971f9e02c58fad8a001d066..2adc696d8179cc80d44252a4f5f6eba73d01e469 100644 (file)
--- a/wumpus.c
+++ b/wumpus.c
@@ -367,6 +367,8 @@ badrange:
 
        /* 835 GOTO 900                                                 */
        check_shot();
+       if (finished != NOT)
+           return;
 
        /* 840 NEXT K                                                   */
        nextpath: ;