- Blood: Revise 6018213c71 and use the proper volume flag VF_HIDEFROMSP to hide multiplayer episodes from the menu.

This commit is contained in:
Mitchell Richters 2021-07-11 22:30:59 +10:00
parent 5441272bec
commit 5af06923d8

View file

@ -166,14 +166,13 @@ void levelLoadDefaults(void)
sprintf(buffer, "Episode%d", i); sprintf(buffer, "Episode%d", i);
if (!BloodINI->SectionExists(buffer)) if (!BloodINI->SectionExists(buffer))
break; break;
if (BloodINI->GetKeyInt(buffer, "BloodBathOnly", 0))
continue;
auto cluster = MustFindCluster(i); auto cluster = MustFindCluster(i);
auto volume = MustFindVolume(i); auto volume = MustFindVolume(i);
CutsceneDef &csB = cluster->outro; CutsceneDef &csB = cluster->outro;
auto ep_str = BloodINI->GetKeyString(buffer, "Title", buffer); auto ep_str = BloodINI->GetKeyString(buffer, "Title", buffer);
cluster->name = volume->name = ep_str; cluster->name = volume->name = ep_str;
if (i > 1) volume->flags |= VF_SHAREWARELOCK; if (i > 1) volume->flags |= VF_SHAREWARELOCK;
if (BloodINI->GetKeyInt(buffer, "BloodBathOnly", 0)) volume->flags |= VF_HIDEFROMSP;
csB.video = cleanPath(BloodINI->GetKeyString(buffer, "CutSceneB", "")); csB.video = cleanPath(BloodINI->GetKeyString(buffer, "CutSceneB", ""));
int soundint = BloodINI->GetKeyInt(buffer, "CutWavB", -1); int soundint = BloodINI->GetKeyInt(buffer, "CutWavB", -1);