Make sight distance vary according to daylight
Apply some kibit suggested changes