• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionb7e1eade118aa91b96e5dc60f118794d5aec4c8f (tree)
Time2019-03-13 13:55:04
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 コメント整理。 / Refactor comments.

Change Summary

Incremental Difference

--- a/src/cmd-activate.c
+++ b/src/cmd-activate.c
@@ -1637,8 +1637,6 @@ bool activate_artifact(object_type *o_ptr)
16371637 if (get_check(_("この階を去りますか?", "Leave this level? ")))
16381638 {
16391639 if (autosave_l) do_cmd_save_game(TRUE);
1640-
1641- /* Leaving */
16421640 p_ptr->leaving = TRUE;
16431641 }
16441642 }
--- a/src/cmd2.c
+++ b/src/cmd2.c
@@ -212,8 +212,6 @@ void do_cmd_go_up(void)
212212 {
213213 current_floor_ptr->dun_level = 0;
214214 }
215-
216- /* Leaving */
217215 p_ptr->leaving = TRUE;
218216
219217 p_ptr->oldpx = 0;
@@ -293,8 +291,6 @@ void do_cmd_go_up(void)
293291 msg_print(_("地上に戻った。", "You go back to the surface."));
294292 else
295293 msg_print(_("階段を上って新たなる迷宮へと足を踏み入れた。", "You enter a maze of up staircases."));
296-
297- /* Leaving */
298294 p_ptr->leaving = TRUE;
299295 }
300296
@@ -364,8 +360,6 @@ void do_cmd_go_down(void)
364360 {
365361 current_floor_ptr->dun_level = 0;
366362 }
367-
368- /* Leaving */
369363 p_ptr->leaving = TRUE;
370364 p_ptr->oldpx = 0;
371365 p_ptr->oldpy = 0;
@@ -446,8 +440,6 @@ void do_cmd_go_down(void)
446440 }
447441 }
448442
449-
450- /* Leaving */
451443 p_ptr->leaving = TRUE;
452444
453445 if (fall_trap)
--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -606,8 +606,6 @@ static void pattern_teleport(void)
606606 * and create a first saved floor
607607 */
608608 prepare_change_floor_mode(CFM_FIRST_FLOOR);
609-
610- /* Leaving */
611609 p_ptr->leaving = TRUE;
612610 }
613611
@@ -2958,8 +2956,6 @@ static void process_world_aux_movement(void)
29582956 * and create a first saved floor
29592957 */
29602958 prepare_change_floor_mode(CFM_FIRST_FLOOR);
2961-
2962- /* Leaving */
29632959 p_ptr->leaving = TRUE;
29642960
29652961 if (p_ptr->dungeon_idx == DUNGEON_ANGBAND)
@@ -3017,8 +3013,6 @@ static void process_world_aux_movement(void)
30173013 * and create a first saved floor
30183014 */
30193015 prepare_change_floor_mode(CFM_FIRST_FLOOR);
3020-
3021- /* Leaving */
30223016 p_ptr->leaving = TRUE;
30233017 }
30243018 else
@@ -3381,8 +3375,6 @@ static void process_world(void)
33813375
33823376 /* Stop playing */
33833377 p_ptr->playing = FALSE;
3384-
3385- /* Leaving */
33863378 p_ptr->leaving = TRUE;
33873379 }
33883380 }
--- a/src/effects.c
+++ b/src/effects.c
@@ -3969,8 +3969,6 @@ int take_hit(int damage_type, HIT_POINT damage, concptr hit_from, int monspell)
39693969 chg_virtue(V_SACRIFICE, 10);
39703970
39713971 handle_stuff();
3972-
3973- /* Leaving */
39743972 p_ptr->leaving = TRUE;
39753973
39763974 /* Note death */
--- a/src/files.c
+++ b/src/files.c
@@ -6042,8 +6042,6 @@ void do_cmd_suicide(void)
60426042
60436043 /* Kill the player */
60446044 p_ptr->is_dead = TRUE;
6045-
6046- /* Leaving */
60476045 p_ptr->leaving = TRUE;
60486046
60496047 if (!p_ptr->total_winner)
@@ -6133,8 +6131,6 @@ void do_cmd_save_game(int is_autosave)
61336131 void do_cmd_save_and_exit(void)
61346132 {
61356133 p_ptr->playing = FALSE;
6136-
6137- /* Leaving */
61386134 p_ptr->leaving = TRUE;
61396135 do_cmd_write_nikki(NIKKI_GAMESTART, 0, _("----ゲーム中断----", "---- Save and Exit Game ----"));
61406136 }
@@ -7324,8 +7320,6 @@ static void handle_signal_simple(int sig)
73247320
73257321 /* Suicide */
73267322 p_ptr->is_dead = TRUE;
7327-
7328- /* Leaving */
73297323 p_ptr->leaving = TRUE;
73307324
73317325 /* Close stuff */
--- a/src/spells3.c
+++ b/src/spells3.c
@@ -659,8 +659,6 @@ void teleport_level(MONSTER_IDX m_idx)
659659 {
660660 prepare_change_floor_mode(CFM_SAVE_FLOORS | CFM_DOWN | CFM_RAND_PLACE | CFM_RAND_CONNECT);
661661 }
662-
663- /* Leaving */
664662 p_ptr->leaving = TRUE;
665663 }
666664 }
@@ -684,8 +682,6 @@ void teleport_level(MONSTER_IDX m_idx)
684682 prepare_change_floor_mode(CFM_SAVE_FLOORS | CFM_UP | CFM_RAND_PLACE | CFM_RAND_CONNECT);
685683
686684 leave_quest_check();
687-
688- /* Leaving */
689685 p_ptr->inside_quest = 0;
690686 p_ptr->leaving = TRUE;
691687 }
@@ -706,8 +702,6 @@ void teleport_level(MONSTER_IDX m_idx)
706702 if (autosave_l) do_cmd_save_game(TRUE);
707703
708704 prepare_change_floor_mode(CFM_SAVE_FLOORS | CFM_UP | CFM_RAND_PLACE | CFM_RAND_CONNECT);
709-
710- /* Leaving */
711705 p_ptr->leaving = TRUE;
712706 }
713707 }
@@ -723,14 +717,10 @@ void teleport_level(MONSTER_IDX m_idx)
723717 {
724718 /* Never reach this code on the surface */
725719 /* if (!current_floor_ptr->dun_level) p_ptr->dungeon_idx = p_ptr->recall_dungeon; */
726-
727720 if (record_stair) do_cmd_write_nikki(NIKKI_TELE_LEV, 1, NULL);
728-
729721 if (autosave_l) do_cmd_save_game(TRUE);
730722
731723 prepare_change_floor_mode(CFM_SAVE_FLOORS | CFM_DOWN | CFM_RAND_PLACE | CFM_RAND_CONNECT);
732-
733- /* Leaving */
734724 p_ptr->leaving = TRUE;
735725 }
736726 }
--- a/src/trap.c
+++ b/src/trap.c
@@ -342,8 +342,6 @@ void hit_trap(bool break_trap)
342342
343343 do_cmd_write_nikki(NIKKI_BUNSHOU, 0, _("落とし戸に落ちた", "You have fallen through a trap door!"));
344344 prepare_change_floor_mode(CFM_SAVE_FLOORS | CFM_DOWN | CFM_RAND_PLACE | CFM_RAND_CONNECT);
345-
346- /* Leaving */
347345 p_ptr->leaving = TRUE;
348346 }
349347 break;
--- a/src/wild.c
+++ b/src/wild.c
@@ -1131,8 +1131,6 @@ bool change_wild_mode(void)
11311131
11321132 /* Go back to the ordinary map */
11331133 p_ptr->wild_mode = FALSE;
1134-
1135- /* Leaving */
11361134 p_ptr->leaving = TRUE;
11371135
11381136 /* Succeed */
@@ -1180,8 +1178,6 @@ bool change_wild_mode(void)
11801178
11811179 /* Go into the global map */
11821180 p_ptr->wild_mode = TRUE;
1183-
1184- /* Leaving */
11851181 p_ptr->leaving = TRUE;
11861182
11871183 /* Succeed */
--- a/src/wizard2.c
+++ b/src/wizard2.c
@@ -1382,8 +1382,6 @@ static void do_cmd_wiz_jump(void)
13821382 * and create a first saved floor
13831383 */
13841384 prepare_change_floor_mode(CFM_FIRST_FLOOR);
1385-
1386- /* Leaving */
13871385 p_ptr->leaving = TRUE;
13881386 }
13891387
@@ -2088,8 +2086,6 @@ void cheat_death(player_type *creature_ptr)
20882086 creature_ptr->oldpy = 33;
20892087 creature_ptr->oldpx = 131;
20902088 }
2091-
2092- /* Leaving */
20932089 creature_ptr->wild_mode = FALSE;
20942090 creature_ptr->leaving = TRUE;
20952091
Show on old repository browser