Re: +Help!
I had mistakenly written:
>The flags are ORd together. In this case, the returned result would be:
>
> MOVE AND LEFT_DOWN
>
>which equals
>
> 1 AND 2
>
>which is, of course, 3.
I should have written:
>The flags are ORd together. In this case, the returned result would be:
>
> MOVE OR LEFT_DOWN => or_bits( MOVE, LEFT_DOWN )
>
>which equals
>
> 1 OR 2 => or_bits( 1, 2 )
>
>which is, of course, 3.
because 'and_bits( 1, 2 )' equals 0.
Sorry about the typo.
-- David Cuny
|
Not Categorized, Please Help
|
|