Skip to content

Commit 4e89968

Browse files
committed
Fix teleporter point clicking only working in 0,0
1 parent 394aee8 commit 4e89968

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

0 commit comments

Comments
 (0)