Skip to content

Commit 1de3738

Browse files
committed
For UMAPINFO, if any episode title patches are missing, fall back on text name
1 parent 7f22437 commit 1de3738

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

common/g_umapinfo.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,14 @@ void ParseUMapInfoLump(int lump, const char* lumpname)
392392
{
393393
ParseStandardUmapInfoProperty(os, &info);
394394
}
395+
// if any episode title patches are missing, fall back on text name
396+
bool missingeppatch = false;
397+
for (int i = 0; i < MAX_EPISODES; i++) {
398+
missingeppatch = missingeppatch || EpisodeInfos[i].pic_name.empty();
399+
}
400+
for (int i = 0; i < MAX_EPISODES; i++) {
401+
EpisodeInfos[i].fulltext = missingeppatch;
402+
}
395403

396404
// Set default level progression here to simplify the checks elsewhere.
397405
// Doing this lets us skip all normal code for this if nothing has been defined.

0 commit comments

Comments
 (0)