Skip to content

Commit

Permalink
Requested corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
JNechaevsky committed Apr 24, 2024
1 parent c4560ee commit d81831a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/heretic/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ vertex_t KeyPoints[NUM_KEY_TYPES];

const char *LevelNames[] = {
// EPISODE 1 - THE CITY OF THE DAMNED
"e1m1: a small [\\]^_`{|}~ text z" /*"E1M1: THE DOCKS"*/,
"E1M1: THE DOCKS",
"E1M2: THE DUNGEONS",
"E1M3: THE GATEHOUSE",
"E1M4: THE GUARD TOWER",
Expand Down
10 changes: 6 additions & 4 deletions src/heretic/mn_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static Menu_t MainMenu = {
};

static MenuItem_t EpisodeItems[] = {
{ITT_EFUNC, "a small [\\]^_`{|}~ text z" /*"CITY OF THE DAMNED"*/, SCEpisode, 1, MENU_NONE},
{ITT_EFUNC, "CITY OF THE DAMNED", SCEpisode, 1, MENU_NONE},
{ITT_EFUNC, "HELL'S MAW", SCEpisode, 2, MENU_NONE},
{ITT_EFUNC, "THE DOME OF D'SPARIL", SCEpisode, 3, MENU_NONE},
{ITT_EFUNC, "THE OSSUARY", SCEpisode, 4, MENU_NONE},
Expand Down Expand Up @@ -612,14 +612,16 @@ static void InitFonts(void)
FontBBaseLump = W_GetNumForName(DEH_String("FONTB_S")) + 1;
}

// [crispy] Check if printable character is existing in FONTA/FONTB sets.
// [crispy] Check if printable character is existing in FONTA/FONTB sets
// and do a replacement or case correction if needed.

enum {
big_font, small_font
} fonttype_t;
} fontsize_t;

static const char MN_CheckValidChar (char ascii_index, int have_cursor)
{
if ((ascii_index >= '[' + have_cursor && ascii_index <= '`') || ascii_index >= '{')
if ((ascii_index > 'Z' + have_cursor && ascii_index < 'a') || ascii_index > 'z')
{
// Replace "\]^_`" and "{|}~" with spaces,
// allow "[" (cursor symbol) only in small fonts.
Expand Down

0 comments on commit d81831a

Please sign in to comment.