• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision03aead8da22dcd91c0533f4814bfdb0097dc7942 (tree)
Time2019-01-10 22:43:31
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/bldg.c
+++ b/src/bldg.c
@@ -3441,8 +3441,7 @@ static void building_recharge(void)
34413441 if (o_ptr->tval == TV_ROD)
34423442 {
34433443 #ifdef JP
3444-if (get_check(format("そのロッドを$%d で再充填しますか?",
3445- price)))
3444+ if (get_check(format("そのロッドを$%d で再充填しますか?", price)))
34463445 #else
34473446 if (get_check(format("Recharge the %s for %d gold? ",
34483447 ((o_ptr->number > 1) ? "rods" : "rod"), price)))
@@ -3651,7 +3650,8 @@ static void building_recharge_all(void)
36513650 */
36523651 bool tele_town(void)
36533652 {
3654- int i, x, y;
3653+ int i;
3654+ POSITION x, y;
36553655 int num = 0;
36563656
36573657 if (dun_level)
@@ -3812,7 +3812,7 @@ static bool research_mon(void)
38123812
38133813
38143814 /* Allocate the "who" array */
3815- C_MAKE(who, max_r_idx, IDX);
3815+ C_MAKE(who, max_r_idx, MONRACE_IDX);
38163816
38173817 /* Collect matching monsters */
38183818 for (n = 0, i = 1; i < max_r_idx; i++)
@@ -3869,7 +3869,7 @@ static bool research_mon(void)
38693869 if (!n)
38703870 {
38713871 /* Free the "who" array */
3872- C_KILL(who, max_r_idx, IDX);
3872+ C_KILL(who, max_r_idx, MONRACE_IDX);
38733873
38743874 /* Restore */
38753875 screen_load();
@@ -3975,7 +3975,7 @@ static bool research_mon(void)
39753975 /* prt(buf, 5, 5);*/
39763976
39773977 /* Free the "who" array */
3978- C_KILL(who, max_r_idx, IDX);
3978+ C_KILL(who, max_r_idx, MONRACE_IDX);
39793979
39803980 /* Restore */
39813981 screen_load();
@@ -4114,7 +4114,7 @@ static void bldg_process_command(building_type *bldg, int i)
41144114 break;
41154115 case BACT_TELEPORT_LEVEL:
41164116 {
4117- IDX select_dungeon;
4117+ DUNGEON_IDX select_dungeon;
41184118 DEPTH max_depth;
41194119
41204120 clear_bldg(4, 20);
Show on old repository browser