• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision91c17e7b81a95cacf9171b971b0845148262d1f1 (tree)
Time2019-06-20 21:27:49
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #39076 do_cmd_open() 内の冗長なコメントを削除.

Change Summary

Incremental Difference

--- a/src/cmd-basic.c
+++ b/src/cmd-basic.c
@@ -838,13 +838,8 @@ void do_cmd_open(player_type *creature_ptr)
838838 {
839839 int num_doors, num_chests;
840840
841- /* Count closed doors (locked or jammed) */
842841 num_doors = count_dt(&y, &x, is_closed_door, FALSE);
843-
844- /* Count chests (locked) */
845842 num_chests = count_chests(creature_ptr, &y, &x, FALSE);
846-
847- /* See if only one target */
848843 if (num_doors || num_chests)
849844 {
850845 bool too_many = (num_doors && num_chests) || (num_doors > 1) ||
@@ -883,31 +878,22 @@ void do_cmd_open(player_type *creature_ptr)
883878 /* Check for chest */
884879 o_idx = chest_check(y, x, FALSE);
885880
886- /* Nothing useful */
887881 if (!have_flag(f_info[feat].flags, FF_OPEN) && !o_idx)
888882 {
889883 msg_print(_("そこには開けるものが見当たらない。", "You see nothing there to open."));
890884 }
891-
892- /* Monster in the way */
893885 else if (g_ptr->m_idx && creature_ptr->riding != g_ptr->m_idx)
894886 {
895887 take_turn(creature_ptr, 100);
896888 msg_print(_("モンスターが立ちふさがっている!", "There is a monster in the way!"));
897889 py_attack(y, x, 0);
898890 }
899-
900- /* Handle chests */
901891 else if (o_idx)
902892 {
903- /* Open the chest */
904893 more = do_cmd_open_chest(y, x, o_idx);
905894 }
906-
907- /* Handle doors */
908895 else
909896 {
910- /* Open the door */
911897 more = do_cmd_open_aux(y, x);
912898 }
913899 }
Show on old repository browser