OSDN Git Service

*勝利*メッセージや*勝利*後の辞世の句の入力後にはその内容でいいかどう
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 12 Jul 2004 02:02:35 +0000 (02:02 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 12 Jul 2004 02:02:35 +0000 (02:02 +0000)
かの確認を行うように変更.

src/effects.c
src/files.c

index cc73618..599091a 100644 (file)
@@ -5354,11 +5354,21 @@ int take_hit(int damage_type, int damage, cptr hit_from, int monspell)
                                        get_rnd_line("death.txt", 0, death_message);
 #endif
                                }
+
+                               do
+                               {
 #ifdef JP
-                               while (!get_string(winning_seppuku ? "¼­À¤¤Î¶ç: " : "ÃÇËöËâ¤Î¶«¤Ó: ", death_message, 1024)) ;
+                                       while (!get_string(winning_seppuku ? "¼­À¤¤Î¶ç: " : "ÃÇËöËâ¤Î¶«¤Ó: ", death_message, 1024)) ;
 #else
-                               while (!get_string("Last word: ", death_message, 1024)) ;
+                                       while (!get_string("Last word: ", death_message, 1024)) ;
 #endif
+                               }
+#ifdef JP
+                               while (winning_seppuku && !get_check_strict("¤è¤í¤·¤¤¤Ç¤¹¤«¡©", CHECK_NO_HISTORY));
+#else
+                               while (winning_seppuku && !get_check_strict("Are you sure? ", CHECK_NO_HISTORY));
+#endif
+
                                if (death_message[0] == '\0')
                                {
 #ifdef JP
index dca6112..2a1e38d 100644 (file)
@@ -6113,10 +6113,18 @@ prt("
        {
                char buf[1024] = "";
 
+               do
+               {
+#ifdef JP
+                       while (!get_string("*¾¡Íø*¥á¥Ã¥»¡¼¥¸: ", buf, sizeof buf)) ;
+#else
+                       while (!get_string("*Winning* message: ", buf, sizeof buf)) ;
+#endif
+               }
 #ifdef JP
-               while (!get_string("*¾¡Íø*¥á¥Ã¥»¡¼¥¸: ", buf, sizeof buf)) ;
+               while (!get_check_strict("¤è¤í¤·¤¤¤Ç¤¹¤«¡©", CHECK_NO_HISTORY));
 #else
-               while (!get_string("*Winning* message: ", buf, sizeof buf)) ;
+               while (!get_check_strict("Are you sure? ", CHECK_NO_HISTORY));
 #endif
 
                if (buf[0])