From 38cdc5c96c7a9fb134ee8e6a9bb2cce2d077f24e Mon Sep 17 00:00:00 2001 From: Deskull Date: Mon, 19 Nov 2018 22:37:33 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=20=E5=9E=8B=E3=81=AE?= =?utf8?q?=E7=BD=AE=E6=8F=9B=E3=80=82=20/=20Type=20replacement.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cave.c | 7 ++++--- src/rooms-city.h | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/cave.c b/src/cave.c index 89a1d8117..4d9aeb07a 100644 --- a/src/cave.c +++ b/src/cave.c @@ -4228,8 +4228,8 @@ static int scent_when = 0; */ void update_smell(void) { - int i, j; - int y, x; + POSITION i, j; + POSITION y, x; /* Create a table that controls the spread of scent */ const int scent_adjust[5][5] = @@ -4296,7 +4296,8 @@ void update_smell(void) */ void map_area(POSITION range) { - int i, x, y; + int i; + POSITION x, y; cave_type *c_ptr; s16b feat; feature_type *f_ptr; diff --git a/src/rooms-city.h b/src/rooms-city.h index c5853aea6..e4acf7004 100644 --- a/src/rooms-city.h +++ b/src/rooms-city.h @@ -9,8 +9,8 @@ /* Struct for build underground buildings */ typedef struct { - int y0, x0; /* North-west corner (relative) */ - int y1, x1; /* South-east corner (relative) */ + POSITION y0, x0; /* North-west corner (relative) */ + POSITION y1, x1; /* South-east corner (relative) */ } ugbldg_type; -- 2.11.0