fix compilation

This commit is contained in:
Ricardo Luís Vaz Silva 2024-11-13 17:02:50 -03:00
parent ad40299da4
commit a0c1f5b1b7
2 changed files with 3 additions and 1 deletions

View file

@ -37,6 +37,8 @@ public:
sector_t *cursector;
int flags;
int sprite; // used to find patch_t and flip value
uint8_t frame; // sprite frame to draw
// internal only variables
particle_t PT;

View file

@ -414,7 +414,7 @@ bool HWSprite::CalculateVertices(HWDrawInfo* di, FVector3* v, DVector3* vp)
const bool drawBillboardFacingCamera = hw_force_cambbpref ? gl_billboard_faces_camera :
gl_billboard_faces_camera
|| ((actor && (!(actor->renderflags2 & RF2_BILLBOARDNOFACECAMERA) && (actor->renderflags2 & RF2_BILLBOARDFACECAMERA)))
|| ((!(particle->flags & SPF_NOFACECAMERA) && (particle->flags & SPF_FACECAMERA))));
|| (particle && (!(particle->flags & SPF_NOFACECAMERA) && (particle->flags & SPF_FACECAMERA))));
// [Nash] has +ROLLSPRITE
const bool drawRollSpriteActor = (actor != nullptr && actor->renderflags & RF_ROLLSPRITE);