From: nothere Date: Wed, 11 Aug 2004 14:49:33 +0000 (+0000) Subject: 生い立ち設定ファイル読み込みで, 読み込みに成功しても有効な"H:"行 X-Git-Tag: v2.1.2~360 X-Git-Url: http://git.osdn.net/view?p=hengband%2Fhengband.git;a=commitdiff_plain;h=41888eda6d6243a1b031db7171eddd969c688188 生い立ち設定ファイル読み込みで, 読み込みに成功しても有効な"H:"行 が1行もない場合は現在の生い立ちを消去しないように修正. --- diff --git a/src/birth.c b/src/birth.c index 0826da77d..3f7b56f91 100644 --- a/src/birth.c +++ b/src/birth.c @@ -5291,6 +5291,20 @@ static bool do_cmd_histpref(void) return FALSE; } + else if (!histpref_buf[0]) + { +#ifdef JP + msg_print("Í­¸ú¤ÊÀ¸¤¤Î©¤ÁÀßÄê¤Ï¤³¤Î¥Õ¥¡¥¤¥ë¤Ë¤¢¤ê¤Þ¤»¤ó¡£"); +#else + msg_print("There does not exist valid background history preference."); +#endif + msg_print(NULL); + + /* Kill the buffer */ + histpref_buf = NULL; + + return FALSE; + } /* Clear the previous history strings */ for (i = 0; i < 4; i++) p_ptr->history[i][0] = '\0';