OSDN Git Service

[Refactor] #37353 型の置換(C_MAKE)。 / Type replacement(C_MAKE).
[hengband/hengband.git] / src / rooms-city.c
index df6ff39..a55ae56 100644 (file)
 */\r
 static bool precalc_ugarcade(int town_hgt, int town_wid, int n)\r
 {\r
-       int i, y, x, center_y, center_x, tmp, attempt = 10000;\r
-       int max_bldg_hgt = 3 * town_hgt / MAX_TOWN_HGT;\r
-       int max_bldg_wid = 5 * town_wid / MAX_TOWN_WID;\r
+       POSITION i, y, x, center_y, center_x;\r
+       int tmp, attempt = 10000;\r
+       POSITION max_bldg_hgt = 3 * town_hgt / MAX_TOWN_HGT;\r
+       POSITION max_bldg_wid = 5 * town_wid / MAX_TOWN_WID;\r
        ugbldg_type *cur_ugbldg;\r
        bool **ugarcade_used, abort;\r
 \r
@@ -97,10 +98,11 @@ static bool precalc_ugarcade(int town_hgt, int town_wid, int n)
 * @note\r
 * Note: ltcy and ltcx indicate "left top corner".\r
 */\r
-static void build_stores(int ltcy, int ltcx, int stores[], int n)\r
+static void build_stores(POSITION ltcy, POSITION ltcx, int stores[], int n)\r
 {\r
-       int i, y, x;\r
-       IDX j;\r
+       int i;\r
+       POSITION y, x;\r
+       FEAT_IDX j;\r
        ugbldg_type *cur_ugbldg;\r
 \r
        for (i = 0; i < n; i++)\r