Quote: well I tried: if(VIEW_ent.flags2 == VISIBLE) and I worked, very easy..
Very easy and wrong. This will cause you sooner ar later lots of trouble. This condition will only evaluate to true if no other flags than VISIBLE are set. The correect condition is Code:
if (VIEW_ent.flags2 & VISIBLE == VISIBLE)
or Code:
if (VIEW_ent.flags2 & VISIBLE != 0)
or in it's most simple form Code:
if (VIEW_ent.flags2 & VISIBLE)
Always learn from history, to be sure you make the same mistakes again...
Re: the opposite of : VIEW_ent.flags2 |= VISIBLE;
[Re: Uhrwerk]
#189269 03/18/0820:3903/18/0820:39