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

Implement curved paths for all road node objects

This commit is contained in:
Tomasz Zieliński
2024-11-22 09:28:37 +01:00
parent 9277c5f4e7
commit f95bb58433
8 changed files with 45 additions and 31 deletions

View File

@@ -121,6 +121,11 @@ ThreadSafeProxy<const rmg::Area> Zone::areaUsed() const
return ThreadSafeProxy<const rmg::Area>(dAreaUsed, areaMutex);
}
rmg::Area Zone::areaForRoads() const
{
return areaPossible() + freePaths();
}
void Zone::clearTiles()
{
Lock lock(areaMutex);