LoS/line code cleanup plus a minor bugfix

Bugfix is for code evaluating friendliness of two critters, the cleanup is replacing few bit-shifts with arithmetic operations, and renamed a previously extremely cryptic widespread variable related to all code lines-related.