(svn r19815) -Cleanup: remove two unused variables

This commit is contained in:
smatz 2010-05-13 11:07:04 +00:00
parent 062dd0e24c
commit 28d25cadfc
2 changed files with 3 additions and 4 deletions

View File

@ -2183,7 +2183,6 @@ static ChangeInfoResult IndustrytilesChangeInfo(uint indtid, int numinfo, int pr
/* Allocate space for this industry. */ /* Allocate space for this industry. */
if (*tilespec == NULL) { if (*tilespec == NULL) {
int tempid;
*tilespec = CallocT<IndustryTileSpec>(1); *tilespec = CallocT<IndustryTileSpec>(1);
tsp = *tilespec; tsp = *tilespec;
@ -2199,7 +2198,7 @@ static ChangeInfoResult IndustrytilesChangeInfo(uint indtid, int numinfo, int pr
tsp->grf_prop.local_id = indtid + i; tsp->grf_prop.local_id = indtid + i;
tsp->grf_prop.subst_id = subs_id; tsp->grf_prop.subst_id = subs_id;
tsp->grf_prop.grffile = _cur_grffile; tsp->grf_prop.grffile = _cur_grffile;
tempid = _industile_mngr.AddEntityID(indtid + i, _cur_grffile->grfid, subs_id); // pre-reserve the tile slot _industile_mngr.AddEntityID(indtid + i, _cur_grffile->grfid, subs_id); // pre-reserve the tile slot
} }
} break; } break;

View File

@ -158,7 +158,7 @@ static int AyStarMain_CheckTile(AyStar *aystar, AyStarNode *current, OpenListNod
*/ */
static int AyStarMain_Loop(AyStar *aystar) static int AyStarMain_Loop(AyStar *aystar)
{ {
int i, r; int i;
/* Get the best node from OpenList */ /* Get the best node from OpenList */
OpenListNode *current = AyStarMain_OpenList_Pop(aystar); OpenListNode *current = AyStarMain_OpenList_Pop(aystar);
@ -182,7 +182,7 @@ static int AyStarMain_Loop(AyStar *aystar)
/* Go through all neighbours */ /* Go through all neighbours */
for (i = 0; i < aystar->num_neighbours; i++) { for (i = 0; i < aystar->num_neighbours; i++) {
/* Check and add them to the OpenList if needed */ /* Check and add them to the OpenList if needed */
r = aystar->checktile(aystar, &aystar->neighbours[i], current); aystar->checktile(aystar, &aystar->neighbours[i], current);
} }
/* Free the node */ /* Free the node */