Fixed Transparency flag patch

Should be up to your standards vodik ;p, if not let me know what needs to be done.