OSDN Git Service

武器匠の武器比較時に "ふさわしくない" "乗馬中に向かない" といったメッ
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 6 Jun 2003 11:14:38 +0000 (11:14 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 6 Jun 2003 11:14:38 +0000 (11:14 +0000)
セージが出るバグを修正.

src/bldg.c

index 7bc55e5..a1a5f3b 100644 (file)
@@ -3275,6 +3275,7 @@ static bool compare_weapons(void)
        object_type *i_ptr;
        cptr q, s;
        int row = 2;
+       bool old_character_xtra = character_xtra;
 
        screen_save();
        /* Clear the screen */
@@ -3338,9 +3339,14 @@ s = "
        if (o1_ptr != i_ptr)
                object_copy(i_ptr, o1_ptr);
 
+       /* Hack -- prevent "icky" message */
+       character_xtra = TRUE;
+
        /* Get the new values */
        calc_bonuses();
 
+       character_xtra = old_character_xtra;
+
        /* List the new values */
        list_weapon(o1_ptr, row, 2);
        compare_weapon_aux1(o1_ptr, 2, row + 8);
@@ -3351,9 +3357,14 @@ s = "
        else
                object_copy(i_ptr, &orig_weapon);
 
+       /* Hack -- prevent "icky" message */
+       character_xtra = TRUE;
+
        /* Get the new values */
        calc_bonuses();
 
+       character_xtra = old_character_xtra;
+
        /* List the new values */
        list_weapon(o2_ptr, row, 40);
        compare_weapon_aux1(o2_ptr, 40, row + 8);