mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 06:42:08 +00:00
Added SPF_ROLLCENTER for particles and visual thinkers.
This commit is contained in:
parent
c56d70f2b1
commit
5fc3d44ba5
3 changed files with 3 additions and 1 deletions
|
@ -68,6 +68,7 @@ enum EParticleFlags
|
|||
SPF_NEGATIVE_FADESTEP = 1 << 10,
|
||||
SPF_FACECAMERA = 1 << 11,
|
||||
SPF_NOFACECAMERA = 1 << 12,
|
||||
SPF_ROLLCENTER = 1 << 13,
|
||||
};
|
||||
|
||||
class DVisualThinker;
|
||||
|
|
|
@ -415,7 +415,7 @@ bool HWSprite::CalculateVertices(HWDrawInfo* di, FVector3* v, DVector3* vp)
|
|||
|
||||
// [Nash] is a flat sprite
|
||||
const bool isWallSprite = (actor != nullptr) && (spritetype == RF_WALLSPRITE);
|
||||
const bool useOffsets = (actor != nullptr) && !(actor->renderflags & RF_ROLLCENTER);
|
||||
const bool useOffsets = ((actor != nullptr) && !(actor->renderflags & RF_ROLLCENTER)) || (particle && !(particle->flags & SPF_ROLLCENTER));
|
||||
|
||||
FVector2 offset = FVector2( offx, offy );
|
||||
float xx = -center.X + x;
|
||||
|
|
|
@ -717,6 +717,7 @@ enum EParticleFlags
|
|||
SPF_NEGATIVE_FADESTEP = 1 << 10,
|
||||
SPF_FACECAMERA = 1 << 11,
|
||||
SPF_NOFACECAMERA = 1 << 12,
|
||||
SPF_ROLLCENTER = 1 << 13,
|
||||
|
||||
SPF_RELATIVE = SPF_RELPOS|SPF_RELVEL|SPF_RELACCEL|SPF_RELANG
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue