• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisiond86816f35c79956c876148b178b2f84fe673be82 (tree)
Time2019-02-18 22:22:40
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cmd2.c
+++ b/src/cmd2.c
@@ -584,7 +584,9 @@ static bool do_cmd_open_chest(POSITION y, POSITION x, OBJECT_IDX o_idx)
584584 */
585585 static int count_dt(POSITION *y, POSITION *x, bool (*test)(IDX feat), bool under)
586586 {
587- int d, count, xx, yy;
587+ DIRECTION d;
588+ int count;
589+ POSITION xx, yy;
588590
589591 /* Count how many matches */
590592 count = 0;
@@ -639,9 +641,9 @@ static int count_dt(POSITION *y, POSITION *x, bool (*test)(IDX feat), bool under
639641 */
640642 static int count_chests(POSITION *y, POSITION *x, bool trapped)
641643 {
642- int d, count;
644+ DIRECTION d;
645+ int count;
643646 OBJECT_IDX o_idx;
644-
645647 object_type *o_ptr;
646648
647649 /* Count how many matches */
@@ -690,7 +692,7 @@ static int count_chests(POSITION *y, POSITION *x, bool trapped)
690692 static DIRECTION coords_to_dir(POSITION y, POSITION x)
691693 {
692694 int d[3][3] = { {7, 4, 1}, {8, 5, 2}, {9, 6, 3} };
693- int dy, dx;
695+ DIRECTION dy, dx;
694696
695697 dy = y - p_ptr->y;
696698 dx = x - p_ptr->x;
@@ -1205,13 +1207,12 @@ static bool do_cmd_tunnel_aux(POSITION y, POSITION x)
12051207 */
12061208 void do_cmd_tunnel(void)
12071209 {
1208- int y, x, dir;
1209-
1210- grid_type *g_ptr;
1210+ POSITION y, x;
1211+ DIRECTION dir;
1212+ grid_type *g_ptr;
12111213 FEAT_IDX feat;
12121214
1213- bool more = FALSE;
1214-
1215+ bool more = FALSE;
12151216
12161217 if (p_ptr->special_defense & KATA_MUSOU)
12171218 {
--- a/src/racial.c
+++ b/src/racial.c
@@ -283,7 +283,7 @@ static PERCENTAGE racial_chance(power_desc_type *pd_ptr)
283283 }
284284
285285
286-static int racial_cost;
286+static int racial_cost;
287287
288288 /*!
289289 * @brief レイシャル・パワーの発動の判定処理
Show on old repository browser