mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 18:45:23 -04:00
Fix can't use Q/E as hotkeys when hacks disabled (Thanks Goodly)
This commit is contained in:
parent
f06796195c
commit
0eddcd119e
10
src/Entity.c
10
src/Entity.c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user