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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue