Add correct_movement, call from CL_CreateMove
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user