- silence warnings in shadowinlines.h line 88

This commit is contained in:
Rachael Alexanderson 2023-08-03 13:13:40 -04:00
parent 1852f14f30
commit 5e5315a9b3

View file

@ -85,7 +85,7 @@ inline bool AffectedByShadows(AActor* self, AActor* other)
inline bool CheckForShadows(AActor* self, AActor* other, DVector3 pos, double& penaltyFactor)
{
return ((other && other->flags & MF_SHADOW) || self->flags9 & MF9_DOSHADOWBLOCK && P_CheckForShadowBlock(self, other, pos, penaltyFactor));
return ((other && (other->flags & MF_SHADOW)) || (self->flags9 & MF9_DOSHADOWBLOCK) && P_CheckForShadowBlock(self, other, pos, penaltyFactor));
}
inline bool PerformShadowChecks(AActor* self, AActor* other, DVector3 pos, double& penaltyFactor)