1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

lib/rmg/CRmgTemplateZone.cpp: Remove a variable that was introduced in 2016 but never used

This commit is contained in:
Johannes 'josch' Schauer
2018-04-19 15:07:21 +02:00
parent 56fefca806
commit 95bec98936

View File

@@ -597,7 +597,6 @@ bool CRmgTemplateZone::createRoad(const int3& src, const int3& dst)
if (distance < bestDistanceSoFar)
{
auto tile = &gen->map->getTile(pos);
auto obj = tile->topVisitableObj();
bool canMoveBetween = gen->map->canMoveBetween(currentNode, pos);
if ((gen->isFree(pos) && gen->isFree(currentNode)) //empty path