mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 19:15:14 -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) {
|
static cc_bool LocalPlayer_TriggerFlyUp(int key, struct InputDevice* device) {
|
||||||
LocalPlayer_Get(device->index)->Hacks.FlyingUp = true;
|
struct HacksComp* hacks = &LocalPlayer_Get(device->index)->Hacks;
|
||||||
return true;
|
hacks->FlyingUp = true;
|
||||||
|
return hacks->CanFly && hacks->Enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
static cc_bool LocalPlayer_TriggerFlyDown(int key, struct InputDevice* device) {
|
static cc_bool LocalPlayer_TriggerFlyDown(int key, struct InputDevice* device) {
|
||||||
LocalPlayer_Get(device->index)->Hacks.FlyingDown = true;
|
struct HacksComp* hacks = &LocalPlayer_Get(device->index)->Hacks;
|
||||||
return true;
|
hacks->FlyingDown = true;
|
||||||
|
return hacks->CanFly && hacks->Enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void LocalPlayer_ReleaseFlyUp(int key, struct InputDevice* device) {
|
static void LocalPlayer_ReleaseFlyUp(int key, struct InputDevice* device) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user