Complete.Org: Mailing Lists: Archives: freeciv-dev: January 1999:
[Freeciv-Dev] PATCH: ai/advdomestic.c: unused variable.
Home

[Freeciv-Dev] PATCH: ai/advdomestic.c: unused variable.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxxx
Subject: [Freeciv-Dev] PATCH: ai/advdomestic.c: unused variable.
From: Tony & <stuckey@xxxxxxxxxxxxxxxxx>
Date: Mon, 4 Jan 1999 20:46:17 -0600

        There is a variable in ai_eval_buildings which is never referenced.

Index: ai/advdomestic.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/advdomestic.c,v
retrieving revision 1.30
diff -u -r1.30 advdomestic.c
--- advdomestic.c       1998/12/08 10:14:33     1.30
+++ advdomestic.c       1999/01/05 02:37:22
@@ -172,7 +172,7 @@
  
 void ai_eval_buildings(struct city *pcity)
 {
-  int i, gov, tech, val, a, t, food, j, k, hunger, bar, grana;
+  int i, gov, val, a, t, food, j, k, hunger, bar, grana;
   int tax, prod, sci, values[B_LAST];
   int est_food = pcity->food_surplus + 2 * pcity->ppl_scientist + 2 * 
pcity->ppl_taxman; 
   struct player *pplayer = city_owner(pcity);
@@ -206,7 +206,6 @@
   else hunger = 1;
 
   gov = get_government(pcity->owner);
-  tech = (pplayer->research.researching != A_NONE);
 
   for (i=0;i<B_LAST;i++) {
     values[i]=0;

-- 
Anthony J. Stuckey                              stuckey@xxxxxxxxxxxxxxxxx
"When I was young, the sky was filled with stars.
 I watched them burn out one by one."  -Warren Zevon


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] PATCH: ai/advdomestic.c: unused variable., Tony & <=