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); const bool friendly = is_friend(ent);
if (friendly && !(setting & FRIEND_CHAMS)) /* Friendly ent but we dont want to render friends OR
/* Friendly ent but we dont want to render friends */ * Not friendly ent and we dont want to render enemies*/
return false; if ((friendly && !(setting & FRIEND_CHAMS)) ||
else if (!friendly && !(setting & ENEMY_CHAMS)) (!friendly && !(setting & ENEMY_CHAMS)))
/* Not friendly ent and we dont want to render enemies */
return false; return false;
/* If we got here it means we are rendering a valid player */ /* If we got here it means we are rendering a valid player */