|
@@ -90,18 +90,22 @@ std::string StartInfo::getCampaignName() const
|
|
|
return VLC->generaltexth->allTexts[508];
|
|
|
}
|
|
|
|
|
|
-bool StartInfo::isSteadwickFallCampaignMission() const
|
|
|
+bool StartInfo::isRestorationOfErathiaCampaign() const
|
|
|
{
|
|
|
- if (!campState)
|
|
|
- return false;
|
|
|
+ constexpr std::array roeCampaigns = {
|
|
|
+ "DATA/GOOD1",
|
|
|
+ "DATA/EVIL1",
|
|
|
+ "DATA/GOOD2",
|
|
|
+ "DATA/NEUTRAL1",
|
|
|
+ "DATA/EVIL2",
|
|
|
+ "DATA/GOOD3",
|
|
|
+ "DATA/SECRET1",
|
|
|
+ };
|
|
|
|
|
|
- if (campState->getFilename() != "DATA/EVIL1")
|
|
|
- return false;
|
|
|
-
|
|
|
- if (campState->currentScenario() != CampaignScenarioID(2))
|
|
|
+ if (!campState)
|
|
|
return false;
|
|
|
|
|
|
- return true;
|
|
|
+ return vstd::contains(roeCampaigns, campState->getFilename());
|
|
|
}
|
|
|
|
|
|
void LobbyInfo::verifyStateBeforeStart(bool ignoreNoHuman) const
|