Re: +Help!

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu