From 394aee8be6dbf1cad9d12445bed6b14d297dad81 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 3074f70a..871d1999 100644 --- a/desktop_version/src/Map.cpp +++ b/desktop_version/src/Map.cpp @@ -436,7 +436,7 @@ void mapclass::initcustommapdata(void) shinytrinkets.clear(); teleporters.clear(); - std::vector teleporters; + std::vector customteleporters; for (size_t i = 0; i < customentities.size(); i++) { @@ -451,15 +451,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); } }