Feature: maxViewDistance, maxViewDistanceAtDark moved into ruleset

Update of https://github.com/SupSuper/OpenXcom/pull/698
A bit rewritten.
Member distance() uses sqrt() from standard library. Changed to distanceSq() because of performance reasons http://assemblyrequired.crashworks.org/2009/10/16/timing-square-root/