Reworked Igi and View distance

Reworked View distance to have less code.
Changed Igi parameter to check for enabled parameter before running.

Grubes please check again