From: deskull Date: Wed, 20 Nov 2019 03:35:01 +0000 (+0900) Subject: [Refactor] #38997 update_smell() に player_type * 引数を追加. / Add player_type * argument... X-Git-Tag: vmacos3.0.0-alpha52~2493 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=83f292dea60ccf8acd4828a8fd08381e35d05654;p=hengbandforosx%2Fhengbandosx.git [Refactor] #38997 update_smell() に player_type * 引数を追加. / Add player_type * argument to update_smell(). --- diff --git a/src/core.c b/src/core.c index 47b64f587..32c2c64b5 100644 --- a/src/core.c +++ b/src/core.c @@ -4882,7 +4882,7 @@ static void process_player(player_type *creature_ptr) } /* Update scent trail */ - update_smell(creature_ptr->current_floor_ptr); + update_smell(creature_ptr->current_floor_ptr, creature_ptr); } /*! diff --git a/src/floor.h b/src/floor.h index 4d6ce792b..524f70942 100644 --- a/src/floor.h +++ b/src/floor.h @@ -372,7 +372,7 @@ extern saved_floor_type saved_floors[MAX_SAVED_FLOORS]; #define GRID_X(G) \ ((int)((G) % 256U)) -extern void update_smell(floor_type *floor_ptr); +extern void update_smell(floor_type *floor_ptr, player_type *subject_ptr); extern void place_secret_door(floor_type *floor_ptr, POSITION y, POSITION x, int type); extern void place_locked_door(floor_type *floor_ptr, POSITION y, POSITION x);