• R/O
  • HTTP
  • SSH
  • HTTPS

hengbandosx: Commit


Commit MetaInfo

Revisão9ff0decd3369f4e81c34eaad15bcdeda2fa7cf0c (tree)
Hora2020-03-30 02:37:54
AutorEric Branlund <ebranlund@fast...>
CommiterEric Branlund

Mensagem de Log

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.

Mudança Sumário

Diff

--- a/src/birth.c
+++ b/src/birth.c
@@ -703,8 +703,6 @@ static byte choose_realm(player_type *creature_ptr, s32b choices, int *count)
703703 if (cs != os)
704704 {
705705 c_put_str(TERM_WHITE, cur, 12 + (os / 5), 2 + 15 * (os % 5));
706- put_str(" ", 3, 40);
707- put_str(" ", 4, 40);
708706
709707 if (cs == n)
710708 {
@@ -714,14 +712,9 @@ static byte choose_realm(player_type *creature_ptr, s32b choices, int *count)
714712 {
715713 sprintf(cur, "%c%c %s", sym[cs], p2, realm_names[picks[cs]]);
716714 sprintf(buf, "%s", realm_names[picks[cs]]);
717-#ifdef JP
718715 c_put_str(TERM_L_BLUE, buf, 3, 40);
719- put_str("の特徴", 3, 40 + strlen(buf));
720-#else
721- c_put_str(TERM_L_BLUE, realm_names[picks[cs]], 3, 40);
722- put_str(": Characteristic", 3, 40 + strlen(realm_names[picks[cs]]));
723-#endif
724- put_str(realm_subinfo[technic2magic(picks[cs]) - 1], 4, 40);
716+ prt(_("の特徴", ": Characteristic"), 3, 40 + strlen(buf));
717+ prt(realm_subinfo[technic2magic(picks[cs]) - 1], 4, 40);
725718 }
726719 c_put_str(TERM_YELLOW, cur, 12 + (cs / 5), 2 + 15 * (cs % 5));
727720 os = cs;
Show on old repository browser