1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

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

View file

@ -191,6 +191,11 @@ namespace level_debugger
void logic(void) void logic(void)
{ {
if (!active)
{
return;
}
if (INBOUNDS_VEC(held_entity, obj.entities)) if (INBOUNDS_VEC(held_entity, obj.entities))
{ {
int new_xp = key.mousex - grabber_offset_x; int new_xp = key.mousex - grabber_offset_x;