mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-05 00:50:50 +02:00
Corrected a stupid omission to set the plane hint during a search
in "extresist", which when missing causes the plane to be searched repeatedly from the same point instead of from the last place searched. Can knock down the "extresist" time by up to 50%.
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user