OSDN Git Service

[implement] #37674 (2.2.1.5) REFLECT効果音を新規定義。HIT_WALL効果音を走る時にも指定。HIT_WALLに魔王魂の効果音指定を追...
[hengband/hengband.git] / src / cmd1.c
index c0852d9..ee3358e 100644 (file)
@@ -567,10 +567,9 @@ s16b tot_dam_aux(object_type *o_ptr, int tdam, monster_type *m_ptr, BIT_FLAGS mo
  * @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 */
@@ -640,7 +639,8 @@ static void discover_hidden_things(int y, int x)
  */
 void search(void)
 {
-       int i, chance;
+       DIRECTION i;
+       PERCENTAGE chance;
 
        /* Start with base search ability */
        chance = p_ptr->skill_srh;
@@ -4117,6 +4117,8 @@ void run_step(int dir)
                /* 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."));