Removing obsolete comment.
[wumpus.git] / superhack.c
index f9879fd8ee10b7afc6af792d4ae53a573b3a3bb1..eacb8eb2d9befc0e91a9c3d7663e5a1ca92dfc0f 100644 (file)
@@ -3,9 +3,8 @@
  *
  * Author: Eric S. Raymond <esr@snark.thyrsus.com>
  *
  *
  * Author: Eric S. Raymond <esr@snark.thyrsus.com>
  *
- * My update of a classic adventure game.  The C is crude because it's
- * a hack on a line-by-line translation of a BASIC `Hunt The Wumpus'.
- * This code is no relation to the elaborate dungeon game called `Hack'.
+ * My update of a classic adventure game.  This code is no relation to
+ * the elaborate dungeon game called `Hack'.
  *
  * Any resemblance to persons living or dead is strictly coincidental.  And
  * if you believe *that*...
  *
  * Any resemblance to persons living or dead is strictly coincidental.  And
  * if you believe *that*...
@@ -13,6 +12,7 @@
 
 #include <stdio.h>
 #include <ctype.h>
 
 #include <stdio.h>
 #include <ctype.h>
+#include <stdlib.h>
 
 static int path[5];
 static int j, k, scratchloc, pies;
 
 static int path[5];
 static int j, k, scratchloc, pies;
@@ -332,7 +332,7 @@ goodmove:
        PM("Yow! You interrupted the superhack.");
        move_superhack();
     }
        PM("Yow! You interrupted the superhack.");
        move_superhack();
     }
-    else if (scratchloc == loc[STARLET1] || scratchloc == loc[STARLET1])
+    else if (scratchloc == loc[STARLET1] || scratchloc == loc[STARLET2])
     {
        PM("You begin to babble at an unimpressed starlet.  You lose!");
        finished = LOSE;
     {
        PM("You begin to babble at an unimpressed starlet.  You lose!");
        finished = LOSE;