summaryrefslogtreecommitdiff
path: root/src/generate.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-03-07 16:55:40 +0100
committerBardur Arantsson <bardur@scientician.net>2015-03-07 16:55:40 +0100
commitd6d10c02823805bf5f2088dfaedaf925a83ff52f (patch)
tree7e4d2b88cfe860098bc0dd271bb6318eec02ca1b /src/generate.cc
parenta9d2bec5905a6b29023ce106f44032eba7a9c474 (diff)
Split generate.cc declarations to separate header file
Diffstat (limited to 'src/generate.cc')
-rw-r--r--src/generate.cc27
1 files changed, 4 insertions, 23 deletions
diff --git a/src/generate.cc b/src/generate.cc
index 84e7cb87..5ac6ed77 100644
--- a/src/generate.cc
+++ b/src/generate.cc
@@ -6632,7 +6632,7 @@ static bool_ room_build(int y, int x, int typ)
/*
* Set level boundaries
*/
-void set_bounders(bool_ empty_level)
+static void set_bounders(bool_ empty_level)
{
int y, x;
@@ -7169,7 +7169,7 @@ bool_ level_generate_dungeon()
/*
* Bring the imprinted pets from the old level
*/
-void replace_all_friends()
+static void replace_all_friends()
{
int i;
@@ -7204,7 +7204,7 @@ void replace_all_friends()
/*
* Save the imprinted pets from the old level
*/
-void save_all_friends()
+static void save_all_friends()
{
if (p_ptr->old_wild_mode) return;
@@ -7216,25 +7216,6 @@ void save_all_friends()
/*
- * Return the dungeon type of the current level(it can only return the
- * principal dungeons)
- */
-byte calc_dungeon_type()
-{
- int i;
-
- for (i = 0; i < max_d_idx; i++)
- {
- if ((dun_level >= d_info[i].mindepth) &&
- (dun_level <= d_info[i].maxdepth) &&
- (d_info[i].flags1 & DF1_PRINCIPAL))
- return (i);
- }
- return (0);
-}
-
-
-/*
* Build probability tables for walls and floors and set feat_wall_outer
* and feat_wall_inner according to the current information in d_info.txt
*
@@ -8197,7 +8178,7 @@ static void finalise_special_level(void)
/*
* Give some magical energy to the each grid of the level
*/
-void generate_grid_mana()
+static void generate_grid_mana()
{
int y, x, mana, mult;
bool_ xtra_magic = FALSE;