mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Don't shadow teleporters
This commit is contained in:
parent
53619f191d
commit
394aee8be6
1 changed files with 5 additions and 5 deletions
|
@ -436,7 +436,7 @@ void mapclass::initcustommapdata(void)
|
||||||
shinytrinkets.clear();
|
shinytrinkets.clear();
|
||||||
teleporters.clear();
|
teleporters.clear();
|
||||||
|
|
||||||
std::vector<SDL_Point> teleporters;
|
std::vector<SDL_Point> customteleporters;
|
||||||
|
|
||||||
for (size_t i = 0; i < customentities.size(); i++)
|
for (size_t i = 0; i < customentities.size(); i++)
|
||||||
{
|
{
|
||||||
|
@ -451,15 +451,15 @@ void mapclass::initcustommapdata(void)
|
||||||
SDL_Point temp;
|
SDL_Point temp;
|
||||||
temp.x = ent.rx;
|
temp.x = ent.rx;
|
||||||
temp.y = ent.ry;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue