mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Renamed LibClasses * VLC to GameLibrary * LIBRARY
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include "StartInfo.h"
|
||||
|
||||
#include "texts/CGeneralTextHandler.h"
|
||||
#include "VCMI_Lib.h"
|
||||
#include "GameLibrary.h"
|
||||
#include "entities/faction/CFaction.h"
|
||||
#include "entities/faction/CTownHandler.h"
|
||||
#include "entities/hero/CHeroHandler.h"
|
||||
@@ -33,7 +33,7 @@ FactionID PlayerSettings::getCastleValidated() const
|
||||
{
|
||||
if (!castle.isValid())
|
||||
return FactionID(0);
|
||||
if (castle.getNum() < VLC->townh->size() && castle.toEntity(VLC)->hasTown())
|
||||
if (castle.getNum() < LIBRARY->townh->size() && castle.toEntity(LIBRARY)->hasTown())
|
||||
return castle;
|
||||
|
||||
return FactionID(0);
|
||||
@@ -43,7 +43,7 @@ HeroTypeID PlayerSettings::getHeroValidated() const
|
||||
{
|
||||
if (!hero.isValid())
|
||||
return HeroTypeID(0);
|
||||
if (hero.getNum() < VLC->heroh->size())
|
||||
if (hero.getNum() < LIBRARY->heroh->size())
|
||||
return hero;
|
||||
|
||||
return HeroTypeID(0);
|
||||
@@ -87,7 +87,7 @@ std::string StartInfo::getCampaignName() const
|
||||
if(!campState->getNameTranslated().empty())
|
||||
return campState->getNameTranslated();
|
||||
else
|
||||
return VLC->generaltexth->allTexts[508];
|
||||
return LIBRARY->generaltexth->allTexts[508];
|
||||
}
|
||||
|
||||
bool StartInfo::isRestorationOfErathiaCampaign() const
|
||||
@@ -111,7 +111,7 @@ bool StartInfo::isRestorationOfErathiaCampaign() const
|
||||
void LobbyInfo::verifyStateBeforeStart(bool ignoreNoHuman) const
|
||||
{
|
||||
if(!mi || !mi->mapHeader)
|
||||
throw std::domain_error(VLC->generaltexth->translate("core.genrltxt.529"));
|
||||
throw std::domain_error(LIBRARY->generaltexth->translate("core.genrltxt.529"));
|
||||
|
||||
auto missingMods = CMapService::verifyMapHeaderMods(*mi->mapHeader);
|
||||
ModIncompatibility::ModList modList;
|
||||
@@ -128,12 +128,12 @@ void LobbyInfo::verifyStateBeforeStart(bool ignoreNoHuman) const
|
||||
break;
|
||||
|
||||
if(i == si->playerInfos.cend() && !ignoreNoHuman)
|
||||
throw std::domain_error(VLC->generaltexth->translate("core.genrltxt.530"));
|
||||
throw std::domain_error(LIBRARY->generaltexth->translate("core.genrltxt.530"));
|
||||
|
||||
if(si->mapGenOptions && si->mode == EStartMode::NEW_GAME)
|
||||
{
|
||||
if(!si->mapGenOptions->checkOptions())
|
||||
throw std::domain_error(VLC->generaltexth->translate("core.genrltxt.751"));
|
||||
throw std::domain_error(LIBRARY->generaltexth->translate("core.genrltxt.751"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user