Complete.Org: Mailing Lists: Archives: freeciv-ai: April 2003:
[freeciv-ai] intent to commit: easier settlers

[freeciv-ai] intent to commit: easier settlers

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] intent to commit: easier settlers
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sun, 6 Apr 2003 20:58:15 +0000 (GMT)

I've brought this one up before. I see no reason why it cannot be
committed, so unless I get protests, I'll do it. The present code stops
settlers from being built in a city under Republic unless we have 3
surplus food, which is stupid.

  - Per

Index: ai/advdomestic.c
RCS file: /home/freeciv/CVS/freeciv/ai/advdomestic.c,v
retrieving revision 1.102
diff -u -r1.102 advdomestic.c
--- ai/advdomestic.c    2003/04/04 15:47:45     1.102
+++ ai/advdomestic.c    2003/04/06 20:56:39
@@ -987,7 +987,7 @@
   unit_type = best_role_unit(pcity, F_CITIES);

   if (unit_type != U_LAST
-      && est_food > utype_food_cost(get_unit_type(unit_type), gov)) {
+      && est_food >= utype_food_cost(get_unit_type(unit_type), gov)) {
     /* founder_want calculated in settlers.c, called from
ai_manage_city(). */
     int want = pcity->ai.founder_want;

[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] intent to commit: easier settlers, Per I. Mathisen <=