mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-07 21:10:46 +08:00
Add FExactBitSet for checking bitmasks, but exact
This commit is contained in:
@@ -27,7 +27,12 @@ public class FWGSLib
|
||||
static String externalFilesDir;
|
||||
public static boolean FBitSet( final int bits, final int mask )
|
||||
{
|
||||
return ((bits & mask) == mask);
|
||||
return ((bits & mask) != 0);
|
||||
}
|
||||
|
||||
public static boolean FExactBitSet( final int bits, final int mask )
|
||||
{
|
||||
return ((bits & mask) == mask );
|
||||
}
|
||||
|
||||
public static float atof( String str, float fallback )
|
||||
|
||||
Reference in New Issue
Block a user