summaryrefslogtreecommitdiff
path: root/src/generate.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-02-18 13:51:36 +0100
committerBardur Arantsson <bardur@scientician.net>2012-03-29 20:41:31 +0200
commitb63cc899aeedd7c6704b30738998591f327afbef (patch)
tree834185388b192fe2fbeae3abe713fb51e5c160bc /src/generate.c
parentf5bd542881c50c9295fdb5a541ef7d6e36173815 (diff)
Refactor: Remove unused/dead variables.
Diffstat (limited to 'src/generate.c')
-rw-r--r--src/generate.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/generate.c b/src/generate.c
index 69588dc8..3c0fd9fd 100644
--- a/src/generate.c
+++ b/src/generate.c
@@ -7284,8 +7284,8 @@ static void init_feat_info(void)
int i;
int cur_depth, max_depth;
int p1, p2;
- int floor_lim1, floor_lim2, floor_lim3;
- int fill_lim1, fill_lim2, fill_lim3;
+ int floor_lim1, floor_lim2;
+ int fill_lim1, fill_lim2;
/* Retrieve dungeon depth info (base 1, to avoid zero divide errors) */
@@ -7307,8 +7307,6 @@ static void init_feat_info(void)
p2 = d_ptr->floor_percent2[1];
floor_lim2 = floor_lim1 + p1 + (p2 - p1) * cur_depth / max_depth;
- floor_lim3 = 100;
-
/* Setup probability info -- Fillers */
p1 = d_ptr->fill_percent1[0];
p2 = d_ptr->fill_percent1[1];
@@ -7318,8 +7316,6 @@ static void init_feat_info(void)
p2 = d_ptr->fill_percent2[1];
fill_lim2 = fill_lim1 + p1 + (p2 - p1) * cur_depth / max_depth;
- fill_lim3 = 100;
-
/* Fill the arrays of floors and walls in the good proportions */
for (i = 0; i < 100; i++)
@@ -7567,7 +7563,6 @@ static bool_ cave_gen(void)
int max_vault_ok = 2;
bool_ empty_level = FALSE;
- s16b town_level = 0;
level_generator_type *generator;
@@ -7589,13 +7584,6 @@ static bool_ cave_gen(void)
cur_hgt /= 2;
}
- /* Is it a town level ? */
- for (i = 0; i < TOWN_DUNGEON; i++)
- {
- if (d_ptr->t_level[i] == dun_level) town_level = d_ptr->t_idx[i];
- }
-
-
/* Fill the arrays of floors and walls in the good proportions */
init_feat_info();