Call bhop after original in CL_CreateMove

This commit is contained in:
8dcc 2023-07-20 23:21:01 +02:00
parent 1f1df22414
commit e3af8bd39a
1 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@
#include "include/sdk.h" #include "include/sdk.h"
#include "include/globals.h" #include "include/globals.h"
#include "features/include/movement.h"
DECL_HOOK(CL_CreateMove); DECL_HOOK(CL_CreateMove);
bool hooks_init(void) { bool hooks_init(void) {
@ -12,7 +14,7 @@ bool hooks_init(void) {
} }
void h_CL_CreateMove(float frametime, usercmd_t* cmd, int active) { void h_CL_CreateMove(float frametime, usercmd_t* cmd, int active) {
/* bhop(cmd); */
ORIGINAL(CL_CreateMove, frametime, cmd, active); ORIGINAL(CL_CreateMove, frametime, cmd, active);
bhop(cmd);
} }