From: mogami Date: Tue, 18 Jun 2002 15:45:18 +0000 (+0000) Subject: タク、、ホゥ、チ・ィ・ヌ・」・ソ、ヌ。「・ミ・テ・ッ・ケ・レ。シ・ケ・ュ。シ、ャエチサ妺ウ。シ・ノ、ネ'\0'、ケ・ミ・ース、タオ。」 X-Git-Tag: v2.1.2~2023 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3d23767607a8f7055ced4ccada7df9c69d355678;p=hengband%2Fhengband.git タク、、ホゥ、チ・ィ・ヌ・」・ソ、ヌ。「・ミ・テ・ッ・ケ・レ。シ・ケ・ュ。シ、ャエチサ妺ウ。シ・ノ、ネ'\0'、ケ・ミ・ース、タオ。」 --- diff --git a/src/birth.c b/src/birth.c index c25049ef2..9aa208723 100644 --- a/src/birth.c +++ b/src/birth.c @@ -5184,15 +5184,28 @@ static void edit_history(void) if (iskanji2(p_ptr->history[y], x)) x++; #endif x++; - if (x > 58) x = 0; + if (x > 58) + { + x = 0; + if (y < 3) y++; + } } else if (c == '4') { x--; + if (x < 0) + { + if (y) + { + y--; + x = 58; + } + else x = 0; + } + #ifdef JP if ((x > 0) && (iskanji2(p_ptr->history[y], x-1))) x--; #endif - if (x < 0) x = 58; } else if (c == '\r') { @@ -5210,15 +5223,24 @@ static void edit_history(void) else if (c == '\010') { x--; + if (x < 0) + { + if (y) + { + y--; + x = 58; + } + else x = 0; + } + p_ptr->history[y][x] = ' '; #ifdef JP - if ((x > 0) && (iskanji2(p_ptr->history[y], x-1))) + if ((x > 0) && (iskanji2(p_ptr->history[y], x - 1))) { x--; p_ptr->history[y][x] = ' '; } #endif - if (x < 0) x = 58; } #ifdef JP else if (iskanji(c) || isprint(c))