Originally Posted By: xbox
First off, No semicolon after the if statement.
also, replace the comma with a period an compare it to 1
so it will look like this

Third: Flags are bit fields and you are doing them wrong.


@OP:
Code:
if(inventory_main.flags & VISIBLE)
{
   // Your code here
}




Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com