mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
reverted changes back
This commit is contained in:
parent
305ce5b53d
commit
6da79d01d7
@ -478,7 +478,7 @@ std::vector<CTypeList::TypeInfoPtr> CTypeList::castSequence(TypeInfoPtr from, Ty
|
||||
std::map<TypeInfoPtr, TypeInfoPtr> previous;
|
||||
std::queue<TypeInfoPtr> q;
|
||||
q.push(to);
|
||||
while(!q.empty())
|
||||
while(q.size())
|
||||
{
|
||||
auto typeNode = q.front();
|
||||
q.pop();
|
||||
|
@ -430,7 +430,7 @@ void CRmgTemplateZone::fractalize(CMapGenerator* gen)
|
||||
}
|
||||
assert (clearedTiles.size()); //this should come from zone connections
|
||||
|
||||
while (!possibleTiles.empty())
|
||||
while (possibleTiles.size())
|
||||
{
|
||||
//link tiles in random order
|
||||
std::vector<int3> tilesToMakePath(possibleTiles.begin(), possibleTiles.end());
|
||||
@ -811,7 +811,7 @@ bool CRmgTemplateZone::createTreasurePile (CMapGenerator* gen, int3 &pos, float
|
||||
}
|
||||
}
|
||||
|
||||
if (!treasures.empty())
|
||||
if (!treasures.size())
|
||||
{
|
||||
//find object closest to zone center, then connect it to the middle of the zone
|
||||
int3 closestFreeTile (-1,-1,-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user