From 9a0933f82313e8cf27b64f1423a4428f4f8f9fa8 Mon Sep 17 00:00:00 2001 From: Cyp Date: Thu, 20 Jan 2011 22:22:56 +0100 Subject: [PATCH] Remove unused variables. --- src/ai.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ai.cpp b/src/ai.cpp index ffc27c98b..871b95680 100644 --- a/src/ai.cpp +++ b/src/ai.cpp @@ -92,7 +92,7 @@ static bool aiStructHasRange(STRUCTURE *psStruct, BASE_OBJECT *psTarget, int wea static bool aiDroidHasRange(DROID *psDroid, BASE_OBJECT *psTarget, int weapon_slot) { - int32_t xdiff, ydiff, longRange; + int32_t longRange; if (psDroid->droidType == DROID_SENSOR) { @@ -805,13 +805,12 @@ BOOL aiChooseTarget(BASE_OBJECT *psObj, BASE_OBJECT **ppsTarget, int weapon_slot else if (psObj->type == OBJ_STRUCTURE) { WEAPON_STATS *psWStats = NULL; - int tarDist, longRange = 0; BOOL bCommanderBlock = false; ASSERT(((STRUCTURE *)psObj)->asWeaps[weapon_slot].nStat > 0, "no weapons on structure"); psWStats = ((STRUCTURE *)psObj)->asWeaps[weapon_slot].nStat + asWeaponStats; - longRange = proj_GetLongRange(psWStats); + int longRange = proj_GetLongRange(psWStats); // see if there is a target from the command droids psTarget = NULL;