summaryrefslogtreecommitdiff
path: root/src/generate.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-02-18 18:45:38 +0100
committerBardur Arantsson <bardur@scientician.net>2012-03-29 20:57:29 +0200
commitdb5ec646ef4c0d802221ea10a543c38ce59b5d16 (patch)
treea2c943946df572cc88017218ee6bf3d01323cfdd /src/generate.c
parentc4928a52cb100f696f2ff54d27a87f2ff2ae37c2 (diff)
Remove unused parameter from level generating function.
Diffstat (limited to 'src/generate.c')
-rw-r--r--src/generate.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/generate.c b/src/generate.c
index 0e8cfa59..ab74dffe 100644
--- a/src/generate.c
+++ b/src/generate.c
@@ -288,7 +288,7 @@ static level_generator_type *level_generators = NULL;
/*
* Add a new generator
*/
-void add_level_generator(cptr name, bool_ (*generator)(cptr name), bool_ stairs, bool_ monsters, bool_ objects, bool_ miscs)
+void add_level_generator(cptr name, bool_ (*generator)(), bool_ stairs, bool_ monsters, bool_ objects, bool_ miscs)
{
level_generator_type *g;
@@ -6722,7 +6722,7 @@ static void fill_level(bool_ use_floor, byte smooth);
/*
* Generate a normal dungeon level
*/
-bool_ level_generate_dungeon(cptr name)
+bool_ level_generate_dungeon()
{
int i, k, y, x, y1, x1, branch = get_branch();
dungeon_info_type *d_ptr = &d_info[dungeon_type];
@@ -6740,9 +6740,6 @@ bool_ level_generate_dungeon(cptr name)
if (d_ptr->t_level[i] == dun_level) town_level = d_ptr->t_idx[i];
}
- /* unused */
- name = name;
-
/* Check for arena level */
if ((dungeon_flags1 & (DF1_EMPTY)) ||
(empty_levels && (rand_int(EMPTY_LEVEL) == 0)))