Skip to content

Commit

Permalink
Fix teleporter point clicking only working in 0,0
Browse files Browse the repository at this point in the history
  • Loading branch information
NyakoFox committed Nov 7, 2024
1 parent 394aee8 commit 4e89968
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions desktop_version/src/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4e89968

Please sign in to comment.