Fix can't use Q/E as hotkeys when hacks disabled (Thanks Goodly)

This commit is contained in:
UnknownShadow200 2024-07-18 19:41:55 +10:00
parent f06796195c
commit 0eddcd119e

View File

@ -966,13 +966,15 @@ static void LocalPlayer_ReleaseSpeed(int key, struct InputDevice* device) {
static cc_bool LocalPlayer_TriggerFlyUp(int key, struct InputDevice* device) {
LocalPlayer_Get(device->index)->Hacks.FlyingUp = true;
return true;
struct HacksComp* hacks = &LocalPlayer_Get(device->index)->Hacks;
hacks->FlyingUp = true;
return hacks->CanFly && hacks->Enabled;
}
static cc_bool LocalPlayer_TriggerFlyDown(int key, struct InputDevice* device) {
LocalPlayer_Get(device->index)->Hacks.FlyingDown = true;
return true;
struct HacksComp* hacks = &LocalPlayer_Get(device->index)->Hacks;
hacks->FlyingDown = true;
return hacks->CanFly && hacks->Enabled;
}
static void LocalPlayer_ReleaseFlyUp(int key, struct InputDevice* device) {