Fix else of if statement so fogdensity is only set to 0 there