]> granicus.if.org Git - nethack/commitdiff
Remove useless variable
authorPasi Kallinen <paxed@alt.org>
Sat, 21 Nov 2015 18:51:46 +0000 (20:51 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 21 Nov 2015 18:51:46 +0000 (20:51 +0200)
src/mklev.c

index 99e1c31881bbaf4e93d88827fb04da94aaebc0ea..6fd50f7fe0ffc4311096c8323d5254013ffc60a3 100644 (file)
@@ -38,7 +38,6 @@ STATIC_DCL void FDECL(mk_knox_portal, (XCHAR_P, XCHAR_P));
 #define init_vault() vault_x = -1
 #define do_vault() (vault_x != -1)
 static xchar vault_x, vault_y;
-boolean goldseen; /* XXX do we need this variable?  It does nothing. */
 static boolean made_branch; /* used only during level creation */
 
 /* Args must be (const genericptr) so that qsort will always be happy. */
@@ -810,13 +809,12 @@ skip0:
                 (void) maketrap(x, y, WEB);
         }
         /* put traps and mimics inside */
-        goldseen = FALSE;
         x = 8 - (level_difficulty() / 6);
         if (x <= 1)
             x = 2;
         while (!rn2(x))
             mktrap(0, 0, croom, (coord *) 0);
-        if (!goldseen && !rn2(3))
+        if (!rn2(3))
             (void) mkgold(0L, somex(croom), somey(croom));
         if (Is_rogue_level(&u.uz))
             goto skip_nonrogue;