1
0
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:
KroArtem 2014-11-20 15:33:22 +03:00
parent 305ce5b53d
commit 6da79d01d7
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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);