Small change to SpectatorCamera actor.

This commit is contained in:
Dileep V. Reddy 2024-01-26 07:56:46 -07:00 committed by Rachael Alexanderson
parent 25f1407228
commit 2b555d7556

View file

@ -144,7 +144,7 @@ class SpectatorCamera : Actor
void Init(double dist, double yaw, double inpitch, int inflags) void Init(double dist, double yaw, double inpitch, int inflags)
{ {
if((inflags & VPSF_ORTHOGRAPHIC) || ((inflags == -1) && (ViewPos.Flags & VPSF_ORTHOGRAPHIC))) dist *= 3.0; if(((inflags > 0) && (inflags & VPSF_ORTHOGRAPHIC)) || ((inflags < 0) && (ViewPos.Flags & VPSF_ORTHOGRAPHIC))) dist *= 3.0;
SetViewPos((-dist*Cos(yaw), -dist*Sin(yaw), dist*Tan(inpitch)-0.5*players[consoleplayer].mo.height), inflags); SetViewPos((-dist*Cos(yaw), -dist*Sin(yaw), dist*Tan(inpitch)-0.5*players[consoleplayer].mo.height), inflags);
// CameraHeight = players[consoleplayer].mo.viewheight; // Not used // CameraHeight = players[consoleplayer].mo.viewheight; // Not used
LookAtSelf(inpitch); LookAtSelf(inpitch);