Fixed the adjacent proc to correctly process diagonals checks (fix #3519).
Reverted back to some optimized checks
Corrected swapped comments
Merge pull request #3525 from Menshin/adjacent_check_fix

Fixed the adjacent proc to correctly process diagonals checks (fix #3519)