mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-01 16:32:17 +00:00
Small change to SpectatorCamera actor.
This commit is contained in:
parent
25f1407228
commit
2b555d7556
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue