OSDN Git Service

再び修正。ESCを押すと叫びが "" になって、そのまま入力せずに死ぬと
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 14 Feb 2002 14:08:19 +0000 (14:08 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 14 Feb 2002 14:08:19 +0000 (14:08 +0000)
死亡のメッセージがなくなってしまっていたので、そのときは標準のメッセージ
で置き変える事にした。

src/effects.c

index a4a2e3f..9cef99d 100644 (file)
@@ -5079,7 +5079,14 @@ get_rnd_line("death_j.txt", 0, death_message);
 #else
                                while (!get_string("Last word: ", death_message, 1024)) ;
 #endif
-
+                               if (death_message[0] == '\0')
+                               {
+#ifdef JP
+                                       strcpy(death_message, format("¤¢¤Ê¤¿¤Ï%s¤Þ¤·¤¿¡£", android ? "²õ¤ì" : "»à¤Ë"));
+#else
+                                       strcpy(death_message, android ? "You are broken." : "You die.");
+#endif
+                               }
                                if (streq(died_from, "Seppuku"))
                                {
 #ifdef JP