From dc7c01667d1063d4e96fbc95743578778c9b0da4 Mon Sep 17 00:00:00 2001 From: Petr Bartos Date: Tue, 5 Apr 2022 20:19:13 +0200 Subject: [PATCH] Do not move during spectating by turning controller/hmd --- android/app/src/main/cpp/code/cgame/cg_view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/cpp/code/cgame/cg_view.c b/android/app/src/main/cpp/code/cgame/cg_view.c index e7dbfbe0..fec21ed0 100644 --- a/android/app/src/main/cpp/code/cgame/cg_view.c +++ b/android/app/src/main/cpp/code/cgame/cg_view.c @@ -672,7 +672,7 @@ static int CG_CalcViewValues( ) { // intermission view 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 ); static vec3_t mins = { -1, -1, -1 };