From 0bff6006e9cecf3a4bc1d374f266472176450c45 Mon Sep 17 00:00:00 2001 From: Eric Branlund Date: Sun, 29 Mar 2020 10:20:51 -0700 Subject: [PATCH] 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. --- src/birth.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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; -- 2.11.0