Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Commit

Permalink
Additional fix for FOV on Lady Luck turret
Browse files Browse the repository at this point in the history
  • Loading branch information
DrBeef committed Apr 18, 2023
1 parent 0d39cb1 commit 0acb046
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Projects/Android/jni/JKXR/JKXR_SurfaceView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void VR_SetHMDOrientation(float pitch, float yaw, float roll)
//Keep this for our records
VectorCopy(vr.hmdorientation, vr.hmdorientation_last);

if (!vr.third_person && !vr.remote_npc){
if (!vr.third_person && !vr.remote_npc && !vr.remote_turret){
VectorCopy(vr.hmdorientation, vr.hmdorientation_first);
}

Expand Down
6 changes: 6 additions & 0 deletions Projects/Android/jni/OpenJK/codeJK2/cgame/cg_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3012,6 +3012,12 @@ void CG_DrawActive( stereoFrame_t stereoView ) {
AnglesToAxis(cg.refdef.viewangles, cg.refdef.viewaxis);
}

//If viewing a remote turret, take the overridden FOV
if (vr->remote_turret)
{
cg.refdef.override_fov = true;
}

//Controlling an NPC that isn't a droid
if (vr->remote_npc &&
!vr->remote_droid)
Expand Down

0 comments on commit 0acb046

Please sign in to comment.