Skip to content

Commit 20a0fbe

Browse files
committed
Fix teleporter point clicking only working in 0,0
1 parent 9cf2eb2 commit 20a0fbe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

desktop_version/src/Editor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3294,8 +3294,7 @@ void check_if_dragging(void)
32943294
for (size_t i = 0; i < customentities.size(); i++)
32953295
{
32963296
// If it's not in the current room, continue.
3297-
if (customentities[i].x < ed.levx * 40 || customentities[i].x >= (ed.levx + 1) * 40 ||
3298-
customentities[i].y < ed.levy * 30 || customentities[i].y >= (ed.levy + 1) * 30)
3297+
if (customentities[i].rx != ed.levx || customentities[i].ry != ed.levy)
32993298
{
33003299
continue;
33013300
}

0 commit comments

Comments
 (0)