• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisiond8069600d5567d3f80891d9f21d5744c2dc9d614 (tree)
Time2019-06-13 22:16:40
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #39076 冗長なコメントを削除 (/* Init the wilderness */)

Change Summary

Incremental Difference

--- a/src/core.c
+++ b/src/core.c
@@ -5345,7 +5345,7 @@ void play_game(bool new_game)
53455345 /* Open the high score file, for reading/writing */
53465346 highscore_fd = fd_open(buf, O_RDWR);
53475347
5348- /* 町名消失バグ対策(#38205) Init the wilderness */
5348+ /* 町名消失バグ対策(#38205)のためここで世界マップ情報を読み出す */
53495349 process_dungeon_file("w_info.txt", 0, 0, current_world_ptr->max_wild_y, current_world_ptr->max_wild_x);
53505350
53515351 /* Handle score, show Top scores */
@@ -5531,25 +5531,17 @@ void play_game(bool new_game)
55315531 /* Initialize the town-buildings if necessary */
55325532 if (!current_floor_ptr->dun_level && !p_ptr->inside_quest)
55335533 {
5534- /* Init the wilderness */
5535-
55365534 process_dungeon_file("w_info.txt", 0, 0, current_world_ptr->max_wild_y, current_world_ptr->max_wild_x);
5537-
5538- /* Init the town */
55395535 init_flags = INIT_ONLY_BUILDINGS;
5540-
55415536 process_dungeon_file("t_info.txt", 0, 0, MAX_HGT, MAX_WID);
5542-
55435537 select_floor_music();
55445538 }
55455539
5546-
55475540 /* Generate a dungeon level if needed */
55485541 if (!current_world_ptr->character_dungeon)
55495542 {
55505543 change_floor(p_ptr->change_floor_mode);
55515544 }
5552-
55535545 else
55545546 {
55555547 /* HACK -- Restore from panic-save */
--- a/src/wild.c
+++ b/src/wild.c
@@ -484,10 +484,7 @@ void wilderness_gen(void)
484484 panel_row_min = current_floor_ptr->height;
485485 panel_col_min = current_floor_ptr->width;
486486
487- /* Init the wilderness */
488-
489487 process_dungeon_file("w_info.txt", 0, 0, current_world_ptr->max_wild_y, current_world_ptr->max_wild_x);
490-
491488 x = p_ptr->wilderness_x;
492489 y = p_ptr->wilderness_y;
493490 get_mon_num_prep(get_monster_hook(), NULL);
@@ -724,7 +721,6 @@ void wilderness_gen_small(void)
724721 current_floor_ptr->grid_array[j][i].feat = feat_permanent;
725722 }
726723
727- /* Init the wilderness */
728724 process_dungeon_file("w_info.txt", 0, 0, current_world_ptr->max_wild_y, current_world_ptr->max_wild_x);
729725
730726 /* Fill the map */
Show on old repository browser