From 2b555d7556a20396fefb51381b4bd96e4920334a Mon Sep 17 00:00:00 2001 From: "Dileep V. Reddy" Date: Fri, 26 Jan 2024 07:56:46 -0700 Subject: [PATCH] Small change to SpectatorCamera actor. --- wadsrc/static/zscript/actors/shared/camera.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/actors/shared/camera.zs b/wadsrc/static/zscript/actors/shared/camera.zs index 08f969dc2..334be382f 100644 --- a/wadsrc/static/zscript/actors/shared/camera.zs +++ b/wadsrc/static/zscript/actors/shared/camera.zs @@ -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);