OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Refactor] #37353 BIAS_* と artifact_bias_name を artifact.c/h へ移動。 / Move BIAS_* and...
[hengband/hengband.git]
/
src
/
floor-generate.c
diff --git
a/src/floor-generate.c
b/src/floor-generate.c
index
050472e
..
e92bd4c
100644
(file)
--- a/
src/floor-generate.c
+++ b/
src/floor-generate.c
@@
-102,6
+102,8
@@
#include "rooms.h"
#include "floor-streams.h"
#include "trap.h"
#include "rooms.h"
#include "floor-streams.h"
#include "trap.h"
+#include "monster.h"
+#include "quest.h"
int dun_tun_rnd;
int dun_tun_chg;
int dun_tun_rnd;
int dun_tun_chg;
@@
-597,8
+599,6
@@
static bool cave_gen(void)
/* Fill the arrays of floors and walls in the good proportions */
set_floor_and_wall(dungeon_type);
/* Fill the arrays of floors and walls in the good proportions */
set_floor_and_wall(dungeon_type);
-
- /* Prepare allocation table */
get_mon_num_prep(get_monster_hook(), NULL);
/* Randomize the dungeon creation values */
get_mon_num_prep(get_monster_hook(), NULL);
/* Randomize the dungeon creation values */
@@
-1202,7
+1202,6
@@
static void battle_gen(void)
if (!m_ptr->r_idx) continue;
if (!m_ptr->r_idx) continue;
- /* Hack -- Detect monster */
m_ptr->mflag2 |= (MFLAG2_MARK | MFLAG2_SHOW);
update_monster(i, FALSE);
}
m_ptr->mflag2 |= (MFLAG2_MARK | MFLAG2_SHOW);
update_monster(i, FALSE);
}
@@
-1232,8
+1231,6
@@
static void quest_gen(void)
monster_level = base_level;
if (record_stair) do_cmd_write_nikki(NIKKI_TO_QUEST, p_ptr->inside_quest, NULL);
monster_level = base_level;
if (record_stair) do_cmd_write_nikki(NIKKI_TO_QUEST, p_ptr->inside_quest, NULL);
-
- /* Prepare allocation table */
get_mon_num_prep(get_monster_hook(), NULL);
init_flags = INIT_CREATE_DUNGEON;
get_mon_num_prep(get_monster_hook(), NULL);
init_flags = INIT_CREATE_DUNGEON;
@@
-1245,7
+1242,7
@@
static void quest_gen(void)
* @brief ダンジョン時のランダムフロア生成 / Make a real level
* @return フロアの生成に成功したらTRUE
*/
* @brief ダンジョン時のランダムフロア生成 / Make a real level
* @return フロアの生成に成功したらTRUE
*/
-static bool level_gen(cptr *why)
+static bool level_gen(c
onc
ptr *why)
{
int level_height, level_width;
{
int level_height, level_width;
@@
-1411,7
+1408,7
@@
void generate_cave(void)
{
bool okay = TRUE;
{
bool okay = TRUE;
- cptr why = NULL;
+ c
onc
ptr why = NULL;
/* Clear and empty the cave */
clear_cave();
/* Clear and empty the cave */
clear_cave();