Merge friendly 2 conditions in chams

This commit is contained in:
8dcc 2023-07-27 21:33:35 +02:00
parent 3a107737b9
commit 744a4d5527
1 changed files with 4 additions and 5 deletions

View File

@ -41,11 +41,10 @@ bool chams(void* this_ptr) {
const bool friendly = is_friend(ent);
if (friendly && !(setting & FRIEND_CHAMS))
/* Friendly ent but we dont want to render friends */
return false;
else if (!friendly && !(setting & ENEMY_CHAMS))
/* Not friendly ent and we dont want to render enemies */
/* Friendly ent but we dont want to render friends OR
* Not friendly ent and we dont want to render enemies*/
if ((friendly && !(setting & FRIEND_CHAMS)) ||
(!friendly && !(setting & ENEMY_CHAMS)))
return false;
/* If we got here it means we are rendering a valid player */