diff --git a/game/client/prediction.cpp b/game/client/prediction.cpp index 508fc5de..6646f8f9 100644 --- a/game/client/prediction.cpp +++ b/game/client/prediction.cpp @@ -903,10 +903,10 @@ void CPrediction::RunCommand( C_BasePlayer *player, CUserCmd *ucmd, IMoveHelper pVehicle->ProcessMovement( player, g_pMoveData ); } - RunPostThink( player ); - FinishMove( player, ucmd, g_pMoveData ); + RunPostThink( player ); + g_pGameMovement->FinishTrackPredictionErrors( player ); FinishCommand( player ); diff --git a/game/server/player_command.cpp b/game/server/player_command.cpp index 0b82f719..b607bbab 100644 --- a/game/server/player_command.cpp +++ b/game/server/player_command.cpp @@ -417,11 +417,6 @@ void CPlayerMove::RunCommand ( CBasePlayer *player, CUserCmd *ucmd, IMoveHelper player->pl.v_angle = ucmd->viewangles + player->pl.anglechange; } - // Let server invoke any needed impact functions - VPROF_SCOPE_BEGIN( "moveHelper->ProcessImpacts" ); - moveHelper->ProcessImpacts(); - VPROF_SCOPE_END(); - // Call standard client pre-think RunPreThink( player ); @@ -447,6 +442,11 @@ void CPlayerMove::RunCommand ( CBasePlayer *player, CUserCmd *ucmd, IMoveHelper // Copy output FinishMove( player, ucmd, g_pMoveData ); + // Let server invoke any needed impact functions + VPROF_SCOPE_BEGIN( "moveHelper->ProcessImpacts" ); + moveHelper->ProcessImpacts(); + VPROF_SCOPE_END(); + RunPostThink( player ); g_pGameMovement->FinishTrackPredictionErrors( player );