Call bhop after original in CL_CreateMove
This commit is contained in:
parent
1f1df22414
commit
e3af8bd39a
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue