mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-18 10:21:42 +00:00
Fixed some missed cases.
This commit is contained in:
parent
673dab7f23
commit
9ec3093a34
1 changed files with 1 additions and 3 deletions
|
@ -278,7 +278,7 @@ void GLSprite::Draw(int pass)
|
||||||
if (actor != NULL) spritetype = actor->renderflags & RF_SPRITETYPEMASK;
|
if (actor != NULL) spritetype = actor->renderflags & RF_SPRITETYPEMASK;
|
||||||
|
|
||||||
// [Nash] is a flat sprite
|
// [Nash] is a flat sprite
|
||||||
const bool isFlatSprite = (actor != NULL) && (spritetype == RF_WALLSPRITE || spritetype == RF_FLATSPRITE || spritetype == RF_PITCHFLATSPRITE);
|
const bool isFlatSprite = (actor != NULL) && (spritetype == RF_WALLSPRITE || spritetype == RF_FLATSPRITE);
|
||||||
|
|
||||||
// [Nash] check for special sprite drawing modes
|
// [Nash] check for special sprite drawing modes
|
||||||
if (drawWithXYBillboard || drawBillboardFacingCamera || drawRollSpriteActor || isFlatSprite)
|
if (drawWithXYBillboard || drawBillboardFacingCamera || drawRollSpriteActor || isFlatSprite)
|
||||||
|
@ -684,7 +684,6 @@ void GLSprite::Process(AActor* thing, sector_t * sector, int thruportal)
|
||||||
switch (spritetype)
|
switch (spritetype)
|
||||||
{
|
{
|
||||||
case RF_FLATSPRITE:
|
case RF_FLATSPRITE:
|
||||||
case RF_PITCHFLATSPRITE:
|
|
||||||
z = thingpos.Z;
|
z = thingpos.Z;
|
||||||
default:
|
default:
|
||||||
z = thingpos.Z - thing->Floorclip;
|
z = thingpos.Z - thing->Floorclip;
|
||||||
|
@ -753,7 +752,6 @@ void GLSprite::Process(AActor* thing, sector_t * sector, int thruportal)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RF_FLATSPRITE:
|
case RF_FLATSPRITE:
|
||||||
case RF_PITCHFLATSPRITE:
|
|
||||||
case RF_WALLSPRITE:
|
case RF_WALLSPRITE:
|
||||||
viewvecX = thing->Angles.Yaw.Cos();
|
viewvecX = thing->Angles.Yaw.Cos();
|
||||||
viewvecY = thing->Angles.Yaw.Sin();
|
viewvecY = thing->Angles.Yaw.Sin();
|
||||||
|
|
Loading…
Reference in a new issue