From: Eric Branlund Date: Sun, 29 Mar 2020 17:20:51 +0000 (-0700) Subject: In the English version, the period at the end of the Trump realm short description... X-Git-Tag: vmacos2.2.1-7e~7 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0bff6006e9cecf3a4bc1d374f266472176450c45;p=hengbandforosx%2Fhengbandosx.git In the English version, the period at the end of the Trump realm short description wasn't being cleared on the birth realm selection screen (an earlier change made it longer and it then exceeded the length of the string used for clearing). To fix that, use prt() to clear to the end of the line when displaying the selected realm and realm short description. Also share more code between the Japanese and English versions for that display. --- diff --git a/src/birth.c b/src/birth.c index 8de927820..17e300fda 100644 --- a/src/birth.c +++ b/src/birth.c @@ -668,8 +668,6 @@ static byte choose_realm(s32b choices, int *count) if (cs != os) { c_put_str(TERM_WHITE, cur, 12 + (os/5), 2 + 15 * (os%5)); - put_str(" ", 3, 40); - put_str(" ", 4, 40); if(cs == n) { @@ -679,14 +677,9 @@ static byte choose_realm(s32b choices, int *count) { sprintf(cur, "%c%c %s", sym[cs], p2, realm_names[picks[cs]]); sprintf(buf, "%s", realm_names[picks[cs]]); -#ifdef JP c_put_str(TERM_L_BLUE, buf, 3, 40); - put_str("の特徴", 3, 40+strlen(buf)); -#else - c_put_str(TERM_L_BLUE, realm_names[picks[cs]], 3, 40); - put_str(": Characteristic", 3, 40+strlen(realm_names[picks[cs]])); -#endif - put_str(realm_subinfo[technic2magic(picks[cs])-1], 4, 40); + prt(_("の特徴", ": Characteristic"), 3, 40+strlen(buf)); + prt(realm_subinfo[technic2magic(picks[cs])-1], 4, 40); } c_put_str(TERM_YELLOW, cur, 12 + (cs/5), 2 + 15 * (cs%5)); os = cs;