• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisionea974995d9bcccd0b79a0927a42d9a02aa9fb1c8 (tree)
Time2019-02-26 01:00:05
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 generate_cave() を generate_random_floor() に改名。 / Rename generate_cave() to generate_random_floor().

Change Summary

Incremental Difference

--- a/src/floor-generate.c
+++ b/src/floor-generate.c
@@ -1277,7 +1277,7 @@ static bool level_gen(concptr *why)
12771277 * @brief フロアに存在する全マスの記憶状態を初期化する / Wipe all unnecessary flags after grid_array generation
12781278 * @return なし
12791279 */
1280-void wipe_generate_cave_flags(void)
1280+void wipe_generate_random_floor_flags(void)
12811281 {
12821282 POSITION x, y;
12831283
@@ -1366,7 +1366,7 @@ void clear_cave(void)
13661366 * @return なし
13671367 * @note Hack -- regenerate any "overflow" levels
13681368 */
1369-void generate_cave(void)
1369+void generate_random_floor(void)
13701370 {
13711371 int num;
13721372
@@ -1445,7 +1445,7 @@ void generate_cave(void)
14451445 /* Reset flag */
14461446 p_ptr->enter_dungeon = FALSE;
14471447
1448- wipe_generate_cave_flags();
1448+ wipe_generate_random_floor_flags();
14491449 }
14501450
14511451 /*!
--- a/src/floor-save.c
+++ b/src/floor-save.c
@@ -343,7 +343,7 @@ static void build_dead_end(void)
343343 /* Give one square */
344344 place_floor_bold(p_ptr->y, p_ptr->x);
345345
346- wipe_generate_cave_flags();
346+ wipe_generate_random_floor_flags();
347347 }
348348
349349
@@ -1105,7 +1105,7 @@ void change_floor(void)
11051105 !(change_floor_mode & CFM_FIRST_FLOOR))
11061106 {
11071107 /* Create grid_array */
1108- generate_cave();
1108+ generate_random_floor();
11091109
11101110 /* Paranoia -- No new saved floor */
11111111 new_floor_id = 0;
@@ -1299,7 +1299,7 @@ void change_floor(void)
12991299 else
13001300 {
13011301 /* Newly create grid_array */
1302- generate_cave();
1302+ generate_random_floor();
13031303 }
13041304
13051305 /* Record last visit turn */
--- a/src/generate.h
+++ b/src/generate.h
@@ -100,6 +100,6 @@ struct dun_data
100100 extern dun_data *dun;
101101
102102 extern bool place_quest_monsters(void);
103-extern void wipe_generate_cave_flags(void);
103+extern void wipe_generate_random_floor_flags(void);
104104 extern void clear_cave(void);
105-extern void generate_cave(void);
105+extern void generate_random_floor(void);
Show on old repository browser