1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +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
No known key found for this signature in database
GPG Key ID: F2CBA5C78FBD83E1

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