1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +01:00

Don't shadow teleporters

This commit is contained in:
NyakoFox 2024-10-03 21:49:00 -03:00
parent 53619f191d
commit 394aee8be6

View file

@ -436,7 +436,7 @@ void mapclass::initcustommapdata(void)
shinytrinkets.clear();
teleporters.clear();
std::vector<SDL_Point> teleporters;
std::vector<SDL_Point> 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);
}
}