tags:

views:

132

answers:

1

im trying to convert this code to c#

for ( int k=0; k < 3; k++ )
 if ( anim.jointInfo[j].flags & (1 << k)  ) {
        //....
 }

flags: int
jointInfo: List<>
+7  A: 

Gotcha, bool vs int thing

for ( int k=0; k < 3; k++ )
    if ( anim.jointInfo[j].flags & (1 << k) != 0) {
        //....
    }
Faheem
Nicely spotted! :-)
Dan Puzey
sam