1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Clean the comments

This commit is contained in:
Tomasz Zieliński
2024-03-27 06:24:14 +01:00
parent d8c93cb222
commit 37f6993402
5 changed files with 5 additions and 22 deletions

View File

@@ -117,7 +117,7 @@ ThreadSafeProxy<const rmg::Area> Zone::areaUsed() const
void Zone::clearTiles()
{
//Lock lock(mx);
Lock lock(areaMutex);
dArea.clear();
dAreaPossible.clear();
dAreaFree.clear();
@@ -126,7 +126,6 @@ void Zone::clearTiles()
void Zone::initFreeTiles()
{
rmg::Tileset possibleTiles;
//Lock lock(mx);
vstd::copy_if(dArea.getTiles(), vstd::set_inserter(possibleTiles), [this](const int3 &tile) -> bool
{
return map.isPossible(tile);
@@ -239,8 +238,6 @@ TModificators Zone::getModificators()
void Zone::connectPath(const rmg::Path & path)
///connect current tile to any other free tile within zone
{
//Lock lock(areaMutex);
areaPossible()->subtract(path.getPathArea());
freePaths()->unite(path.getPathArea());
for(const auto & t : path.getPathArea().getTilesVector())