Quote:
Originally Posted by Kiske
Nice!.
And..
What this ?:
Code:
SetHamReturnInteger( !! (DEFAULT_CANT_DROP_BITSUM & ( 1<<get_pdata_int(iEnt, m_iId, XTRA_OFS_WEAPON) )) )
|
a & b returns 0 if no bit is common to both value, or the common bits if there are some.
!!0 is equal to 0
!!ANYVALUEOTHERTHANZERO is equal to 1
Could have cast to bool instead.
__________________