From 011f1afeb6a0755aa6d769da3403e2ba87b2275d Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 10 Feb 2024 04:08:13 +0300 Subject: [PATCH] client: fix -Wparentheses --- cl_dll/ev_hldm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_dll/ev_hldm.cpp b/cl_dll/ev_hldm.cpp index 7ece6ad2..2e6b4932 100644 --- a/cl_dll/ev_hldm.cpp +++ b/cl_dll/ev_hldm.cpp @@ -111,7 +111,7 @@ float EV_HLDM_PlayTextureSound( int idx, pmtrace_t *ptr, float *vecSrc, float *v chTextureType = 0; // Player - if( entity >= 1 && entity <= gEngfuncs.GetMaxClients() + if( ( entity >= 1 && entity <= gEngfuncs.GetMaxClients() ) || ( ( ent = gEngfuncs.GetEntityByIndex( entity )) && ( ent->curstate.eflags & EFLAG_MONSTER ))) { // hit body