From 4bbe4ef74e5eac98c503bf6483ee7a40dbb0547a Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 14 Oct 2020 22:53:03 -0400 Subject: [PATCH] Added another fix from a pull request by Dan Moore, which apparently fixes a problem with substrate nodes not being flagged as such when reading .ext files. --- extflat/EFbuild.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extflat/EFbuild.c b/extflat/EFbuild.c index 44c9c019..09ac3a2e 100644 --- a/extflat/EFbuild.c +++ b/extflat/EFbuild.c @@ -167,6 +167,12 @@ efBuildNode(def, isSubsnode, nodeName, nodeCap, x, y, layerName, av, ac) newnode->efnode_pa[n].pa_area += atoi(*av++); newnode->efnode_pa[n].pa_perim += atoi(*av++); } + + /* If this node is identified as substrate, ensure that */ + /* the flag is set. */ + if (isSubsnode == TRUE) + newnode->efnode_flags |= EF_SUBS_NODE; + return; } }