Fixed portal detection in R_AddLine