A GID with the flag bits zeroed out
// normal tile, no flags TiledGid gid = 0x00000002; assert(gid.cleanGid == gid); // normal tile, no flags gid = 0x80000002; // tile with id 2 flipped horizontally assert(gid.cleanGid == 0x2); assert(gid & TiledFlag.flipHorizontal);
Clear the TiledFlag portion of a GID, leaving just the tile id.