From 4922fa45994669cc74696b77e551a2f9ee55dc81 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 6 Jan 2024 20:51:59 -0800 Subject: [PATCH] Disable debugger logic when not active This fixes a bug where you could still drag an entity around with the debugger inactive if you were holding the entity while disabling the debugger with Y. Furthermore, you couldn't even drop the entity even if you wanted to. --- desktop_version/src/LevelDebugger.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop_version/src/LevelDebugger.cpp b/desktop_version/src/LevelDebugger.cpp index a3de76bb..9b29a8da 100644 --- a/desktop_version/src/LevelDebugger.cpp +++ b/desktop_version/src/LevelDebugger.cpp @@ -191,6 +191,11 @@ namespace level_debugger void logic(void) { + if (!active) + { + return; + } + if (INBOUNDS_VEC(held_entity, obj.entities)) { int new_xp = key.mousex - grabber_offset_x;