Skip to content

Commit

Permalink
Use tolower for key fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Aug 3, 2023
1 parent 3ac1f63 commit fb99a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prboom2/src/dsda/mapinfo/doom/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ static void dsda_ParseDoomMapInfoSkill(Scanner &scanner) {
else if (!stricmp(scanner.string, "Key")) {
scanner.MustGetToken('=');
scanner.MustGetToken(TK_StringConst);
skill.key = scanner.string[0];
skill.key = tolower(scanner.string[0]);
}
else if (!stricmp(scanner.string, "MustConfirm")) {
if (scanner.CheckToken('=')) {
Expand Down Expand Up @@ -692,7 +692,7 @@ static void dsda_ParseDoomMapInfoEpisode(Scanner &scanner) {
else if (!stricmp(scanner.string, "Key")) {
scanner.MustGetToken('=');
scanner.MustGetToken(TK_StringConst);
episode.key = scanner.string[0];
episode.key = tolower(scanner.string[0]);
}
else {
dsda_SkipValue(scanner);
Expand Down

0 comments on commit fb99a9b

Please sign in to comment.