From 48ec3d6b661a3c6f22511e5562f4cac4fb68743d Mon Sep 17 00:00:00 2001 From: Deskull Date: Wed, 21 Nov 2018 21:57:06 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=20=E3=82=B3=E3=83=A1?= =?utf8?q?=E3=83=B3=E3=83=88=E6=95=B4=E7=90=86=20/=20Refactor=20comments.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/dungeon.c | 1 - src/files.c | 1 - src/main-win.c | 6 ------ src/monster2.c | 1 - src/object2.c | 1 - src/spells1.c | 3 --- src/spells3.c | 3 --- src/util.c | 4 ---- src/xtra2.c | 4 ---- 9 files changed, 24 deletions(-) diff --git a/src/dungeon.c b/src/dungeon.c index 5e06ad12b..56893bd40 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -6221,7 +6221,6 @@ void play_game(bool new_game) if (!p_ptr->is_dead) wipe_m_list(); - /* XXX XXX XXX */ msg_print(NULL); load_game = FALSE; diff --git a/src/files.c b/src/files.c index bc6854e46..1d76aa60b 100644 --- a/src/files.c +++ b/src/files.c @@ -3825,7 +3825,6 @@ void display_player(BIT_FLAGS mode) char tmp[64]; - /* XXX XXX XXX */ if ((p_ptr->muta1 || p_ptr->muta2 || p_ptr->muta3) && display_mutations) mode = (mode % 5); else diff --git a/src/main-win.c b/src/main-win.c index a09f49250..1760cd421 100644 --- a/src/main-win.c +++ b/src/main-win.c @@ -1070,7 +1070,6 @@ static void term_getsize(term_data *td) rc.top = 0; rc.bottom = rc.top + hgt; - /* XXX XXX XXX */ /* rc.right += 1; */ /* rc.bottom += 1; */ @@ -4641,14 +4640,12 @@ LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg, /* Handle message */ switch (uMsg) { - /* XXX XXX XXX */ case WM_NCCREATE: { SetWindowLong(hWnd, 0, (LONG)(my_td)); break; } - /* XXX XXX XXX */ case WM_CREATE: { #ifdef USE_MUSIC @@ -5079,14 +5076,12 @@ LRESULT FAR PASCAL AngbandListProc(HWND hWnd, UINT uMsg, /* Process message */ switch (uMsg) { - /* XXX XXX XXX */ case WM_NCCREATE: { SetWindowLong(hWnd, 0, (LONG)(my_td)); break; } - /* XXX XXX XXX */ case WM_CREATE: { return 0; @@ -5260,7 +5255,6 @@ LRESULT FAR PASCAL AngbandSaverProc(HWND hWnd, UINT uMsg, /* Process */ switch (uMsg) { - /* XXX XXX XXX */ case WM_NCCREATE: { break; diff --git a/src/monster2.c b/src/monster2.c index b6ad372c7..f008b301b 100644 --- a/src/monster2.c +++ b/src/monster2.c @@ -4460,7 +4460,6 @@ void update_smart_learn(MONSTER_IDX m_idx, int what) if (!(r_ptr->flags2 & (RF2_SMART)) && (randint0(100) < 50)) return; - /* XXX XXX XXX */ /* Analyze the knowledge */ switch (what) diff --git a/src/object2.c b/src/object2.c index d55518da0..691284dc5 100644 --- a/src/object2.c +++ b/src/object2.c @@ -5451,7 +5451,6 @@ OBJECT_IDX drop_near(object_type *j_ptr, PERCENTAGE chance, POSITION y, POSITION msg_print(_("何かが足下に転がってきた。", "You feel something roll beneath your feet.")); } - /* XXX XXX XXX */ /* Result */ return (o_idx); diff --git a/src/spells1.c b/src/spells1.c index 8d917e6af..9dd3f4c5e 100644 --- a/src/spells1.c +++ b/src/spells1.c @@ -714,7 +714,6 @@ static bool project_f(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P bool known = player_has_los_bold(y, x); - /* XXX XXX XXX */ who = who ? who : 0; /* Reduce damage by distance */ @@ -1287,7 +1286,6 @@ static bool project_o(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P bool is_potion = FALSE; - /* XXX XXX XXX */ who = who ? who : 0; /* Reduce damage by distance */ @@ -5225,7 +5223,6 @@ static bool project_p(MONSTER_IDX who, cptr who_name, int r, POSITION y, POSITIO return TRUE; } - /* XXX XXX XXX */ /* Limit maximum damage */ if (dam > 1600) dam = 1600; diff --git a/src/spells3.c b/src/spells3.c index f22e7be89..1d02202e6 100644 --- a/src/spells3.c +++ b/src/spells3.c @@ -1725,7 +1725,6 @@ void alter_reality(void) */ bool warding_glyph(void) { - /* XXX XXX XXX */ if (!cave_clean_bold(p_ptr->y, p_ptr->x)) { msg_print(_("床上のアイテムが呪文を跳ね返した。", "The object resists the spell.")); @@ -1751,7 +1750,6 @@ bool warding_glyph(void) */ bool place_mirror(void) { - /* XXX XXX XXX */ if (!cave_clean_bold(p_ptr->y, p_ptr->x)) { msg_print(_("床上のアイテムが呪文を跳ね返した。", "The object resists the spell.")); @@ -1784,7 +1782,6 @@ bool place_mirror(void) */ bool explosive_rune(void) { - /* XXX XXX XXX */ if (!cave_clean_bold(p_ptr->y, p_ptr->x)) { msg_print(_("床上のアイテムが呪文を跳ね返した。", "The object resists the spell.")); diff --git a/src/util.c b/src/util.c index 9a321f55f..def117aad 100644 --- a/src/util.c +++ b/src/util.c @@ -606,7 +606,6 @@ errr fd_kill(cptr file) /* Remove */ (void)remove(buf); - /* XXX XXX XXX */ return (0); } @@ -628,7 +627,6 @@ errr fd_move(cptr file, cptr what) /* Rename */ (void)rename(buf, aux); - /* XXX XXX XXX */ return (0); } @@ -679,7 +677,6 @@ errr fd_copy(cptr file, cptr what) fd_close(src_fd); fd_close(dst_fd); - /* XXX XXX XXX */ return (0); } @@ -937,7 +934,6 @@ errr fd_close(int fd) /* Close */ (void)close(fd); - /* XXX XXX XXX */ return (0); } diff --git a/src/xtra2.c b/src/xtra2.c index b30ca5e05..eff06b189 100644 --- a/src/xtra2.c +++ b/src/xtra2.c @@ -1353,7 +1353,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item) /* Make some gold */ if (!make_gold(q_ptr)) continue; - /* XXX XXX XXX */ dump_gold++; } @@ -1363,7 +1362,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item) /* Make an object */ if (!make_object(q_ptr, mo_mode)) continue; - /* XXX XXX XXX */ dump_item++; } @@ -4196,7 +4194,6 @@ bool get_aim_dir(DIRECTION *dp) /* Check for confusion */ if (p_ptr->confused) { - /* XXX XXX XXX */ /* Random direction */ dir = ddd[randint0(8)]; } @@ -5381,7 +5378,6 @@ bool get_hack_dir(DIRECTION *dp) /* Check for confusion */ if (p_ptr->confused) { - /* XXX XXX XXX */ /* Random direction */ dir = ddd[randint0(8)]; } -- 2.11.0