mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 09:39: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:
parent
9e2d6e921c
commit
4922fa4599
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue