• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision456622daac909c961788ff0e130bde6cc980f4ed (tree)
Time2019-01-10 12:56:32
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Refactor] #37353 型の置換。 / Type replacement.

Change Summary

Incremental Difference

--- a/src/cmd2.c
+++ b/src/cmd2.c
@@ -1475,7 +1475,7 @@ void do_cmd_disarm(void)
14751475 {
14761476 POSITION y, x;
14771477 DIRECTION dir;
1478- s16b o_idx;
1478+ OBJECT_IDX o_idx;
14791479
14801480 bool more = FALSE;
14811481
@@ -1551,14 +1551,12 @@ void do_cmd_disarm(void)
15511551 /* Disarm chest */
15521552 else if (o_idx)
15531553 {
1554- /* Disarm the chest */
15551554 more = do_cmd_disarm_chest(y, x, o_idx);
15561555 }
15571556
15581557 /* Disarm trap */
15591558 else
15601559 {
1561- /* Disarm the trap */
15621560 more = do_cmd_disarm_aux(y, x, dir);
15631561 }
15641562 }
--- a/src/melee1.c
+++ b/src/melee1.c
@@ -2152,7 +2152,7 @@ bool make_attack_normal(MONSTER_IDX m_idx)
21522152 /* Find an item */
21532153 for (k = 0; k < 10; k++)
21542154 {
2155- s16b o_idx;
2155+ OBJECT_IDX o_idx;
21562156
21572157 /* Pick an item */
21582158 i = (INVENTORY_IDX)randint0(INVEN_PACK);
Show on old repository browser