From 0f5c74fb535b54d0d5ae9851a5ada76f1a68f663 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 20 Jul 2024 10:14:09 +1000 Subject: [PATCH] Fix can't multijump anymore --- src/Entity.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Entity.c b/src/Entity.c index c919197a8..2d40a7099 100644 --- a/src/Entity.c +++ b/src/Entity.c @@ -919,6 +919,7 @@ static cc_bool LocalPlayer_HandleJump(int key, struct InputDevice* device) { struct HacksComp* hacks = &p->Hacks; struct PhysicsComp* physics = &p->Physics; int maxJumps; + physics->Jumping = true; if (!p->Base.OnGround && !(hacks->Flying || hacks->Noclip)) { maxJumps = hacks->CanDoubleJump && hacks->WOMStyleHacks ? 2 : 0; @@ -981,11 +982,6 @@ static void LocalPlayer_ReleaseFlyDown(int key, struct InputDevice* device) { LocalPlayer_Instances[device->mappedIndex].Hacks.FlyingDown = false; } - -static cc_bool LocalPlayer_TriggerJump(int key, struct InputDevice* device) { - LocalPlayer_Instances[device->mappedIndex].Physics.Jumping = true; - return true; -} static void LocalPlayer_ReleaseJump(int key, struct InputDevice* device) { LocalPlayer_Instances[device->mappedIndex].Physics.Jumping = false; } @@ -1011,7 +1007,6 @@ static void LocalPlayer_HookBinds(void) { Bind_OnReleased[BIND_FLY_UP] = LocalPlayer_ReleaseFlyUp; Bind_OnReleased[BIND_FLY_DOWN] = LocalPlayer_ReleaseFlyDown; - Bind_OnTriggered[BIND_JUMP] = LocalPlayer_TriggerJump; Bind_OnReleased[BIND_JUMP] = LocalPlayer_ReleaseJump; Bind_OnReleased[BIND_NOCLIP] = LocalPlayer_ReleaseNoclip; }