From 28d25cadfc87398c3b352a07de377b836e4aa0d1 Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 13 May 2010 11:07:04 +0000 Subject: (svn r19815) -Cleanup: remove two unused variables --- src/newgrf.cpp | 3 +-- src/pathfinder/npf/aystar.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/newgrf.cpp b/src/newgrf.cpp index ac4fcce53..4f6b88bf8 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -2183,7 +2183,6 @@ static ChangeInfoResult IndustrytilesChangeInfo(uint indtid, int numinfo, int pr /* Allocate space for this industry. */ if (*tilespec == NULL) { - int tempid; *tilespec = CallocT(1); 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.subst_id = subs_id; 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; diff --git a/src/pathfinder/npf/aystar.cpp b/src/pathfinder/npf/aystar.cpp index ffe62f7fa..a4ea8f70c 100644 --- a/src/pathfinder/npf/aystar.cpp +++ b/src/pathfinder/npf/aystar.cpp @@ -158,7 +158,7 @@ static int AyStarMain_CheckTile(AyStar *aystar, AyStarNode *current, OpenListNod */ static int AyStarMain_Loop(AyStar *aystar) { - int i, r; + int i; /* Get the best node from OpenList */ OpenListNode *current = AyStarMain_OpenList_Pop(aystar); @@ -182,7 +182,7 @@ static int AyStarMain_Loop(AyStar *aystar) /* Go through all neighbours */ for (i = 0; i < aystar->num_neighbours; i++) { /* 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 */ -- cgit v1.2.3-70-g09d2