From 20176521eb183aa9c4f0efe1f9137f1fdaeb67ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zieli=C5=84ski?= Date: Wed, 1 May 2024 15:27:19 +0200 Subject: [PATCH] Actually revert this change, it's not better. --- lib/rmg/modificators/RoadPlacer.cpp | 2 +- lib/rmg/modificators/RoadPlacer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rmg/modificators/RoadPlacer.cpp b/lib/rmg/modificators/RoadPlacer.cpp index 68468f799..d03af26e9 100644 --- a/lib/rmg/modificators/RoadPlacer.cpp +++ b/lib/rmg/modificators/RoadPlacer.cpp @@ -175,7 +175,7 @@ void RoadPlacer::drawRoads(bool secondary) void RoadPlacer::addRoadNode(const int3& node) { RecursiveLock lock(externalAccessMutex); - roadNodes.push_back(node); + roadNodes.insert(node); } void RoadPlacer::connectRoads() diff --git a/lib/rmg/modificators/RoadPlacer.h b/lib/rmg/modificators/RoadPlacer.h index 652add222..ebc062281 100644 --- a/lib/rmg/modificators/RoadPlacer.h +++ b/lib/rmg/modificators/RoadPlacer.h @@ -37,7 +37,7 @@ protected: void drawRoads(bool secondary = false); //actually updates tiles protected: - std::vector roadNodes; //tiles to be connected with roads + rmg::Tileset roadNodes; //tiles to be connected with roads rmg::Area roads; //all tiles with roads rmg::Area areaRoads; rmg::Area isolated;