1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Unused variable

This commit is contained in:
Tomasz Zieliński 2024-05-10 15:56:49 +02:00
parent 7cb17afe7a
commit 21bb61fc4d

View File

@ -103,7 +103,7 @@ bool RoadPlacer::createRoad(const int3 & dst)
auto res = path.search(dst, true, simpleRoutig);
if(!res.valid())
{
auto desperateRoutig = [this, &border, &VISITABLE_PENALTY](const int3& src, const int3& dst) -> float
auto desperateRoutig = [this, &VISITABLE_PENALTY](const int3& src, const int3& dst) -> float
{
//Do not allow connections straight up through object not visitable from top
if(std::abs((src - dst).y) == 1)