Fix teleporter point clicking only working in 0,0

This commit is contained in:
NyakoFox 2024-11-07 15:11:59 -04:00
parent 9cf2eb2224
commit 20a0fbed08

View file

@ -3294,8 +3294,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;
}