Skip to content

Commit 5fc3d44

Browse files
MajorCookemadame-rachelle
authored andcommitted
Added SPF_ROLLCENTER for particles and visual thinkers.
1 parent c56d70f commit 5fc3d44

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/playsim/p_effect.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ enum EParticleFlags
6868
SPF_NEGATIVE_FADESTEP = 1 << 10,
6969
SPF_FACECAMERA = 1 << 11,
7070
SPF_NOFACECAMERA = 1 << 12,
71+
SPF_ROLLCENTER = 1 << 13,
7172
};
7273

7374
class DVisualThinker;

src/rendering/hwrenderer/scene/hw_sprites.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ bool HWSprite::CalculateVertices(HWDrawInfo* di, FVector3* v, DVector3* vp)
415415

416416
// [Nash] is a flat sprite
417417
const bool isWallSprite = (actor != nullptr) && (spritetype == RF_WALLSPRITE);
418-
const bool useOffsets = (actor != nullptr) && !(actor->renderflags & RF_ROLLCENTER);
418+
const bool useOffsets = ((actor != nullptr) && !(actor->renderflags & RF_ROLLCENTER)) || (particle && !(particle->flags & SPF_ROLLCENTER));
419419

420420
FVector2 offset = FVector2( offx, offy );
421421
float xx = -center.X + x;

wadsrc/static/zscript/constants.zs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,7 @@ enum EParticleFlags
717717
SPF_NEGATIVE_FADESTEP = 1 << 10,
718718
SPF_FACECAMERA = 1 << 11,
719719
SPF_NOFACECAMERA = 1 << 12,
720+
SPF_ROLLCENTER = 1 << 13,
720721

721722
SPF_RELATIVE = SPF_RELPOS|SPF_RELVEL|SPF_RELACCEL|SPF_RELANG
722723
};

0 commit comments

Comments
 (0)