• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision405bec660f92f0884459c72375f369b4060ce954 (tree)
Time2019-02-14 19:01:56
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cmd-item.c
+++ b/src/cmd-item.c
@@ -883,10 +883,7 @@ void do_cmd_uninscribe(void)
883883
884884 /* Remove the incription */
885885 o_ptr->inscription = 0;
886-
887- /* Combine the pack */
888886 p_ptr->update |= (PU_COMBINE);
889-
890887 p_ptr->window |= (PW_INVEN | PW_EQUIP);
891888
892889 /* .や$の関係で, 再計算が必要なはず -- henkma */
@@ -935,10 +932,7 @@ void do_cmd_inscribe(void)
935932 {
936933 /* Save the inscription */
937934 o_ptr->inscription = quark_add(out_val);
938-
939- /* Combine the pack */
940935 p_ptr->update |= (PU_COMBINE);
941-
942936 p_ptr->window |= (PW_INVEN | PW_EQUIP);
943937
944938 /* .や$の関係で, 再計算が必要なはず -- henkma */
--- a/src/object2.c
+++ b/src/object2.c
@@ -1503,10 +1503,7 @@ bool can_player_destroy_object(object_type *o_ptr)
15031503
15041504 /* We have "felt" it (again) */
15051505 o_ptr->ident |= (IDENT_SENSE);
1506-
1507- /* Combine the pack */
15081506 p_ptr->update |= (PU_COMBINE);
1509-
15101507 p_ptr->window |= (PW_INVEN | PW_EQUIP);
15111508
15121509 return FALSE;
@@ -5343,10 +5340,7 @@ void inven_item_increase(INVENTORY_IDX item, ITEM_NUMBER num)
53435340
53445341 /* Recalculate mana XXX */
53455342 p_ptr->update |= (PU_MANA);
5346-
5347- /* Combine the pack */
53485343 p_ptr->update |= (PU_COMBINE);
5349-
53505344 p_ptr->window |= (PW_INVEN | PW_EQUIP);
53515345
53525346 /* Hack -- Clear temporary elemental brands if player takes off weapons */
@@ -7393,10 +7387,7 @@ static void drain_essence(void)
73937387
73947388 /* Apply autodestroy/inscription to the drained item */
73957389 autopick_alter_item(item, TRUE);
7396-
7397- /* Combine the pack */
73987390 p_ptr->update |= (PU_COMBINE | PU_REORDER);
7399-
74007391 p_ptr->window |= (PW_INVEN);
74017392 }
74027393
@@ -7984,17 +7975,14 @@ static void add_essence(ESSENCE_IDX mode)
79847975 }
79857976 }
79867977
7987- take_turn(p_ptr, 100);;
7978+ take_turn(p_ptr, 100);
79887979
79897980 #ifdef JP
79907981 msg_format("%sに%sの能力を付加しました。", o_name, es_ptr->add_name);
79917982 #else
79927983 msg_format("You have added ability of %s to %s.", es_ptr->add_name, o_name);
79937984 #endif
7994-
7995- /* Combine the pack */
79967985 p_ptr->update |= (PU_COMBINE | PU_REORDER);
7997-
79987986 p_ptr->window |= (PW_INVEN);
79997987 }
80007988
@@ -8035,10 +8023,7 @@ static void erase_essence(void)
80358023 object_flags(o_ptr, flgs);
80368024 if (!(have_pval_flags(flgs))) o_ptr->pval = 0;
80378025 msg_print(_("エッセンスを取り去った。", "You removed all essence you have added."));
8038-
8039- /* Combine the pack */
80408026 p_ptr->update |= (PU_COMBINE | PU_REORDER);
8041-
80428027 p_ptr->window |= (PW_INVEN);
80438028 }
80448029
--- a/src/player-status.c
+++ b/src/player-status.c
@@ -3679,8 +3679,6 @@ void update_creature(player_type *creature_ptr)
36793679 creature_ptr->update &= ~(PU_AUTODESTROY);
36803680 autopick_delayed_alter();
36813681 }
3682-
3683- /* Combine the pack */
36843682 if (creature_ptr->update & (PU_COMBINE))
36853683 {
36863684 creature_ptr->update &= ~(PU_COMBINE);
Show on old repository browser