Merge friendly 2 conditions in chams
This commit is contained in:
parent
3a107737b9
commit
744a4d5527
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue