Resupplying at an ammo crate removes your gas mask.