Skip to content

Commit

Permalink
Add missing unknown key skips
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Aug 3, 2023
1 parent 8b155e7 commit 3ac1f63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions prboom2/src/dsda/mapinfo/doom/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ static void dsda_ParseDoomMapInfoSkill(Scanner &scanner) {
else if (!stricmp(scanner.string, "EasyBossBrain")) {
skill.flags |= DSI_EASY_BOSS_BRAIN;
}
else {
dsda_SkipValue(scanner);
}
}

doom_mapinfo_skills.push_back(skill);
Expand Down Expand Up @@ -646,6 +649,9 @@ static void dsda_ParseDoomMapInfoCluster(Scanner &scanner) {
else if (!stricmp(scanner.string, "Pic")) {
SCAN_STRING(cluster.pic);
}
else {
dsda_SkipValue(scanner);
}
}

for (auto &old_cluster : doom_mapinfo_clusters)
Expand Down Expand Up @@ -688,6 +694,9 @@ static void dsda_ParseDoomMapInfoEpisode(Scanner &scanner) {
scanner.MustGetToken(TK_StringConst);
episode.key = scanner.string[0];
}
else {
dsda_SkipValue(scanner);
}
}

doom_mapinfo_episodes.push_back(episode);
Expand Down

0 comments on commit 3ac1f63

Please sign in to comment.