mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 02:41:30 +00:00
[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:
parent
f296cb897e
commit
7906db5a37
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue