Encountered a problem here, as I need a compute terrain to get the squares right, but that changes the mask for the path after the CT. Maybe I made a mistake...
Also, even these squares actually need an angled restriction, or you get these diagonals.