Add correct_movement, call from CL_CreateMove

This commit is contained in:
8dcc
2023-07-23 15:50:01 +02:00
parent dcd38dc950
commit 611182e394
3 changed files with 28 additions and 0 deletions

View File

@@ -19,10 +19,14 @@ bool hooks_init(void) {
void h_CL_CreateMove(float frametime, usercmd_t* cmd, int active) {
ORIGINAL(CL_CreateMove, frametime, cmd, active);
vec3_t old_angles = cmd->viewangles;
/* Declared in globals.c */
localplayer = i_engine->GetLocalPlayer();
bhop(cmd);
correct_movement(cmd, old_angles);
}
int h_HUD_Redraw(float time, int intermission) {