• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision556721cd8d092cfacfe5c11372e8dc28ebf21b87 (tree)
Time2019-02-06 23:38:27
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/spells2.c
+++ b/src/spells2.c
@@ -2622,7 +2622,6 @@ bool lite_area(HIT_POINT dam, POSITION rad)
26222622 return FALSE;
26232623 }
26242624
2625- /* Hack -- Message */
26262625 if (!p_ptr->blind)
26272626 {
26282627 msg_print(_("白い光が辺りを覆った。", "You are surrounded by a white light."));
@@ -2631,7 +2630,6 @@ bool lite_area(HIT_POINT dam, POSITION rad)
26312630 /* Hook into the "project()" function */
26322631 (void)project(0, rad, p_ptr->y, p_ptr->x, dam, GF_LITE_WEAK, flg, -1);
26332632
2634- /* Lite up the room */
26352633 lite_room(p_ptr->y, p_ptr->x);
26362634
26372635 /* Assume seen */
@@ -2658,7 +2656,6 @@ bool unlite_area(HIT_POINT dam, POSITION rad)
26582656 /* Hook into the "project()" function */
26592657 (void)project(0, rad, p_ptr->y, p_ptr->x, dam, GF_DARK_WEAK, flg, -1);
26602658
2661- /* Lite up the room */
26622659 unlite_room(p_ptr->y, p_ptr->x);
26632660
26642661 /* Assume seen */
@@ -2919,16 +2916,12 @@ bool teleport_swap(DIRECTION dir)
29192916 if (!c_ptr->m_idx || (c_ptr->m_idx == p_ptr->riding))
29202917 {
29212918 msg_print(_("それとは場所を交換できません。", "You can't trade places with that!"));
2922-
2923- /* Failure */
29242919 return FALSE;
29252920 }
29262921
29272922 if ((c_ptr->info & CAVE_ICKY) || (distance(ty, tx, p_ptr->y, p_ptr->x) > p_ptr->lev * 3 / 2 + 10))
29282923 {
29292924 msg_print(_("失敗した。", "Failed to swap."));
2930-
2931- /* Failure */
29322925 return FALSE;
29332926 }
29342927
@@ -2940,10 +2933,7 @@ bool teleport_swap(DIRECTION dir)
29402933 if (r_ptr->flagsr & RFR_RES_TELE)
29412934 {
29422935 msg_print(_("テレポートを邪魔された!", "Your teleportation is blocked!"));
2943-
29442936 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
2945-
2946- /* Failure */
29472937 return FALSE;
29482938 }
29492939
@@ -3195,13 +3185,9 @@ bool glyph_creation(void)
31953185 bool wall_stone(void)
31963186 {
31973187 BIT_FLAGS flg = PROJECT_GRID | PROJECT_ITEM | PROJECT_HIDE;
3198-
31993188 bool dummy = (project(0, 1, p_ptr->y, p_ptr->x, 0, GF_STONE_WALL, flg, -1));
3200-
32013189 p_ptr->update |= (PU_FLOW);
3202-
32033190 p_ptr->redraw |= (PR_MAP);
3204-
32053191 return dummy;
32063192 }
32073193
@@ -3314,8 +3300,7 @@ void call_chaos(void)
33143300 */
33153301 bool activate_ty_curse(bool stop_ty, int *count)
33163302 {
3317- int i = 0;
3318-
3303+ int i = 0;
33193304 BIT_FLAGS flg = (PROJECT_GRID | PROJECT_ITEM | PROJECT_KILL | PROJECT_JUMP);
33203305
33213306 do
Show on old repository browser