From e3af8bd39acf4508daf50e83567ed4aba1055777 Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Thu, 20 Jul 2023 23:21:01 +0200 Subject: [PATCH] Call bhop after original in CL_CreateMove --- src/hooks.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hooks.c b/src/hooks.c index 18b2c6f..3bc6258 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -3,6 +3,8 @@ #include "include/sdk.h" #include "include/globals.h" +#include "features/include/movement.h" + DECL_HOOK(CL_CreateMove); bool hooks_init(void) { @@ -12,7 +14,7 @@ bool hooks_init(void) { } void h_CL_CreateMove(float frametime, usercmd_t* cmd, int active) { - /* bhop(cmd); */ - ORIGINAL(CL_CreateMove, frametime, cmd, active); + + bhop(cmd); }