mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user