瀏覽代碼

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

Johannes 'josch' Schauer 7 年之前
父節點
當前提交
95bec98936
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      lib/rmg/CRmgTemplateZone.cpp

+ 0 - 1
lib/rmg/CRmgTemplateZone.cpp

@@ -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