• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: コミット

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


コミットメタ情報

リビジョン422ec96ba410bfde3e64405f9ea0fe3ef2b4352f (tree)
日時2018-12-08 01:10:55
作者Deskull <deskull@user...>
コミッターDeskull

ログメッセージ

[Refactor] #37353 コメント整理と型の置換 / Refactor comments and type replacement.

変更サマリ

差分

--- a/src/cave.c
+++ b/src/cave.c
@@ -1746,15 +1746,13 @@ void prt_path(POSITION y, POSITION x)
17461746 path_n = project_path(path_g, (project_length ? project_length : MAX_RANGE), p_ptr->y, p_ptr->x, y, x, PROJECT_PATH|PROJECT_THRU);
17471747
17481748 p_ptr->redraw |= (PR_MAP);
1749-
1750- /* Redraw stuff */
17511749 redraw_stuff();
17521750
17531751 /* Draw path */
17541752 for (i = 0; i < path_n; i++)
17551753 {
1756- int ny = GRID_Y(path_g[i]);
1757- int nx = GRID_X(path_g[i]);
1754+ POSITION ny = GRID_Y(path_g[i]);
1755+ POSITION nx = GRID_X(path_g[i]);
17581756 cave_type *c_ptr = &cave[ny][nx];
17591757
17601758 if (panel_contains(ny, nx))
--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -5013,10 +5013,7 @@ static void process_player(void)
50135013 /* Count this execution */
50145014 command_rep--;
50155015
5016- /* Redraw the state */
50175016 p_ptr->redraw |= (PR_STATE);
5018-
5019- /* Redraw stuff */
50205017 redraw_stuff();
50215018
50225019 /* Hack -- Assume messages were seen */
--- a/src/monster-status.c
+++ b/src/monster-status.c
@@ -712,13 +712,8 @@ bool process_the_world(int num, MONSTER_IDX who, bool vs_player)
712712
713713 /* Notice stuff */
714714 if (p_ptr->notice) notice_stuff();
715-
716715 if (p_ptr->update) update_stuff();
717-
718- /* Redraw stuff */
719716 if (p_ptr->redraw) redraw_stuff();
720-
721- /* Redraw stuff */
722717 if (p_ptr->window) window_stuff();
723718
724719 if (vs_player) Term_xtra(TERM_XTRA_DELAY, 500);
--- a/src/xtra1.c
+++ b/src/xtra1.c
@@ -5898,19 +5898,14 @@ void update_stuff(void)
58985898 */
58995899 void redraw_stuff(void)
59005900 {
5901- /* Redraw stuff */
59025901 if (!p_ptr->redraw) return;
59035902
5904-
59055903 /* Character is not ready yet, no screen updates */
59065904 if (!character_generated) return;
59075905
5908-
59095906 /* Character is in "icky" mode, no screen updates */
59105907 if (character_icky) return;
59115908
5912-
5913-
59145909 /* Hack -- clear the screen */
59155910 if (p_ptr->redraw & (PR_WIPE))
59165911 {
@@ -6193,10 +6188,7 @@ void window_stuff(void)
61936188 void handle_stuff(void)
61946189 {
61956190 if (p_ptr->update) update_stuff();
6196-
6197- /* Redraw stuff */
61986191 if (p_ptr->redraw) redraw_stuff();
6199-
62006192 if (p_ptr->window) window_stuff();
62016193 }
62026194
旧リポジトリブラウザで表示