Modified the extraction code to properly handle length and width

of devices that have a terminal underneath the device.  Code not
yet tested.
This commit is contained in:
Tim Edwards 2020-09-21 16:03:37 -04:00
parent 813bc223ac
commit 380b287aa9
2 changed files with 20 additions and 1 deletions

View File

@ -1 +1 @@
8.3.58
8.3.59

View File

@ -3032,7 +3032,26 @@ extSpecialPerimFunc(bp, sense)
if (toutside == TT_SPACE)
if (glob_subsnode != NULL)
diffNode = glob_subsnode;
}
/* Check for terminal on different plane than the device */
if (!needSurvey)
{
for (i = 0; !TTMaskIsZero(&devptr->exts_deviceSDTypes[i]); i++)
{
PlaneMask pmask = DBTechTypesToPlanes(&devptr->exts_deviceSDTypes[i]);
if (!PlaneMaskHasPlane(pmask, DBPlane(tinside)))
{
diffNode = extTransRec.tr_termnode[i];
needSurvey = TRUE;
break;
}
}
}
if (!sense || needSurvey)
{
/*
* Since we're repeating the search, all terminals should be there.
*/