Skip to content

Commit

Permalink
Small change to SpectatorCamera actor.
Browse files Browse the repository at this point in the history
  • Loading branch information
dileepvr authored and madame-rachelle committed Feb 1, 2024
1 parent 25f1407 commit 2b555d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/actors/shared/camera.zs
Expand Up @@ -144,7 +144,7 @@ class SpectatorCamera : Actor

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);
// CameraHeight = players[consoleplayer].mo.viewheight; // Not used
LookAtSelf(inpitch);
Expand Down

0 comments on commit 2b555d7

Please sign in to comment.