fix for smoke visibility

the code as it was is fine, assuming maxViewDistance never dropped below 0,
which it frequently does when looking through smoke.