From 4e899682f893dd4295f5e186b657c48a168edeb5 Mon Sep 17 00:00:00 2001 From: NyakoFox Date: Thu, 7 Nov 2024 15:11:59 -0400 Subject: [PATCH] Fix teleporter point clicking only working in 0,0 --- desktop_version/src/Editor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desktop_version/src/Editor.cpp b/desktop_version/src/Editor.cpp index 34625f9b..a953c3fe 100644 --- a/desktop_version/src/Editor.cpp +++ b/desktop_version/src/Editor.cpp @@ -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; }