* @param x 対象となるマスのX座標
* @return なし
*/
-static void discover_hidden_things(int y, int x)
+static void discover_hidden_things(POSITION y, POSITION x)
{
- s16b this_o_idx, next_o_idx = 0;
-
+ OBJECT_IDX this_o_idx, next_o_idx = 0;
cave_type *c_ptr;
/* Access the grid */
*/
void search(void)
{
- int i, chance;
+ DIRECTION i;
+ PERCENTAGE chance;
/* Start with base search ability */
chance = p_ptr->skill_srh;
/* Hack -- do not start silly run */
if (see_wall(dir, p_ptr->y, p_ptr->x))
{
+ sound(SOUND_HITWALL);
+
/* Message */
msg_print(_("その方向には走れません。", "You cannot run in that direction."));