From 6385effe25c55baaf68d58d61f7882a4fe1a9cb9 Mon Sep 17 00:00:00 2001 From: NyakoFox Date: Thu, 3 Oct 2024 21:49:00 -0300 Subject: [PATCH] Don't shadow teleporters --- desktop_version/src/Map.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/desktop_version/src/Map.cpp b/desktop_version/src/Map.cpp index 7a34f078a8..6774b05964 100644 --- a/desktop_version/src/Map.cpp +++ b/desktop_version/src/Map.cpp @@ -428,7 +428,7 @@ void mapclass::initcustommapdata(void) shinytrinkets.clear(); teleporters.clear(); - std::vector teleporters; + std::vector customteleporters; for (size_t i = 0; i < customentities.size(); i++) { @@ -443,15 +443,15 @@ void mapclass::initcustommapdata(void) SDL_Point temp; temp.x = ent.rx; temp.y = ent.ry; - teleporters.push_back(temp); + customteleporters.push_back(temp); } } - std::sort(teleporters.begin(), teleporters.end(), compareTeleporterPoints); + std::sort(customteleporters.begin(), customteleporters.end(), compareTeleporterPoints); - for (size_t i = 0; i < teleporters.size(); i++) + for (size_t i = 0; i < customteleporters.size(); i++) { - setteleporter(teleporters[i].x, teleporters[i].y); + setteleporter(customteleporters[i].x, customteleporters[i].y); } }