char *text_format = (info_mode == INFO_MODE_STORY ? "%s" :
use_global_screens ? "for %s" : "for \"%s\"");
int text_format_len = strlen(text_format) - strlen("%s");
- int max_text_len = SXSIZE / getFontWidth(FONT_TITLE_2);
+ int text_font = (info_mode == INFO_MODE_STORY ? FONT_TITLE_STORY : FONT_TITLE_2);
+ int max_text_len = SXSIZE / getFontWidth(text_font);
int max_name_len = max_text_len - text_format_len;
char name_cut[max_name_len];
char *name_full = (info_mode == INFO_MODE_STORY ? level.name_native :