Clamp viewangles in CL_CreateMove
This commit is contained in:
parent
930ee5cef5
commit
4d71945eb3
|
@ -2,6 +2,7 @@
|
||||||
#include "include/hooks.h"
|
#include "include/hooks.h"
|
||||||
#include "include/sdk.h"
|
#include "include/sdk.h"
|
||||||
#include "include/globals.h"
|
#include "include/globals.h"
|
||||||
|
#include "include/util.h"
|
||||||
|
|
||||||
/* bhop(), esp(), etc. */
|
/* bhop(), esp(), etc. */
|
||||||
#include "features/features.h"
|
#include "features/features.h"
|
||||||
|
@ -27,6 +28,7 @@ void h_CL_CreateMove(float frametime, usercmd_t* cmd, int active) {
|
||||||
bhop(cmd);
|
bhop(cmd);
|
||||||
|
|
||||||
correct_movement(cmd, old_angles);
|
correct_movement(cmd, old_angles);
|
||||||
|
vec_clamp(cmd->viewangles);
|
||||||
}
|
}
|
||||||
|
|
||||||
int h_HUD_Redraw(float time, int intermission) {
|
int h_HUD_Redraw(float time, int intermission) {
|
||||||
|
|
Loading…
Reference in New Issue