• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision0673118c04ff231b06c924b1a0ef35bb77d17b2e (tree)
Time2019-01-08 13:15:20
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cmd2.c
+++ b/src/cmd2.c
@@ -378,8 +378,6 @@ void do_cmd_search(void)
378378 {
379379 /* Set repeat count */
380380 command_rep = command_arg - 1;
381-
382- /* Redraw the state */
383381 p_ptr->redraw |= (PR_STATE);
384382
385383 /* Cancel the arg */
@@ -770,8 +768,6 @@ void do_cmd_open(void)
770768 {
771769 /* Set repeat count */
772770 command_rep = command_arg - 1;
773-
774- /* Redraw the state */
775771 p_ptr->redraw |= (PR_STATE);
776772
777773 /* Cancel the arg */
@@ -918,8 +914,6 @@ void do_cmd_close(void)
918914 {
919915 /* Set repeat count */
920916 command_rep = command_arg - 1;
921-
922- /* Redraw the state */
923917 p_ptr->redraw |= (PR_STATE);
924918
925919 /* Cancel the arg */
@@ -1159,8 +1153,6 @@ void do_cmd_tunnel(void)
11591153 {
11601154 /* Set repeat count */
11611155 command_rep = command_arg - 1;
1162-
1163- /* Redraw the state */
11641156 p_ptr->redraw |= (PR_STATE);
11651157
11661158 /* Cancel the arg */
@@ -1514,8 +1506,6 @@ void do_cmd_disarm(void)
15141506 {
15151507 /* Set repeat count */
15161508 command_rep = command_arg - 1;
1517-
1518- /* Redraw the state */
15191509 p_ptr->redraw |= (PR_STATE);
15201510
15211511 /* Cancel the arg */
@@ -1700,8 +1690,6 @@ void do_cmd_bash(void)
17001690 {
17011691 /* Set repeat count */
17021692 command_rep = command_arg - 1;
1703-
1704- /* Redraw the state */
17051693 p_ptr->redraw |= (PR_STATE);
17061694
17071695 /* Cancel the arg */
@@ -1785,8 +1773,6 @@ void do_cmd_alter(void)
17851773 {
17861774 /* Set repeat count */
17871775 command_rep = command_arg - 1;
1788-
1789- /* Redraw the state */
17901776 p_ptr->redraw |= (PR_STATE);
17911777
17921778 /* Cancel the arg */
@@ -1988,8 +1974,6 @@ void do_cmd_walk(bool pickup)
19881974 {
19891975 /* Set repeat count */
19901976 command_rep = command_arg - 1;
1991-
1992- /* Redraw the state */
19931977 p_ptr->redraw |= (PR_STATE);
19941978
19951979 /* Cancel the arg */
@@ -2095,8 +2079,6 @@ void do_cmd_stay(bool pickup)
20952079 {
20962080 /* Set repeat count */
20972081 command_rep = command_arg - 1;
2098-
2099- /* Redraw the state */
21002082 p_ptr->redraw |= (PR_STATE);
21012083
21022084 /* Cancel the arg */
@@ -2190,8 +2172,6 @@ void do_cmd_rest(void)
21902172 resting = command_arg;
21912173 p_ptr->action = ACTION_REST;
21922174 p_ptr->update |= (PU_BONUS);
2193-
2194- /* Redraw the state */
21952175 p_ptr->redraw |= (PR_STATE);
21962176 handle_stuff();
21972177
--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -5080,8 +5080,6 @@ static void process_player(void)
50805080 resting--;
50815081
50825082 if (!resting) set_action(ACTION_NONE);
5083-
5084- /* Redraw the state */
50855083 p_ptr->redraw |= (PR_STATE);
50865084 }
50875085
--- a/src/effects.c
+++ b/src/effects.c
@@ -117,8 +117,6 @@ void set_action(ACTION_IDX typ)
117117 }
118118 }
119119 p_ptr->update |= (PU_BONUS);
120-
121- /* Redraw the state */
122120 p_ptr->redraw |= (PR_STATE);
123121 }
124122
@@ -268,14 +266,11 @@ void dispel_player(void)
268266 INTERUPTING_SONG_EFFECT(p_ptr) = SINGING_SONG_EFFECT(p_ptr);
269267 SINGING_SONG_EFFECT(p_ptr) = MUSIC_NONE;
270268 msg_format(_("%sが途切れた。", "Your %s is interrupted."), str);
271- p_ptr->action = ACTION_NONE;
272- p_ptr->update |= (PU_BONUS | PU_HP);
273269
270+ p_ptr->action = ACTION_NONE;
271+ p_ptr->update |= (PU_BONUS | PU_HP | PU_MONSTERS);
274272 p_ptr->redraw |= (PR_MAP | PR_STATUS | PR_STATE);
275- p_ptr->update |= (PU_MONSTERS);
276-
277273 p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
278-
279274 p_ptr->energy_need += ENERGY_NEED();
280275 }
281276 }
@@ -668,8 +663,6 @@ bool set_paralyzed(TIME_EFFECT v)
668663 if (!notice) return (FALSE);
669664
670665 if (disturb_state) disturb(FALSE, FALSE);
671-
672- /* Redraw the state */
673666 p_ptr->redraw |= (PR_STATE);
674667 handle_stuff();
675668 return (TRUE);
Show on old repository browser