Weed out some forgotten dead code.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4644 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2008-04-15 21:31:35 +00:00
parent 1403e9c36a
commit c485aa69f5
2 changed files with 2 additions and 7 deletions

View File

@ -496,11 +496,7 @@ static FP_NODE *psNearest, *psRoute;
}
}
// ASSERT( fpathValidateTree(psOpen),
// "fpathAStarRoute: Invalid open tree" );
// add the current point to the closed nodes
// fpathHashRemove(apsOpen, psCurr->pos.x, psCurr->pos.y);
// fpathHashAdd(apsClosed, psCurr);
psCurr->type = NT_CLOSED;
// debug( LOG_NEVER, "HashAdd - closed : %3d,%3d (%d,%d) = %d\n", psCurr->pos.x, psCurr->pos.y, psCurr->dist, psCurr->est, psCurr->dist+psCurr->est );

View File

@ -393,9 +393,8 @@ static BOOL fpathRouteCloser(MOVE_CONTROL *psMoveCntl, ASTAR_ROUTE *psAStarRoute
}
// create a final route from a gateway route
static FPATH_RETVAL fpathGatewayRoute(BASE_OBJECT *psObj, SDWORD routeMode, /*SDWORD GWTerrain,*/
SDWORD sx, SDWORD sy, SDWORD fx, SDWORD fy,
MOVE_CONTROL *psMoveCntl)
static FPATH_RETVAL fpathGatewayRoute(BASE_OBJECT *psObj, SDWORD routeMode, SDWORD sx, SDWORD sy,
SDWORD fx, SDWORD fy, MOVE_CONTROL *psMoveCntl)
{
static SDWORD linkx, linky, gwx, gwy, asret, matchPoints;
static ASTAR_ROUTE sAStarRoute;