mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
Do not build pseudo-buildings explicitly with events
This commit is contained in:
@ -2104,7 +2104,6 @@ std::set<BuildingID> CMapLoaderH3M::convertBuildings(const std::set<BuildingID>
|
|||||||
{
|
{
|
||||||
//village hall is always present
|
//village hall is always present
|
||||||
ret.insert(BuildingID::VILLAGE_HALL);
|
ret.insert(BuildingID::VILLAGE_HALL);
|
||||||
}
|
|
||||||
|
|
||||||
if(ret.find(BuildingID::CITY_HALL) != ret.end())
|
if(ret.find(BuildingID::CITY_HALL) != ret.end())
|
||||||
{
|
{
|
||||||
@ -2118,6 +2117,7 @@ std::set<BuildingID> CMapLoaderH3M::convertBuildings(const std::set<BuildingID>
|
|||||||
{
|
{
|
||||||
ret.insert(BuildingID::EXTRA_CAPITOL);
|
ret.insert(BuildingID::EXTRA_CAPITOL);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -3009,7 +3009,7 @@ bool CGameHandler::buildStructure(ObjectInstanceID tid, BuildingID requestedID,
|
|||||||
if (!t)
|
if (!t)
|
||||||
COMPLAIN_RETF("No such town (ID=%s)!", tid);
|
COMPLAIN_RETF("No such town (ID=%s)!", tid);
|
||||||
if (!t->town->buildings.count(requestedID))
|
if (!t->town->buildings.count(requestedID))
|
||||||
COMPLAIN_RETF("Town of faction %s does not have info about building ID=%s!", t->town->faction->name % tid);
|
COMPLAIN_RETF("Town of faction %s does not have info about building ID=%s!", t->town->faction->name % requestedID);
|
||||||
if (t->hasBuilt(requestedID))
|
if (t->hasBuilt(requestedID))
|
||||||
COMPLAIN_RETF("Building %s is already built in %s", t->town->buildings.at(requestedID)->Name() % t->name);
|
COMPLAIN_RETF("Building %s is already built in %s", t->town->buildings.at(requestedID)->Name() % t->name);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user