Do not move during spectating by turning controller/hmd

This commit is contained in:
Petr Bartos 2022-04-05 20:19:13 +02:00
parent 8839768f26
commit dc7c01667d
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ static int CG_CalcViewValues( ) {
// intermission view // intermission view
static float hmdYaw = 0; static float hmdYaw = 0;
if ( ps->pm_type == PM_INTERMISSION ) { if ( (ps->pm_type == PM_INTERMISSION || ps->pm_type == PM_SPECTATOR) && !vr->virtual_screen ) {
VectorCopy( ps->origin, cg.refdef.vieworg ); VectorCopy( ps->origin, cg.refdef.vieworg );
static vec3_t mins = { -1, -1, -1 }; static vec3_t mins = { -1, -1, -1 };