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

Fix teleporter point clicking only working in 0,0

This commit is contained in:
NyakoFox 2024-11-07 15:11:59 -04:00
parent 394aee8be6
commit 4e899682f8

View file

@ -3292,8 +3292,7 @@ void check_if_dragging(void)
for (size_t i = 0; i < customentities.size(); i++)
{
// If it's not in the current room, continue.
if (customentities[i].x < ed.levx * 40 || customentities[i].x >= (ed.levx + 1) * 40 ||
customentities[i].y < ed.levy * 30 || customentities[i].y >= (ed.levy + 1) * 30)
if (customentities[i].rx != ed.levx || customentities[i].ry != ed.levy)
{
continue;
}