[client] Set camera rotation for chase mode 1

With the change in cl_view separating chase cam updates from
first-person updates, the auto-rotation of the camera was lost.
This commit is contained in:
Bill Currie 2022-03-02 19:13:58 +09:00
parent f296cb897e
commit 7906db5a37

View file

@ -187,6 +187,7 @@ chase_mode_1 (chasestate_t *cs)
vec4f_t forward = {}, up = {}, right = {}, stop = {};
//FIXME
AngleVectors (vs->player_angles, &forward[0], &right[0], &up[0]);
VectorCopy (vs->player_angles, cs->camera_angles);
// calc exact destination
cs->camera_origin = vs->player_origin
@ -200,7 +201,7 @@ chase_mode_1 (chasestate_t *cs)
cs->camera_origin = stop + forward * 8;
}
Transform_SetWorldPosition (vs->camera_transform, cs->camera_origin);
set_camera (cs, vs);
}
static void