mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
Have correct sprite angle-frame face the camera with orthographic projection enabled.
This commit is contained in:
parent
e647b61633
commit
e9f3d39c93
2 changed files with 3 additions and 3 deletions
|
@ -913,7 +913,7 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
|
||||||
{
|
{
|
||||||
bool mirror = false;
|
bool mirror = false;
|
||||||
DAngle ang = (thingpos - vp.Pos).Angle();
|
DAngle ang = (thingpos - vp.Pos).Angle();
|
||||||
if (thing->renderflags2 & RF2_ISOMETRICSPRITES) ang = vp.Angles.Yaw;
|
if ((vp.camera->ViewPos != NULL) && (vp.camera->ViewPos->Flags & VPSF_ORTHOGRAPHIC)) ang = vp.Angles.Yaw;
|
||||||
FTextureID patch;
|
FTextureID patch;
|
||||||
// [ZZ] add direct picnum override
|
// [ZZ] add direct picnum override
|
||||||
if (isPicnumOverride)
|
if (isPicnumOverride)
|
||||||
|
|
|
@ -158,7 +158,7 @@ class SpectatorCamera : Actor
|
||||||
if(tracer != NULL)
|
if(tracer != NULL)
|
||||||
{
|
{
|
||||||
if(player != NULL) zshift = -0.5*tracer.height;
|
if(player != NULL) zshift = -0.5*tracer.height;
|
||||||
else zshift = tracer.height;
|
else zshift = 0.5*tracer.height;
|
||||||
}
|
}
|
||||||
else if (player != NULL && player.mo != NULL) zshift = -0.5*player.mo.height;
|
else if (player != NULL && player.mo != NULL) zshift = -0.5*player.mo.height;
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ class SpectatorCamera : Actor
|
||||||
|
|
||||||
void LookAtSelf(double inpitch)
|
void LookAtSelf(double inpitch)
|
||||||
{
|
{
|
||||||
if(ViewPos.Offset != (0., 0., 0.))
|
if(ViewPos.Offset.length() > 0.)
|
||||||
{
|
{
|
||||||
Vector3 negviewpos = (-1.0) * ViewPos.Offset;
|
Vector3 negviewpos = (-1.0) * ViewPos.Offset;
|
||||||
angle = negviewpos.Angle();
|
angle = negviewpos.Angle();
|
||||||
|
|
Loading…
Reference in a new issue