mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-04 08:33:55 +02:00
Plane[GS]etHint() added to encapsulate access to Plane->pl_hint
This is ground work to intercept usage and validate changes in this area. Fixed conflicts with earler patch in extract/ExtNghbors.c
This commit is contained in:
committed by
R. Timothy Edwards
parent
f942ae6e78
commit
1a84eab4ce
+4
-4
@@ -4325,9 +4325,9 @@ Tile *extNodeToTile(np, et)
|
||||
|
||||
myplane = et->et_use->cu_def->cd_planes[np->nreg_pnum];
|
||||
|
||||
tp = myplane->pl_hint;
|
||||
tp = PlaneGetHint(myplane);
|
||||
GOTOPOINT(tp, &np->nreg_ll);
|
||||
myplane->pl_hint = tp;
|
||||
PlaneSetHint(myplane, tp);
|
||||
|
||||
if (IsSplit(tp))
|
||||
{
|
||||
@@ -5092,9 +5092,9 @@ donesides:
|
||||
{
|
||||
Plane *plane = arg->fra_def->cd_planes[pNum];
|
||||
|
||||
tp = plane->pl_hint;
|
||||
tp = PlaneGetHint(plane);
|
||||
GOTOPOINT(tp, &tile->ti_ll);
|
||||
plane->pl_hint = tp;
|
||||
PlaneSetHint(plane, tp);
|
||||
|
||||
if (TiGetClient(tp) != extUnInit) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user