diff --git a/resis/ResMain.c b/resis/ResMain.c index ce2569af..af2d06dc 100644 --- a/resis/ResMain.c +++ b/resis/ResMain.c @@ -449,6 +449,7 @@ ResFindNewContactTiles(contacts) tile = PlaneGetHint(ResDef->cd_planes[pNum]); GOTOPOINT(tile, &(contacts->cp_center)); + PlaneSetHint(ResDef->cd_planes[pNum], tile); #ifdef PARANOID if (tile == (Tile *) NULL) { @@ -1412,6 +1413,7 @@ FindStartTile(resisdata, SourcePoint) { tile = PlaneGetHint(ResUse->cu_def->cd_planes[pnum]); GOTOPOINT(tile, &workingPoint); + PlaneSetHint(ResUse->cu_def->cd_planes[pnum], tile); SourcePoint->p_x = workingPoint.p_x; SourcePoint->p_y = workingPoint.p_y; @@ -1445,6 +1447,7 @@ FindStartTile(resisdata, SourcePoint) tile = PlaneGetHint(ResUse->cu_def->cd_planes[pnum]); GOTOPOINT(tile, &workingPoint); + PlaneSetHint(ResUse->cu_def->cd_planes[pnum], tile); if (IsSplit(tile)) { @@ -1796,6 +1799,7 @@ ResGetDevice(pt, type) tile = PlaneGetHint(ResUse->cu_def->cd_planes[pnum]); GOTOPOINT(tile, &workingPoint); + PlaneSetHint(ResUse->cu_def->cd_planes[pnum], tile); const ClientData ticlient = TiGetClient(tile); if (IsSplit(tile)) diff --git a/resis/ResUtils.c b/resis/ResUtils.c index 3a8cd8bb..cb3deee2 100644 --- a/resis/ResUtils.c +++ b/resis/ResUtils.c @@ -733,6 +733,7 @@ ResPreProcessDevices(TileList, DeviceList, Def) tile = PlaneGetHint(Def->cd_planes[pNum]); GOTOPOINT(tile, &(TileList->area.r_ll)); + PlaneSetHint(Def->cd_planes[pNum], tile); tt = TiGetType(tile); tstruct = (resInfo *) TiGetClientPTR(tile);