From 5e5315a9b395c6d165635a76faec83e972c5b919 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Thu, 3 Aug 2023 13:13:40 -0400 Subject: [PATCH] - silence warnings in shadowinlines.h line 88 --- src/playsim/shadowinlines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playsim/shadowinlines.h b/src/playsim/shadowinlines.h index a0a0083b05..f73ea266d8 100644 --- a/src/playsim/shadowinlines.h +++ b/src/playsim/shadowinlines.h @@ -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)