Added SPF_ROLLCENTER for particles and visual thinkers.

This commit is contained in:
Major Cooke 2024-06-23 09:44:13 -05:00 committed by Rachael Alexanderson
commit 5fc3d44ba5
3 changed files with 3 additions and 1 deletions

View file

@ -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;