Vent pipes should either be straight or at lesser than an angle of 45 degrees from horizontal, so the water doesn’t back into them.