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.
This commit is contained in:
Misa 2024-01-06 20:51:59 -08:00
parent 9e2d6e921c
commit 4922fa4599
1 changed files with 5 additions and 0 deletions

View File

@ -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;