OSDN Git Service

#37287 #37353 (2.2.0.89) コメント整理。 / Fix comments.
[hengband/hengband.git] / src / snipe.c
index 1fa3664..12b07af 100644 (file)
@@ -22,7 +22,7 @@ struct snipe_power
 };
 
 /*! スナイパー技能の解説メッセージ */
-static const char *snipe_tips[MAX_SNIPE_POWERS] =
+static cptr const snipe_tips[MAX_SNIPE_POWERS] =
 {
 #ifdef JP
        "精神を集中する。射撃の威力、精度が上がり、高度な射撃術が使用できるようになる。",
@@ -62,7 +62,7 @@ static const char *snipe_tips[MAX_SNIPE_POWERS] =
 };
 
 /*! スナイパー技能テーブル */
-snipe_power snipe_powers[MAX_SNIPE_POWERS] =
+static snipe_power const snipe_powers[MAX_SNIPE_POWERS] =
 {
        /* Level gained,  cost,  name */
 #ifdef JP
@@ -220,9 +220,9 @@ void display_snipe_list(void)
  * when you run it. It's probably easy to fix but I haven't tried,\n
  * sorry.\n
  */
-static int get_snipe_power(int *sn, bool only_browse)
+static int get_snipe_power(COMMAND_CODE *sn, bool only_browse)
 {
-       int             i;
+       COMMAND_CODE i;
        int             num = 0;
        int             y = 1;
        int             x = 20;
@@ -533,7 +533,7 @@ static bool cast_sniper_spell(int spell)
        {
        case 0: /* Concentration */
                if (!snipe_concentrate()) return (FALSE);
-               energy_use = 100;
+               p_ptr->energy_use = 100;
                return (TRUE);
        case 1: snipe_type = SP_LITE; break;
        case 2: snipe_type = SP_AWAY; break;
@@ -567,7 +567,7 @@ static bool cast_sniper_spell(int spell)
  */
 void do_cmd_snipe(void)
 {
-       int             n = 0;
+       COMMAND_CODE n = 0;
        bool            cast;
 
 
@@ -603,7 +603,7 @@ void do_cmd_snipe(void)
        if (!cast) return;
 #if 0
        /* Take a turn */
-       energy_use = 100;
+       p_ptr->energy_use = 100;
 #endif
        /* Redraw mana */
        p_ptr->redraw |= (PR_HP | PR_MANA);
@@ -619,7 +619,7 @@ void do_cmd_snipe(void)
  */
 void do_cmd_snipe_browse(void)
 {
-       int n = 0;
+       COMMAND_CODE n = 0;
        int j, line;
        char temp[62 * 4];