Precalculate the horizontal and vertical ratio of the Search, light and height
maps (it's the same). Moved maps initialization later, since they need the
overlays already initialized. Use the correct ratio also in the height and
light maps.