• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision699ec4606f96c20bab88b38279d29ad2d9867ff9 (tree)
Time2018-12-04 20:00:20
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/artifact.c
+++ b/src/artifact.c
@@ -2342,8 +2342,7 @@ int calc_arm_avgdamage(object_type *o_ptr)
23422342
23432343 dam = dam + o_ptr->to_d;
23442344
2345- msg_format_wizard(CHEAT_OBJECT,"素:%d> 対邪:%d> 理力:%d> 切:%d> 最終:%d",
2346- base, s_evil, forced, vorpal, dam);
2345+ msg_format_wizard(CHEAT_OBJECT,"素:%d> 対邪:%d> 理力:%d> 切:%d> 最終:%d", base, s_evil, forced, vorpal, dam);
23472346
23482347 return(dam);
23492348 }
--- a/src/bldg.c
+++ b/src/bldg.c
@@ -975,7 +975,7 @@ static int do_poker(void)
975975 cards[i] = deck[deck_ptr++];
976976 kaeruka[i] = 0; /* default:nokosu */
977977 }
978-
978+
979979 /* suteruno wo kimeru */
980980 prt(_("残すカードを決めて下さい(方向で移動, スペースで選択)。", "Stay witch? "), 0, 0);
981981
--- a/src/spells2.c
+++ b/src/spells2.c
@@ -25,7 +25,7 @@
2525 */
2626 static bool detect_feat_flag(POSITION range, int flag, bool known)
2727 {
28- int x, y;
28+ POSITION x, y;
2929 bool detect = FALSE;
3030 cave_type *c_ptr;
3131
@@ -155,7 +155,8 @@ bool detect_treasure(POSITION range)
155155 */
156156 bool detect_objects_gold(POSITION range)
157157 {
158- int i, y, x;
158+ OBJECT_IDX i;
159+ POSITION y, x;
159160 POSITION range2 = range;
160161
161162 bool detect = FALSE;
@@ -209,7 +210,8 @@ bool detect_objects_gold(POSITION range)
209210 */
210211 bool detect_objects_normal(POSITION range)
211212 {
212- int i, y, x;
213+ OBJECT_IDX i;
214+ POSITION y, x;
213215 POSITION range2 = range;
214216
215217 bool detect = FALSE;
@@ -271,7 +273,9 @@ bool detect_objects_normal(POSITION range)
271273 */
272274 bool detect_objects_magic(POSITION range)
273275 {
274- int i, y, x, tv;
276+ OBJECT_TYPE_VALUE tv;
277+ OBJECT_IDX i;
278+ POSITION y, x;
275279
276280 bool detect = FALSE;
277281
@@ -570,7 +574,7 @@ bool detect_monsters_mind(POSITION range)
570574 {
571575 MONSTER_IDX i;
572576 POSITION y, x;
573- bool flag = FALSE;
577+ bool flag = FALSE;
574578
575579 if (d_info[dungeon_type].flags1 & DF1_DARKNESS) range /= 3;
576580
Show on old repository browser