Remove useless variable
This commit is contained in:
+1
-3
@@ -38,7 +38,6 @@ STATIC_DCL void FDECL(mk_knox_portal, (XCHAR_P, XCHAR_P));
|
|||||||
#define init_vault() vault_x = -1
|
#define init_vault() vault_x = -1
|
||||||
#define do_vault() (vault_x != -1)
|
#define do_vault() (vault_x != -1)
|
||||||
static xchar vault_x, vault_y;
|
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 */
|
static boolean made_branch; /* used only during level creation */
|
||||||
|
|
||||||
/* Args must be (const genericptr) so that qsort will always be happy. */
|
/* Args must be (const genericptr) so that qsort will always be happy. */
|
||||||
@@ -810,13 +809,12 @@ skip0:
|
|||||||
(void) maketrap(x, y, WEB);
|
(void) maketrap(x, y, WEB);
|
||||||
}
|
}
|
||||||
/* put traps and mimics inside */
|
/* put traps and mimics inside */
|
||||||
goldseen = FALSE;
|
|
||||||
x = 8 - (level_difficulty() / 6);
|
x = 8 - (level_difficulty() / 6);
|
||||||
if (x <= 1)
|
if (x <= 1)
|
||||||
x = 2;
|
x = 2;
|
||||||
while (!rn2(x))
|
while (!rn2(x))
|
||||||
mktrap(0, 0, croom, (coord *) 0);
|
mktrap(0, 0, croom, (coord *) 0);
|
||||||
if (!goldseen && !rn2(3))
|
if (!rn2(3))
|
||||||
(void) mkgold(0L, somex(croom), somey(croom));
|
(void) mkgold(0L, somex(croom), somey(croom));
|
||||||
if (Is_rogue_level(&u.uz))
|
if (Is_rogue_level(&u.uz))
|
||||||
goto skip_nonrogue;
|
goto skip_nonrogue;
|
||||||
|
|||||||
Reference in New Issue
Block a user